/**
 * Reverie Sounds — Homepage Styles
 */

/* ── Generic Section Spacing ── */
.home-section {
	padding: 40px 0;
}

.home-hero + .home-section {
	padding: 60px 0;
}

.home-section--last {
	padding-bottom: 60px;
}

/* ════════════════════════════════════════════
   1. HERO
   ════════════════════════════════════════════ */
.home-hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 30%, rgba(74, 143, 217, 0.12) 0%, transparent 60%),
		radial-gradient(ellipse at 70% 80%, rgba(232, 85, 53, 0.08) 0%, transparent 50%);
	pointer-events: none;
}

/* Subtle dot pattern overlay */
.home-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, var(--text-muted) 0.5px, transparent 0.5px);
	background-size: 24px 24px;
	opacity: 0.1;
}

.home-hero__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

/* When WebGL is active, hide the CSS gradient fallback but keep the dot pattern */
.home-hero.has-webgl .home-hero__bg {
	background: none;
}

.home-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 80px 24px;
}

.home-hero__logo {
	margin: 0 auto 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

/* Futuristic blue glow behind the logo */
.home-hero__logo::before {
	content: '';
	position: absolute;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(74, 143, 217, 0.35) 0%, rgba(74, 143, 217, 0.15) 40%, transparent 70%);
	filter: blur(20px);
	pointer-events: none;
	z-index: 0;
}

.home-hero__logo-img {
	height: 80px;
	width: auto;
	display: block;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 0 20px rgba(74, 143, 217, 0.4)) drop-shadow(0 0 60px rgba(74, 143, 217, 0.2));
}

.home-hero__title {
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 800;
	letter-spacing: -1.5px;
	color: var(--text-primary);
	margin: 0 0 12px;
}

.home-hero__tagline {
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--text-dim);
	font-style: italic;
	margin: 0 0 32px;
}

.home-hero__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ════════════════════════════════════════════
   2. LATEST RELEASE SPOTLIGHT
   ════════════════════════════════════════════ */
.home-release {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.home-release__artwork {
	width: 360px;
	height: 360px;
	flex-shrink: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-card-2);
	border: 1px solid var(--border);
}

.home-release__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-release__artwork-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.home-release__info {
	flex: 1;
	min-width: 280px;
}

.home-release__info .rvs-label-badges {
	margin-bottom: 12px;
}

.home-release__title {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 6px;
}

.home-release__artist {
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--text-dim);
	margin: 0 0 8px;
}

.home-release__meta {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--text-muted);
	margin: 0 0 20px;
}

.home-release__info .rvs-spotify-embed {
	margin-bottom: 20px;
}

.home-release__info .rvs-release-detail__embed {
	margin-bottom: 20px;
}

.home-release__actions {
	margin-top: 8px;
}

/* ════════════════════════════════════════════
   3. RADIO — LATEST EPISODE
   ════════════════════════════════════════════ */
.home-radio__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	flex-wrap: wrap;
	gap: 12px;
}

.home-radio__meta {
	display: flex;
	gap: 12px;
	align-items: center;
}

.home-radio__episode {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
}

.home-radio__date {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--text-muted);
}

/* ════════════════════════════════════════════
   4. XO PODCAST CARD
   ════════════════════════════════════════════ */
.home-podcast-card {
	display: flex;
	gap: 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
}

.home-podcast-card__icon {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, var(--xo-accent), #b03020);
	display: flex;
	align-items: center;
	justify-content: center;
}

.home-podcast-card__info {
	flex: 1;
	min-width: 0;
}

.home-podcast-card__info .rvs-label-badges {
	margin-bottom: 8px;
}

.home-podcast-card__title {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 4px;
}

.home-podcast-card__meta {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--text-dim);
	margin: 0 0 16px;
}

.home-podcast-card__info .rvs-spotify-embed {
	margin-bottom: 16px;
}

/* ════════════════════════════════════════════
   5. ARTIST ROSTER
   ════════════════════════════════════════════ */
.home-artists-scroll {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.home-artists-scroll::-webkit-scrollbar {
	height: 4px;
}

.home-artists-scroll::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 2px;
}

.home-artist-item {
	min-width: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	padding: 8px;
	border-radius: var(--radius);
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.home-artist-item:hover {
	background: var(--bg-card);
}

.home-artist-item__photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--border);
	background: var(--bg-card-2);
}

.home-artist-item__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-artist-item__photo-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a1a2e, #2a1a2e);
}

.home-artist-item__name {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	text-align: center;
}

/* ════════════════════════════════════════════
   6. EVENTS TEASER
   ════════════════════════════════════════════ */
.home-events-card {
	background:
		radial-gradient(ellipse 50% 50% at 50% 50%, var(--rs-glow) 0%, transparent 70%),
		var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 60px 40px;
	text-align: center;
}

.home-events-card__icon {
	color: var(--text-dim);
	margin-bottom: 16px;
}

.home-events-card__title {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 8px;
}

.home-events-card__sub {
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--text-dim);
	margin: 0 0 24px;
}

.home-events-card__form {
	display: flex;
	gap: 8px;
	max-width: 400px;
	margin: 0 auto;
}

.home-events-card__input {
	flex: 1;
	padding: 10px 16px;
	border-radius: 30px;
	border: 1px solid var(--border);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 13px;
}

.home-events-card__input:focus {
	border-color: var(--rs-accent);
	outline: none;
}

/* ════════════════════════════════════════════
   7. INSTAGRAM GRID
   ════════════════════════════════════════════ */
