/**
 * FAS - Facebook Feed — Front-end styles
 *
 * @package FAS_Facebook_Feed
 */

/* ============================================
   Container
   ============================================ */
.fas-fbfeed {
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* Grid layout */
.fas-fbfeed--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

/* List layout */
.fas-fbfeed--list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ============================================
   Single item (card)
   ============================================ */
.fas-fbfeed__item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fas-fbfeed__item:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* ============================================
   Body wrapper
   ============================================ */
.fas-fbfeed__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}

/* ============================================
   Date
   ============================================ */
.fas-fbfeed__date {
	display: block;
	font-size: 0.78rem;
	color: #65676b;
	margin-bottom: 8px;
	letter-spacing: 0.01em;
}

/* ============================================
   Image
   ============================================ */
.fas-fbfeed__image {
	line-height: 0;
}

.fas-fbfeed__image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 16 / 9;
}

/* ============================================
   Message
   ============================================ */
.fas-fbfeed__message {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #1c1e21;
	word-wrap: break-word;
	overflow-wrap: break-word;
	flex: 1;
	margin-bottom: 12px;
}

/* ============================================
   Facebook link
   ============================================ */
.fas-fbfeed__link {
	display: inline-block;
	padding: 8px 18px;
	background: #1877f2;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
	transition: background 0.2s ease;
	align-self: flex-start;
	margin-top: auto;
}

.fas-fbfeed__link:hover,
.fas-fbfeed__link:focus {
	background: #166fe5;
	color: #fff;
	text-decoration: none;
}

/* ============================================
   Error / empty states
   ============================================ */
.fas-fbfeed--error,
.fas-fbfeed--empty {
	text-align: center;
	padding: 32px 24px;
	color: #65676b;
	font-style: italic;
	background: #f9f9f9;
	border-radius: 12px;
	border: 1px dashed #dcdcde;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
	.fas-fbfeed--grid {
		grid-template-columns: 1fr;
	}
}

/* List layout item in wider viewports */
@media (min-width: 768px) {
	.fas-fbfeed--list .fas-fbfeed__item {
		flex-direction: row;
	}

	.fas-fbfeed--list .fas-fbfeed__image {
		flex: 0 0 280px;
	}

	.fas-fbfeed--list .fas-fbfeed__image img {
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
	}
}
