/* assets/css/brainfoods.css */

/* ── BACKGROUND VIDEO & OVERLAY ── */
.bg-container {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.12;
	filter: blur(8px);
}

.bg-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
}

/* ── LAYOUT CONTAINER ── */
.gallery-wrapper {
	position: relative;
	min-height: 100vh;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 160px 24px 80px 24px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* ── HEADER ── */
.gallery-header {
	text-align: center;
	animation: galleryFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes galleryFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.gallery-header__title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 44px;
	font-weight: 300;
	color: var(--light-blue);
	margin-bottom: 8px;
	letter-spacing: 0.02em;
}

.gallery-header__subtitle {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ── THEATER SECTION ── */
.theater-section {
	width: 100%;
	animation: galleryFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.theater-container {
	position: relative;
	width: 100%;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 16px;
	padding: 16px;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
	transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.theater-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(to right, var(--primary-navy), var(--accent-blue), var(--light-blue));
	border-radius: 16px 16px 0 0;
}

.video-frame-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

.video-frame-wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Theater Details overlay */
.theater-details {
	margin-top: 24px;
	padding: 0 8px 8px 8px;
}

.theater-details__tag {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-blue);
	display: inline-block;
	margin-bottom: 8px;
}

.theater-details__title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 28px;
	font-weight: 300;
	color: var(--light-blue);
	margin-bottom: 12px;
	letter-spacing: 0.01em;
}

.theater-details__desc {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.6;
}

/* ── PLAYLIST GRID ── */
.playlist-section {
	width: 100%;
	animation: galleryFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.playlist-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 26px;
	font-weight: 300;
	color: var(--light-blue);
	margin-bottom: 24px;
	letter-spacing: 0.02em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding-bottom: 10px;
}

.playlist-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.video-card {
	background: rgba(255, 255, 255, 0.015);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.thumbnail-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	background: #000;
	overflow: hidden;
}

.thumbnail-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.75;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.play-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.play-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	padding-left: 2px;
	transition: all 0.3s ease;
}

.video-card:hover .thumbnail-img {
	transform: scale(1.05);
	opacity: 0.9;
}

.video-card:hover .play-overlay {
	opacity: 1;
}

.video-card:hover .play-icon {
	background: var(--accent-blue);
	border-color: var(--accent-blue);
	color: var(--black);
	transform: scale(1.1);
	box-shadow: 0 0 15px rgba(0, 118, 192, 0.5);
}

.video-card__info {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-grow: 1;
}

.video-card__tag {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-blue);
}

.video-card__title {
	font-size: 14px;
	font-weight: 500;
	color: var(--white);
	line-height: 1.4;
	transition: color 0.3s ease;
}

.video-card:hover .video-card__title {
	color: var(--light-blue);
}

.video-card__desc {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.5;
	margin-top: 4px;
}

/* Active Video Card Indicator */
.video-card.active {
	border-color: var(--light-blue);
	background: rgba(255, 255, 255, 0.035);
	box-shadow: 0 10px 25px rgba(0, 164, 228, 0.1);
}

.video-card.active .play-icon {
	background: var(--light-blue);
	border-color: var(--light-blue);
	color: var(--black);
	opacity: 1;
}

.video-card.active .thumbnail-img {
	opacity: 0.95;
}

.video-card.active .video-card__title {
	color: var(--light-blue);
}

/* ── RESPONSIVENESS ── */
@media (max-width: 900px) {
	.playlist-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.playlist-grid {
		grid-template-columns: 1fr;
	}
	
	.gallery-header__title {
		font-size: 34px;
	}
}