.home-insta-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.home-insta-grid__item {
	aspect-ratio: 1;
	background: var(--bg-card);
	position: relative;
}

.home-insta-grid__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
}

/* Live Instagram items (API-populated) */
.home-insta-grid__item--live {
	display: block;
	text-decoration: none;
	overflow: hidden;
}

.home-insta-grid__item--live img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.home-insta-grid__item--live:hover img,
.home-insta-grid__item--live:focus img {
	transform: scale(1.08);
}

.home-insta-grid__item--live::after {
	transition: background 0.3s ease;
	pointer-events: none;
}

.home-insta-grid__item--live:hover::after,
.home-insta-grid__item--live:focus::after {
	background: rgba(0, 0, 0, 0.05);
}

/* Account handle overlay on first item of each row */
.home-insta-grid__handle {
	position: absolute;
	bottom: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 3px 8px;
	border-radius: 4px;
	z-index: 2;
	pointer-events: none;
}

/* ════════════════════════════════════════════
   8. NEWSLETTER CARD
   ════════════════════════════════════════════ */
.home-newsletter-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 40px;
	text-align: center;
}

.home-newsletter-card__icon {
	color: var(--text-dim);
	margin-bottom: 12px;
}

.home-newsletter-card__title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 8px;
}

.home-newsletter-card__sub {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--text-dim);
	margin: 0 0 20px;
}

.home-newsletter-card__form {
	display: flex;
	gap: 8px;
	max-width: 420px;
	margin: 0 auto;
}

.home-newsletter-card__input {
	flex: 1;
	padding: 10px 16px;
	border-radius: 30px;
	border: 1px solid var(--border);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 13px;
}

.home-newsletter-card__input:focus {
	border-color: var(--rs-accent);
	outline: none;
}

/* ════════════════════════════════════════════
   COMING SOON
   ════════════════════════════════════════════ */
.home-coming-soon-scroll {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}

.home-coming-soon-scroll::-webkit-scrollbar {
	height: 4px;
}

.home-coming-soon-scroll::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 2px;
}

.home-coming-soon-card {
	min-width: 240px;
	max-width: 280px;
	flex-shrink: 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-coming-soon-card:hover {
	border-color: var(--border-hover);
	transform: translateY(-2px);
}

.home-coming-soon-card__artwork {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--bg-card-2);
}

.home-coming-soon-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.home-coming-soon-card:hover .home-coming-soon-card__img {
	transform: scale(1.04);
}

.home-coming-soon-card__placeholder {
	width: 100%;
	height: 100%;
}

.home-coming-soon-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.home-coming-soon-card__title {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.home-coming-soon-card__title a {
	color: var(--text-primary);
	text-decoration: none;
}

.home-coming-soon-card__title a:hover {
	color: var(--rs-accent);
}

.home-coming-soon-card__artist {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--text-dim);
	margin: 0;
}

.home-coming-soon-card__date {
	font-family: var(--font-body);
	font-size: 12px;
	color: var(--text-muted);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Countdown timer */
.home-coming-soon-card__countdown {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 4px 0 2px;
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--text-dim);
}

.home-coming-soon-card__countdown-unit strong {
	color: var(--text-primary);
	font-weight: 600;
}

.home-coming-soon-card__countdown-sep {
	color: var(--text-muted);
	font-size: 11px;
	margin: 0 1px;
}

.home-coming-soon-card__countdown-done {
	color: var(--rs-accent);
	font-weight: 600;
}

.home-coming-soon-card__countdown-loading {
	color: var(--text-muted);
	font-size: 12px;
}

/* Pre-save button */
.home-coming-soon-card .rvs-btn--sm {
	margin-top: 4px;
	align-self: flex-start;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.home-hero__title {
		font-size: 40px;
	}

	.home-release__artwork {
		width: 280px;
		height: 280px;
	}

	.home-release__title {
		font-size: 26px;
	}
}

@media (max-width: 768px) {
	.home-hero {
		min-height: 420px;
	}

	.home-hero__content {
		padding: 60px 16px;
	}

	.home-hero__logo-img {
		height: 64px;
	}

	.home-hero__logo::before {
		width: 120px;
		height: 120px;
	}

	.home-hero__title {
		font-size: 32px;
	}

	.home-hero__tagline {
		font-size: 14px;
	}

	.home-hero__actions {
		flex-direction: column;
		align-items: center;
	}

	.home-section {
		padding: 40px 0;
	}

	/* Release — stack vertically */
	.home-release {
		flex-direction: column;
	}

	.home-release__artwork {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
		max-width: 320px;
	}

	.home-release__info {
		min-width: 0;
	}

	.home-release__title {
		font-size: 24px;
	}

	/* Podcast — stack icon above */
	.home-podcast-card {
		flex-direction: column;
	}

	/* Coming Soon — smaller cards */
	.home-coming-soon-card {
		min-width: 200px;
		max-width: 240px;
	}

	/* Artists — smaller circles */
	.home-artist-item {
		min-width: 120px;
	}

	.home-artist-item__photo {
		width: 96px;
		height: 96px;
	}

	/* Events */
	.home-events-card {
		padding: 40px 20px;
	}

	.home-events-card__form {
		flex-direction: column;
	}

	/* Instagram — 2 cols */
	.home-insta-grid {
		grid-template-columns: repeat(2, 1fr);
		border-radius: var(--radius-sm);
	}

	/* Newsletter */
	.home-newsletter-card {
		padding: 32px 20px;
	}

	.home-newsletter-card__form {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.home-hero__title {
		font-size: 28px;
	}

	.home-events-card__title {
		font-size: 22px;
	}
}
