/**
 * Featured Campaigns Card Grid Styles
 *
 * Implements the pristine 3-column card layout matching Iltizam Relief Society's homepage showcase.
 *
 * @package Iltizam_Charitable_Addons
 * @version 1.6.0
 */

.iltizam-fc-wrapper {
	box-sizing: border-box;
	width: 100%;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #334155;
	margin: 0 auto;
}

.iltizam-fc-wrapper *,
.iltizam-fc-wrapper *::before,
.iltizam-fc-wrapper *::after {
	box-sizing: border-box;
}

/* Header (Optional Section Title & Subtitle) */
.iltizam-fc-header {
	text-align: center;
	margin-bottom: 28px;
}

.iltizam-fc-section-title {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
	letter-spacing: -0.02em;
}

.iltizam-fc-section-subtitle {
	font-size: 15px;
	color: #64748b;
	margin: 0 auto;
	max-width: 620px;
	line-height: 1.6;
}

/* Responsive Grid */
.iltizam-fc-grid {
	display: grid;
	grid-template-columns: repeat(var(--fc-cols-desktop, 3), minmax(0, 1fr));
	gap: var(--fc-gap, 24px);
	align-items: stretch;
}

/* Campaign Card Container */
.iltizam-fc-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	position: relative;
}

.iltizam-fc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
	border-color: #cbd5e1;
}

/* Media / Thumbnail Wrap */
.iltizam-fc-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0f172a;
}

.iltizam-fc-thumb-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	text-decoration: none;
	overflow: hidden;
}

.iltizam-fc-thumb-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block;
	transition: transform 0.4s ease;
}

.iltizam-fc-card:hover .iltizam-fc-thumb-img {
	transform: scale(1.04);
}

.iltizam-fc-thumb-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	padding: 20px;
	text-align: center;
}

/* Top-Left Category Badge (Dark Translucent Pill - Text Only) */
.iltizam-fc-badge-cat {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: rgba(15, 23, 42, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #ffffff;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.iltizam-fc-badge-icon {
	display: none !important;
}

.iltizam-fc-badge-text {
	line-height: 1.2;
}

/* Top-Right Country Badge (White Pill with Flag) */
.iltizam-fc-badge-country {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #0f172a;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	pointer-events: none;
}

.iltizam-fc-flag {
	font-size: 14px;
	line-height: 1;
}

.iltizam-fc-country-name {
	line-height: 1.2;
}

/* Card Body */
.iltizam-fc-body {
	padding: 22px 22px 20px 22px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Campaign Title */
.iltizam-fc-title {
	font-size: 18.5px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.35;
	margin: 0 0 10px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 50px;
}

.iltizam-fc-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.iltizam-fc-title a:hover {
	color: #059669;
}

/* Excerpt */
.iltizam-fc-excerpt {
	font-size: 13.5px;
	line-height: 1.6;
	color: #64748b;
	margin: 0 0 18px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 43px;
}

/* Meta & Funding (Pushed to bottom) */
.iltizam-fc-meta-wrap {
	margin-top: auto;
	margin-bottom: 16px;
}

/* Sleek Progress Bar Track */
.iltizam-fc-progress-track {
	background: #e2e8f0;
	height: 7px;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
	width: 100%;
}

.iltizam-fc-progress-bar {
	background: #059669;
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease;
	min-width: 2px;
}

/* Stats Row: Raised & Goal */
.iltizam-fc-stats-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.iltizam-fc-raised {
	font-size: 13.5px;
	font-weight: 700;
	color: #059669;
	white-space: nowrap;
}

.iltizam-fc-raised strong {
	font-weight: 800;
}

.iltizam-fc-stat-sub {
	font-weight: 500;
	font-size: 12.5px;
	color: #059669;
	margin-left: 2px;
}

.iltizam-fc-goal {
	font-size: 12.5px;
	font-weight: 500;
	color: #64748b;
	white-space: nowrap;
	text-align: right;
}

/* Donate Now Button (Outline Style) */
.iltizam-fc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #f0fdf9;
	border: 1.5px solid #059669;
	color: #059669;
	border-radius: 12px;
	padding: 12px 18px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.22s ease;
}

.iltizam-fc-btn:hover {
	background: #059669;
	color: #ffffff;
	border-color: #059669;
	box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
	transform: translateY(-1px);
}

.iltizam-fc-btn:active {
	transform: translateY(0);
}

.iltizam-fc-btn-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.iltizam-fc-btn:hover .iltizam-fc-btn-icon {
	transform: scale(1.15);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
	.iltizam-fc-grid {
		grid-template-columns: repeat(var(--fc-cols-tablet, 2), minmax(0, 1fr));
		gap: 20px;
	}
	.iltizam-fc-title {
		font-size: 17.5px;
	}
}

@media (max-width: 640px) {
	.iltizam-fc-grid {
		grid-template-columns: repeat(var(--fc-cols-mobile, 1), minmax(0, 1fr));
		gap: 18px;
	}
	.iltizam-fc-body {
		padding: 18px;
	}
	.iltizam-fc-title {
		min-height: auto;
		margin-bottom: 8px;
	}
	.iltizam-fc-excerpt {
		min-height: auto;
		margin-bottom: 14px;
	}
}
