/**
 * Public CSS Stylesheet for BIMF Concerts Plugin
 * Handles the layout, card styling, grid structure, and responsive design of concerts.
 */

:root {
	--bimf-primary-color: #222222;
	--bimf-bg-card: #ffffff;
	--bimf-text-dark: #1f1f1f;
	--bimf-text-muted: #6b7280;
	--bimf-border-color: #e5e7eb;
	--bimf-badge-bg: #ffffff;
	--bimf-badge-text-primary: #111827;
	--bimf-badge-text-sec: #4b5563;
	--bimf-type-badge-bg: #f3f4f6;
	--bimf-type-badge-text: #374151;
}

/* Grid Layout container */
.bimf-concerts-grid-wrapper {
	margin: 2em 0;
	width: 100%;
}

.bimf-grid {
	display: grid;
	gap: 24px;
	width: 100%;
}

/* Column configurations */
.bimf-columns-1 {
	grid-template-columns: 1fr;
}
.bimf-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}
.bimf-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}
.bimf-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Responsive adjustment for columns */
@media (max-width: 1024px) {
	.bimf-columns-3,
	.bimf-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.bimf-columns-2,
	.bimf-columns-3,
	.bimf-columns-4 {
		grid-template-columns: 1fr;
	}
}

/* Card Styling */
.bimf-concert-card {
	background: var(--bimf-bg-card);
	border: 1px solid var(--bimf-border-color);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.bimf-concert-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Card Image Header & Placeholder */
.bimf-card-image-wrapper {
	position: relative;
	width: 100%;
	height: 220px;
	background: #e5e7eb;
	overflow: hidden;
}

.bimf-card-image-wrapper a {
	display: block;
	width: 100%;
	height: 100%;
}

.bimf-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	display: block;
	border: none;
}

.bimf-concert-card:hover .bimf-card-img {
	transform: scale(1.05);
}

.bimf-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5e7eb 25%, #d1d5db 100%);
}

/* Date Badge Overlay */
.bimf-date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--bimf-badge-bg);
	border-radius: 6px;
	padding: 8px 12px;
	min-width: 44px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 10;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.bimf-badge-day {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--bimf-badge-text-primary);
	line-height: 1.1;
	display: block;
}

.bimf-badge-month {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--bimf-badge-text-sec);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: block;
	margin-top: 2px;
}

/* Card Content Details */
.bimf-card-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bimf-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 14px 0;
	color: var(--bimf-text-dark);
}

.bimf-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.bimf-card-title a:hover {
	color: var(--bimf-primary-color);
}

/* Meta list items */
.bimf-meta-item {
	display: flex;
	align-items: flex-start;
	font-size: 0.85rem;
	color: var(--bimf-text-muted);
	margin-bottom: 10px;
	line-height: 1.4;
}

.bimf-meta-item:last-of-type {
	margin-bottom: 0;
}

.bimf-meta-item .bimf-icon {
	margin-right: 8px;
	margin-top: 2px;
	flex-shrink: 0;
	color: var(--bimf-text-muted);
}

