/**
 * MindTheatre Frontend Styles - Optimized for Avada Builder
 * Modern, elegant, responsive design
 */

.mindtheatre-container {
	max-width: 100%;
	margin: 30px 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
	color: #333;
}

/* Alert Messages */
.mindtheatre-alert {
	padding: 16px 20px;
	border-radius: 8px;
	margin: 20px 0;
	font-size: 15px;
	font-weight: 500;
}

.mindtheatre-alert-error {
	background-color: #fee;
	border-left: 4px solid #f44;
	color: #c33;
}

.mindtheatre-alert-warning {
	background-color: #ffeaa7;
	border-left: 4px solid #fdcb6e;
	color: #856404;
}

/* Access/Demo Banners */
.mindtheatre-access-banner,
.mindtheatre-demo-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 28px;
	border-radius: 12px;
	margin-bottom: 40px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mindtheatre-access-banner {
	background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
	border-left: 5px solid #4caf50;
}

.mindtheatre-demo-banner {
	background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
	border-left: 5px solid #2196f3;
}

.mindtheatre-access-icon,
.mindtheatre-demo-icon {
	font-size: 32px;
	line-height: 1;
	flex-shrink: 0;
}

.mindtheatre-access-text,
.mindtheatre-demo-text {
	flex: 1;
}

.mindtheatre-access-text h3,
.mindtheatre-demo-text h3 {
	margin: 0 0 4px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
}

.mindtheatre-access-text p,
.mindtheatre-demo-text p {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.4;
}

/* Modules Container */
.mindtheatre-modules-container {
	margin: 40px 0;
}

.mindtheatre-module-section {
	padding: 30px 0;
	border-top: 2px solid #f0f0f0;
	margin-top: 0;
}

.mindtheatre-module-section:first-child {
	border-top: none;
	padding-top: 0;
}

.mindtheatre-module-title {
	margin: 0 0 8px 0;
	font-size: 22px;
	font-weight: 600;
	color: #a67c52;
	line-height: 1.3;
}

.mindtheatre-module-description {
	margin: 0 0 20px 0;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	font-style: italic;
}

/* Module Layout - Image Right, Smaller */
.mindtheatre-module-wrapper {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 24px;
}

.mindtheatre-module-content {
	flex: 1;
	min-width: 0;
}

/* Module Image/Cover */
.mindtheatre-module-image {
	flex-shrink: 0;
	width: 220px;
	height: 160px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	background: #f5f5f5;
}

.mindtheatre-module-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.mindtheatre-module-section:hover .mindtheatre-module-cover {
	transform: scale(1.05);
}

/* Grid Layout */
.mindtheatre-tranches-wrapper {
	margin: 40px 0;
}

.mindtheatre-tranches-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
	margin-bottom: 0;
}

/* Cards */
.mindtheatre-card {
	background: white;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
	display: flex;
	flex-direction: column;
}

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

.mindtheatre-card-full {
	border-left: 4px solid #4caf50;
}

.mindtheatre-card-demo {
	background-color: #fafafa;
	border-left: 4px solid #2196f3;
	opacity: 0.95;
}

/* Card Header */
.mindtheatre-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.mindtheatre-day-badge {
	display: inline-block;
	background: linear-gradient(135deg, #a67c52 0%, #8e6a46 100%);
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.mindtheatre-card-status {
	font-size: 11px;
	font-weight: 600;
	color: #4caf50;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mindtheatre-demo-badge {
	color: #2196f3;
}

/* Card Content */
.mindtheatre-card-title {
	margin: 0 0 8px 0;
	font-size: 17px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.4;
}

.mindtheatre-card-description {
	margin: 8px 0 12px 0;
	font-size: 13px;
	color: #666;
	line-height: 1.6;
}

.mindtheatre-demo-title {
	margin: 8px 0 12px 0;
	font-size: 13px;
	color: #999;
	font-style: italic;
	line-height: 1.5;
}

/* Audio Player */
.mindtheatre-player-wrapper {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}

.mindtheatre-audio-player {
	width: 100%;
	height: 40px;
	outline: none;
	border-radius: 20px;
	background: linear-gradient(to right, #f5f5f5, #fafafa);
	-webkit-appearance: none;
}

/* Purchase Section */
.mindtheatre-purchase-section {
	text-align: center;
	padding: 40px 30px;
	background: linear-gradient(135deg, #fdf8f4 0%, #f9f7f3 100%);
	border-radius: 12px;
	margin-top: 50px;
	border: 2px solid #a67c52;
}

.mindtheatre-purchase-section h3 {
	margin: 0 0 8px 0;
	font-size: 22px;
	font-weight: 600;
	color: #1a1a1a;
}

.mindtheatre-purchase-section p {
	margin: 0 0 24px 0;
	font-size: 15px;
	color: #666;
	line-height: 1.6;
}

.mindtheatre-purchase-btn {
	display: inline-block;
	background: linear-gradient(135deg, #a67c52 0%, #8e6a46 100%);
	color: white;
	padding: 14px 36px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(166, 124, 82, 0.3);
	cursor: pointer;
	border: none;
}

.mindtheatre-purchase-btn:hover {
	background: linear-gradient(135deg, #8e6a46 0%, #7a5a3a 100%);
	box-shadow: 0 6px 16px rgba(166, 124, 82, 0.4);
	transform: translateY(-2px);
	color: white;
	text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.mindtheatre-container {
		margin: 20px 0;
	}

	.mindtheatre-module-wrapper {
		flex-direction: column;
		gap: 16px;
	}

	.mindtheatre-module-image {
		width: 100%;
		height: 200px;
	}

	.mindtheatre-tranches-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mindtheatre-card {
		padding: 16px;
	}

	.mindtheatre-access-banner,
	.mindtheatre-demo-banner {
		padding: 16px;
		gap: 12px;
	}

	.mindtheatre-access-icon,
	.mindtheatre-demo-icon {
		font-size: 24px;
	}

	.mindtheatre-access-text h3,
	.mindtheatre-demo-text h3 {
		font-size: 16px;
	}

	.mindtheatre-card-title {
		font-size: 15px;
	}

	.mindtheatre-purchase-section {
		padding: 24px 16px;
	}

	.mindtheatre-purchase-section h3 {
		font-size: 18px;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.mindtheatre-container {
		color: #e0e0e0;
	}

	.mindtheatre-card {
		background: #1e1e1e;
		border-color: #2a2a2a;
	}

	.mindtheatre-card-title {
		color: #fff;
	}

	.mindtheatre-card-description,
	.mindtheatre-demo-title {
		color: #b0b0b0;
	}

	.mindtheatre-audio-player {
		background: linear-gradient(to right, #2a2a2a, #333);
	}
}
