/*!
 * Modern Blog Cards - Margaret BTA Books
 * Card-based grid layout for blog archive
 */

/* ========================================
   Blog Archive Layout
   ======================================== */

.blog-one--page .row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 30px;
	margin-bottom: 60px;
}

@media (max-width: 768px) {
	.blog-one--page .row {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* ========================================
   Modern Blog Card
   ======================================== */

.modern-blog-card {
	padding: 0 !important;
}

.modern-card-wrapper {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.modern-card-wrapper:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.modern-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* ========================================
   Card Image with Icon Overlay
   ======================================== */

.modern-card-image {
	position: relative;
	width: 100%;
	height: 280px;
	background: linear-gradient(135deg, #b8714f 0%, #9d5a3a 100%);
	overflow: hidden;
}

.modern-card-image .card-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.modern-card-wrapper:hover .card-thumbnail {
	transform: scale(1.05);
}

.card-thumbnail-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #b8714f 0%, #9d5a3a 100%);
}

/* Icon Overlay */
.card-icon-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
	transition: opacity 0.3s ease;
}

.modern-card-wrapper:hover .card-icon-overlay {
	opacity: 1;
}

.card-icon-overlay svg {
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ========================================
   Card Content
   ======================================== */

.modern-card-content {
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Category Label */
.card-category {
	display: inline-block;
	font-family: 'Mulish', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #8C6324;
	margin-bottom: 16px;
}

/* Card Title */
.card-title {
	font-family: 'Fraunces', serif !important;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: #0e0502;
	margin-bottom: 16px;
	transition: color 0.3s ease;
}

.modern-card-wrapper:hover .card-title {
	color: #8C6324;
}

/* Card Excerpt */
.card-excerpt {
	font-family: 'Mulish', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
	flex: 1;
}

/* Card Meta */
.card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Mulish', sans-serif;
	font-size: 14px;
	color: #999;
	margin-top: auto;
}

.meta-author {
	color: #666;
	font-weight: 500;
}

.meta-separator {
	color: #ccc;
}

.meta-reading-time {
	color: #999;
}

/* ========================================
   Pagination
   ======================================== */

.blog-pagination {
	margin-top: 60px;
	margin-bottom: 60px;
	grid-column: 1 / -1;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 1024px) {
	.modern-card-image {
		height: 240px;
	}
	
	.card-title {
		font-size: 22px;
	}
}

@media (max-width: 768px) {
	.modern-card-image {
		height: 220px;
	}
	
	.modern-card-content {
		padding: 24px 20px;
	}
	
	.card-title {
		font-size: 20px;
	}
	
	.card-excerpt {
		font-size: 14px;
	}
}

/* ========================================
   Remove Old Blog Card Styles
   ======================================== */

.blog-card-list {
	display: none !important;
}

/* ========================================
   Archive/Category Page Adjustments
   ======================================== */

.blog-one--page {
	padding-top: 60px;
	padding-bottom: 80px;
}

/* Hide sidebar on blog archive */
.blog-one--page .sidebar {
	display: none;
}

.blog-one--page .row > div:first-child {
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

/* ========================================
   Color Variations (Optional)
   ======================================== */

/* You can add different gradient colors for different categories */
.category-parenting .modern-card-image {
	background: linear-gradient(135deg, #b8714f 0%, #9d5a3a 100%);
}

.category-faith .modern-card-image {
	background: linear-gradient(135deg, #7a9e7e 0%, #5a7f5d 100%);
}

.category-family .modern-card-image {
	background: linear-gradient(135deg, #8C6324 0%, #6b4a1a 100%);
}

.category-read-aloud .modern-card-image {
	background: linear-gradient(135deg, #b8714f 0%, #9d5a3a 100%);
}