/* Excerpt Description */
.bimf-card-description {
	font-size: 0.88rem;
	color: var(--bimf-text-muted);
	line-height: 1.5;
	margin-top: 10px;
	margin-bottom: 15px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Card Action Button */
.bimf-card-action {
	margin-top: auto;
	padding-top: 15px;
	width: 100%;
}

.bimf-card-btn {
	display: block;
	width: 100%;
	background-color: var(--bimf-primary-color) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	text-align: center;
	padding: 10px 16px;
	font-size: 0.9rem;
	font-weight: 700;
	border-radius: 6px;
	border: none;
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	cursor: pointer;
	box-sizing: border-box;
}

.bimf-card-btn:hover {
	background-color: #000000 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bimf-card-btn:active {
	transform: translateY(1px);
}

/* Empty listings */
.bimf-no-concerts {
	text-align: center;
	padding: 30px;
	background: #f9fafb;
	border: 1px dashed var(--bimf-border-color);
	border-radius: 8px;
	color: var(--bimf-text-muted);
}

/* ==========================================================================
   Single Concert View Styling
   ========================================================================== */
.bimf-single-concert {
	margin: 2em auto;
	max-width: 1100px;
	font-family: inherit;
}

.bimf-single-header {
	margin-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 15px;
}

.bimf-single-title {
	font-size: 2.25rem;
	font-weight: 800;
	color: var(--bimf-text-dark);
	margin: 0;
	line-height: 1.2;
}

.bimf-single-header .bimf-type-badge {
	font-size: 0.85rem;
	padding: 6px 14px;
	border-radius: 20px;
}

/* Split Columns Layout */
.bimf-single-layout {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 40px;
	margin-bottom: 30px;
}

@media (max-width: 768px) {
	.bimf-single-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Media Gallery / Image */
.bimf-single-media {
	width: 100%;
}

.bimf-single-img {
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	display: block;
}

.bimf-single-image-placeholder {
	width: 100%;
	height: 320px;
	background: #e5e7eb;
	border-radius: 8px;
}

/* Details Card */
.bimf-details-card {
	background: #f9fafb;
	border: 1px solid var(--bimf-border-color);
	border-radius: 8px;
	padding: 24px;
	height: fit-content;
}

.bimf-details-card h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 20px;
	color: var(--bimf-text-dark);
	border-bottom: 2px solid var(--bimf-border-color);
	padding-bottom: 10px;
}

.bimf-details-list {
	list-style: none;
	padding: 0;
	margin: 0 0 24px 0;
}

.bimf-details-list li {
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
	font-size: 0.95rem;
	line-height: 1.5;
}

.bimf-details-list li:last-child {
	margin-bottom: 0;
}

.bimf-details-list li strong {
	color: var(--bimf-text-dark);
	font-weight: 600;
	margin-bottom: 2px;
}

.bimf-details-list li span {
	color: var(--bimf-text-muted);
}

/* Button Booking Call To Action */
.bimf-ticket-wrapper {
	width: 100%;
}

.bimf-ticket-btn {
	display: block;
	width: 100%;
	background-color: var(--bimf-primary-color) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	text-align: center;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 6px;
	border: none;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.bimf-ticket-btn:hover {
	background-color: #000000 !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

.bimf-ticket-btn:active {
	transform: translateY(1px);
}

/* Entry content text details */
.bimf-single-content {
	margin-top: 30px;
	font-size: 1.05rem;
	line-height: 1.7;
	color: #374151;
	border-top: 1px solid var(--bimf-border-color);
	padding-top: 30px;
}

/* ==========================================================================
   Premium Single Concert Template CSS Styles
   ========================================================================== */
.bimf-custom-single-template {
	--bimf-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-family: var(--bimf-font-sans);
	background-color: var(--bimf-page-bg, #fafafa);
	color: #2c3e50;
	line-height: 1.6;
}

/* Hero Section */
.bimf-template-hero {
	position: relative;
	overflow: hidden;
	min-height: 380px;
	padding: 50px 0;
	display: flex;
	align-items: center;
	background: var(--bimf-hero-bg, #1f2937);
}

.bimf-hero-container {
	position: relative;
	z-index: 3;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

.bimf-hero-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
}

.bimf-hero-media {
	width: 320px;
	flex-shrink: 0;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	overflow: hidden;
}

.bimf-hero-img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	border: none;
}

.bimf-hero-placeholder {
	width: 100%;
	height: 240px;
	background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

.bimf-hero-text {
	flex: 1;
	color: var(--bimf-hero-text-color, #ffffff);
}

.bimf-hero-text .bimf-type-badge {
	background: var(--bimf-primary-color);
	color: #ffffff;
	font-weight: 700;
	margin-bottom: 12px;
	font-size: 0.8rem;
	padding: 4px 10px;
	border-radius: 4px;
}

.bimf-hero-title {
	font-size: 2.5rem;
	font-weight: 800;
	margin: 0 0 20px 0;
	color: var(--bimf-hero-text-color, #ffffff) !important;
	line-height: 1.2;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bimf-hero-meta-item {
	display: flex;
	align-items: center;
	font-size: 0.95rem;
	margin-bottom: 12px;
	color: var(--bimf-hero-text-color, rgba(255, 255, 255, 0.9));
}

.bimf-hero-meta-item:last-child {
	margin-bottom: 0;
}

.bimf-hero-meta-item svg.bimf-icon {
	margin-right: 10px;
	color: var(--bimf-hero-text-color, #ffffff);
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
	transition: color 0.2s ease;
}

.bimf-hero-meta-item svg.bimf-icon:hover {
	color: var(--bimf-hero-text-color, #ffffff);
}

/* Layout Columns */
.bimf-template-content-area {
	max-width: 1140px;
	margin: 50px auto;
	padding: 0 20px;
}

.bimf-template-layout-grid {
	display: grid;
	grid-template-columns: 2.2fr 1.2fr;
	gap: 40px;
	align-items: start;
}

/* Description Area */
.bimf-template-main {
	background: #ffffff;
	border: 1px solid var(--bimf-border-color);
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bimf-section-heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 20px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #f3f4f6;
}

.bimf-entry-text {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #4b5563;
}

.bimf-entry-text p {
	margin: 0 0 1.5em 0;
}

.bimf-entry-text p:last-child {
	margin-bottom: 0;
}

/* Sidebar Ticket Widget */
.bimf-sidebar-ticket-box {
	background: var(--bimf-sidebar-bg, #ffffff);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 40px;
}

.bimf-box-price-row {
	margin-bottom: 24px;
	border-bottom: 1px solid #f3f4f6;
	padding-bottom: 15px;
}

.bimf-box-price-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--bimf-text-muted);
	letter-spacing: 0.5px;
	display: block;
	margin-bottom: 4px;
}

.bimf-box-price-value {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--bimf-primary-color);
	line-height: 1;
}

.bimf-box-details {
	margin-bottom: 24px;
}

.bimf-box-details h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #1f2937;
}

.bimf-box-detail-item {
	margin-bottom: 15px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.bimf-box-detail-item:last-child {
	margin-bottom: 0;
}

.bimf-box-detail-item strong {
	display: block;
	color: #4b5563;
	font-weight: 600;
	margin-bottom: 2px;
}

.bimf-box-detail-item span {
	color: var(--bimf-text-muted);
}

/* Sidebar Call to Action button */
.bimf-booking-btn {
	display: block;
	width: 100%;
	background-color: var(--bimf-primary-color) !important;
	border: 1px solid var(--bimf-primary-color) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	text-align: center;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 6px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	cursor: pointer;
	box-sizing: border-box;
}

.bimf-booking-btn:hover:not(.bimf-disabled) {
	background-color: var(--bimf-btn-hover-bg, #000000) !important;
	border-color: var(--bimf-btn-hover-bg, #000000) !important;
	color: #ffffff !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

.bimf-booking-btn:active:not(.bimf-disabled) {
	transform: translateY(1px);
}

.bimf-booking-btn.bimf-disabled {
	background-color: #e5e7eb !important;
	border-color: #e5e7eb !important;
	color: #9ca3af !important;
	cursor: not-allowed;
	box-shadow: none;
}

/* Performance/Program List formatting */
.bimf-single-performances-section {
	margin-bottom: 40px;
	padding-bottom: 25px;
	border-bottom: 1px solid #e5e7eb;
}

.bimf-performance-group {
	margin-bottom: 30px;
}

.bimf-performance-group:last-child {
	margin-bottom: 0;
}

.bimf-performance-group-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 14px 0;
	color: #1f2937;
	border-left: 4px solid var(--bimf-primary-color);
	padding-left: 12px;
	line-height: 1.3;
}

.bimf-performance-time-badge {
	font-size: 0.85rem;
	font-weight: 600;
	color: #4b5563;
	background: #f3f4f6;
	padding: 4px 10px;
	border-radius: 9999px;
	margin-left: 10px;
	flex-shrink: 0;
}

.bimf-performance-performers-list {
	list-style: none;
	padding: 0;
	margin: 0 0 0 16px;
}

.bimf-performance-performers-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	padding: 8px 0;
	border-bottom: 1px dashed #e5e7eb;
	font-size: 0.95rem;
}

.bimf-performance-performers-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bimf-perf-name {
	font-weight: 700;
	color: #1f2937;
	width: 220px;
	flex-shrink: 0;
}

.bimf-perf-specialty {
	font-style: italic;
	color: #6b7280;
	font-size: 0.82rem;
	background: #f3f4f6;
	padding: 2px 8px;
	border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
	.bimf-hero-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.bimf-hero-media {
		width: 240px;
	}
	.bimf-hero-text {
		width: 100%;
	}
	.bimf-hero-meta-item {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.bimf-template-layout-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.bimf-template-sidebar {
		order: -1; /* Move ticket widget above description on small screens */
	}
	.bimf-sidebar-ticket-box {
		position: static;
	}
}

