/**
 * Front Page Styles
 * Home page specific styles
 */

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.hero-section {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	overflow: hidden;
}

.hero-canvas-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	box-shadow: inset 0 50px 60px -30px #2020207A;
}

.hero-canvas-container::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		to bottom,
		rgba(255,255,255,0.06) 0px,
		rgba(255,255,255,0.06) 2px,
		transparent 2px,
		transparent 4px
	);
	z-index: 3;
	mix-blend-mode: lighten;
}

.hero-canvas-container::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: url('/wp-content/uploads/2025/10/noise-background-ultracompressed.gif');
	background-repeat: repeat;
	background-size: auto;
	opacity: 0.15;
	z-index: 4;
	mix-blend-mode: screen;
}

@keyframes tvFlicker {
	0% { opacity: 0.05; }
	50% { opacity: 0.1; }
	100% { opacity: 0.05; }
}

.custom-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 2rem;
	height: 2rem;
	pointer-events: none;
	z-index: 9999;
	mix-blend-mode: difference;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.cursor-inner {
	width: 100%;
	height: 100%;
	border: 1px solid #202020;
	border-radius: 50%;
	transition: transform 0.1s ease;
}

#webgl-canvas {
	display: block;
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	transition: opacity 0.15s ease;
}

/* ========================================================================
   NEW MUSIC SECTION
   ======================================================================== */

.new-music-section {
	min-height: 90vh;
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, transparent 0%, transparent 50%, var(--color-dark) 50%, var(--color-dark) 100%);
}

.new-music-section .container {
	position: relative;
	z-index: 1;
}

.new-music-section .section-label,
.new-music-section h2 {
	color: var(--color-light);
}

.music-player-card {
	display: flex;
	width: 100%;
	max-width: 1400px;
}

.player-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-md);
	flex: 1;
	max-width: 600px;
	transition: opacity 0.3s ease;
}

.release-navigation {
	width: 100%;
}

.nav-arrow {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	opacity: 0.7;
	transition: opacity 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
	margin-bottom: 1rem;
}

.nav-arrow:hover {
	opacity: 1;
	transform: scale(1.1);
}

.nav-arrow img {
	width: 24px;
	height: 24px;
	display: block;
	filter: brightness(0) invert(1);
}

.song-title {
	font-family: var(--font-display);
	font-size: 2rem;
	line-height: 1.1;
	margin: 0;
	color: var(--color-light);
}

.artist-name {
	font-family: var(--font-primary);
	font-size: 1.5rem;
	color: var(--color-light);
	opacity: 0.8;
}

#custom-audio {
	display: none;
}

.spotify-embed-container {
	width: 100%;
	max-width: 400px;
	position: relative;
}

.spotify-scroll-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	cursor: pointer;
}

.custom-player {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.time-display {
	font-family: var(--font-primary);
	font-size: 0.875rem;
	color: var(--color-light);
	opacity: 0.7;
}

.progress-bar {
	position: relative;
	width: 100%;
	height: 4px;
	background: rgba(246, 246, 246, 0.2);
	border-radius: 2px;
	cursor: pointer;
	transition: height 0.2s ease;
}

.progress-bar:hover {
	height: 6px;
}

.progress-bar:hover .progress-thumb {
	opacity: 1;
}

.progress {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 2px;
	width: 0%;
	transition: width 0.1s linear;
}

.progress-thumb {
	position: absolute;
	top: 50%;
	left: 0;
	width: 16px;
	height: 16px;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.play-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: transparent;
	border: 1px solid var(--color-light);
	cursor: pointer;
	transition: transform 0.2s ease;
	padding: 0;
	margin: 1rem 0;
}

.play-button:hover {
	transform: scale(1.05);
}

.play-button svg {
	margin-left: 3px;
}

.play-button svg path {
	fill: var(--color-light);
}

.music-player-card .text-link-button {
	color: var(--color-light);
	font-size: 1rem;
	text-transform: none;
}

.song-vinyl {
	position: relative;
	flex-shrink: 0;
	width: 400px;
	height: 400px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.song-vinyl::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1;
	pointer-events: none;
}

.vinyl-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30%;
	height: 30%;
	background-size: cover;
	background-position: center;
	border-radius: 50%;
	z-index: 2;
}

.vinyl-center-dot {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8%;
	height: 8%;
	background: var(--color-dark);
	border-radius: 50%;
}

/* ========================================================================
   PLAYLISTS SECTION
   ======================================================================== */

.playlists-section {
	min-height: 100vh;
}

.playlists-section .section-label,
.playlists-section h2 {
	text-align: center;
}


/* ========================================================================
   ARTISTS SECTION
   ======================================================================== */

.artists-section-home {
	overflow: hidden;
}

.artists-grid-home {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	width: 100%;
}

.artists-grid-home .artists-row {
	display: flex;
	flex-direction: row;
	gap: 5rem;
	justify-content: center;
	will-change: transform;
}

.artists-grid-home .artists-row .card {
	width: 17rem;
	max-width: 17rem;
}

/* Responsive */
@media (max-width: 1024px) {
	.song-vinyl {
		width: min(350px, 50vw);
		height: auto !important;
		aspect-ratio: 1 / 1;
	}

	/* Playlists Grid - Tablet */
	.playlists-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-lg);
	}

	.playlist-card {
		aspect-ratio: 1 / 1;
	}

	.playlist-title {
		font-size: 1.5rem;
	}

	.playlist-logo {
		width: 2.5rem;
		height: 2.5rem;
	}

	.artists-grid-home .artists-row {
		gap: 3rem;
	}

	.artists-grid-home .artists-row .card {
		width: 14rem;
		max-width: 14rem;
	}
}


/* ========================================================================
   ABOUT US SECTION
   ======================================================================== */

.about-us-section {
	position: relative;
	padding: var(--space-2xl) 0;
}

.about-us-section .section-label,
.about-us-section h2 {
	text-align: center;
	margin: 0;
}

.about-content {
	max-width: 800px;
	text-align: center;
}

.about-content p {
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-relaxed);
	color: var(--color-dark);
	margin: 0;
}

.wave-container {
	position: absolute;
	width: 100%;
	height: 350px;
	left: 0;
	pointer-events: none;
	z-index: 1;
	overflow: visible;
}

.wave-container-top {
	top: 0;
}

.wave-container-bottom {
	bottom: 0;
	transform: scaleY(-1);
}

.wave-svg {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: block;
}

.wave-svg path {
	stroke: #202020;
	stroke-width: 1.5;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.about-us-section .container {
	position: relative;
	z-index: 2;
}

/* Responsive */

/* ========================================================================
   INSTAGRAM SECTION
   ======================================================================== */

.instagram-section {
	overflow: hidden;
	padding: var(--space-2xl) 0;
	position: relative;
}

/* Follow Us Marquee - Infinite Scroll Animation */
.follow-us-marquee {
	--scroll-offset: 0px;
	width: 100%;
	overflow: hidden;
	background: transparent;
	position: relative;
	display: flex;
	transform: translateZ(0);
	will-change: transform;
}

.follow-us-marquee .marquee-content {
	display: flex;
	animation: marquee-scroll 70s linear infinite;
	will-change: transform;
	flex-shrink: 0;
	transform: translateZ(0);
	backface-visibility: hidden;
	perspective: 1000px;
}

.follow-us-marquee .marquee-text {
	font-family: 'Span AllCaps', sans-serif;
	font-size: 2rem;
	text-transform: uppercase;
	color: var(--color-dark);
	white-space: nowrap;
	padding: 0 1rem;
	letter-spacing: 0.1em;
	flex-shrink: 0;
	transform: translateZ(0);
	backface-visibility: hidden;
}

/* Animation moves exactly half the width for seamless loop with scroll offset */
@keyframes marquee-scroll {
	from {
		transform: translateX(var(--scroll-offset));
	}
	to {
		transform: translateX(calc(-100% + var(--scroll-offset)));
	}
}

/* Instagram Carousel - two identical tracks side by side for seamless loop */
.instagram-carousel-container {
	width: 100%;
	overflow: hidden;
	padding: var(--space-md) 0;
}

.instagram-carousel-inner {
	display: flex;
	width: max-content;
	animation: instagram-scroll 60s linear infinite;
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
}

.instagram-carousel-track {
	display: flex;
	gap: 1.5rem;
	padding-right: 1.5rem;
	flex-shrink: 0;
}

.instagram-post-item {
	flex-shrink: 0;
	width: 18rem;
	height: 22.5rem;
	overflow: hidden;
	display: block;
	text-decoration: none;
	position: relative;
}

.instagram-post-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='white' stroke='none'/%3E%3C/svg%3E") center / 2.5rem no-repeat;
	opacity: 0;
	transition: background-color 0.3s ease, opacity 0.3s ease;
	pointer-events: none;
}

.instagram-post-item:hover::after {
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 1;
}

.instagram-post-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.instagram-post-item:hover img {
	transform: scale(1.05);
}

.instagram-post-item:hover img {
	transform: scale(1.05);
}

@keyframes instagram-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ========================================================================
   NEWSLETTER SECTION
   ======================================================================== */

.newsletter-section {
	position: relative;
	padding: var(--space-2xl) 0;
	overflow: hidden;
}

.newsletter-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.newsletter-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: auto;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	will-change: transform;
	transition: transform 0.1s ease-out;
}

.newsletter-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.newsletter-section .container {
	position: relative;
	z-index: 2;
}

.newsletter-section .section-label,
.newsletter-section h2 {
	text-align: center;
	margin: 0;
}

.newsletter-form-container {
	width: 100%;
	max-width: 600px;
}

.newsletter-form-container .wpcf7 {
	width: 100%;
}

.newsletter-form-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.newsletter-input-group {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	width: 100%;
	align-items: center;
	border-bottom: 2px solid var(--color-light);
	padding-bottom: 0.75rem;
	position: relative;
	margin-bottom: 0;
}

.newsletter-input-group.wpcf7-not-valid {
	margin-bottom: 1rem;
}

.newsletter-input-group:has(.wpcf7-not-valid-tip) {
	margin-bottom: 1rem;
}

.newsletter-input-group p {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	width: 100%;
	align-items: center;
	margin: 0;
}

.newsletter-input-group br {
	display: none;
}

.newsletter-input-group .wpcf7-form-control-wrap {
	flex: 1;
	display: flex;
	position: static;
	width: 100%;
}

.newsletter-input-group input[type="email"] {
	flex: 1;
	width: 100%;
	padding: 0.5rem 0;
	font-family: var(--font-primary);
	font-size: 1.5rem;
	color: var(--color-light);
	background: transparent;
	border: none;
	outline: none;
}

.newsletter-input-group input[type="email"]::placeholder {
	color: var(--color-light);
	opacity: 0.7;
}

.newsletter-input-group input[type="email"]:focus {
	outline: none;
	border: none;
}

.newsletter-input-group .wpcf7-submit,
.newsletter-submit-btn {
	padding: 0.75rem 2.5rem;
	font-family: 'Span AllCaps', sans-serif;
	font-size: 1.5rem;
	color: var(--color-dark);
	background: var(--color-light);
	border: none;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
	white-space: nowrap;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	flex-shrink: 0;
}

.newsletter-input-group .wpcf7-submit:hover,
.newsletter-submit-btn:hover {
	background: #c0c0c0;
}

.newsletter-input-group .wpcf7-submit:disabled,
.newsletter-submit-btn:disabled {
	background: rgba(246, 246, 246);
	color: rgba(32, 32, 32, 0.5);
	cursor: not-allowed;
}

.newsletter-input-group .wpcf7-submit:disabled:hover,
.newsletter-submit-btn:disabled:hover {
	background: rgba(246, 246, 246);
}

.newsletter-input-group .wpcf7-spinner {
	display: none;
}

.newsletter-gdpr {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.newsletter-gdpr p {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	font-family: var(--font-primary);
	font-size: 1rem;
	color: var(--color-light);
	line-height: 1.4;
}

.newsletter-gdpr .wpcf7-form-control-wrap {
	display: flex;
	align-items: center;
}

.newsletter-gdpr .wpcf7-acceptance {
	display: flex;
	align-items: center;
}

.newsletter-gdpr .wpcf7-list-item {
	margin: 0;
	display: flex;
	align-items: center;
}

.newsletter-gdpr .wpcf7-list-item-label {
	font-family: var(--font-primary);
	font-size: 1rem;
	color: var(--color-light);
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.newsletter-gdpr a {
	color: var(--color-light);
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.newsletter-gdpr a:hover {
	opacity: 0.8;
}

.newsletter-gdpr input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--color-light);
	background: transparent;
	cursor: pointer;
	position: relative;
	margin: 0;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.newsletter-gdpr input[type="checkbox"]:hover {
	opacity: 0.8;
}

.newsletter-gdpr input[type="checkbox"]:checked {
	background: transparent;
	border-color: var(--color-light);
}

.newsletter-gdpr input[type="checkbox"]:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--color-light);
	font-size: 16px;
	font-weight: bold;
}

.newsletter-input-group .wpcf7-not-valid-tip {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	color: var(--color-light);
	font-size: 0.875rem;
	display: block;
	margin-top: 0.5rem;
}

.newsletter-form-container .wpcf7-not-valid-tip {
	color: #ffa0a0;
	font-size: 0.875rem;
	margin-top: 0.5rem;
	display: block;
}

.newsletter-form-container .wpcf7-response-output {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid var(--color-light);
	color: var(--color-light);
	font-size: 1rem;
	background: transparent;
	text-align: center;
	width: 100%;
}

.newsletter-form-container .wpcf7 form.invalid .wpcf7-response-output,
.newsletter-form-container .wpcf7 form.unaccepted .wpcf7-response-output {
	background: rgba(220, 38, 38, 0.15);
	border-color: rgba(220, 38, 38, 0.5);
	color: var(--color-light);
}

.newsletter-form-container .wpcf7 form.sent .wpcf7-response-output {
	background: #1d4f2175;
	border-color: #46b450;
	color: var(--color-light);
}

/* Responsive */
/* ========================================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================================================================== */

@media (max-width: 768px) {
	.music-player-card {
		flex-direction: column;
	}

	.player-info {
		width: 100%;
		align-items: center;
		text-align: center;
	}

	.release-navigation {
		justify-content: center;
	}

	.custom-player {
		width: 70%;
	}

	.song-title {
		font-size: 2rem;
	}

	.artist-name {
		font-size: 1.25rem;
	}

	.vinyl-wrapper {
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.song-vinyl {
		width: min(280px, 70vw);
		height: auto !important;
		aspect-ratio: 1 / 1;
	}

	.play-button {
		width: 50px;
		height: 50px;
	}

	.playlists-grid {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}

	.playlist-card {
		aspect-ratio: 1 / 1;
	}

	.playlist-title {
		font-size: 2rem;
	}

	.artists-grid-home .artists-row {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.artists-grid-home .artists-row .card {
		width: 100%;
		max-width: 16rem;
	}

	.about-content {
		max-width: 90%;
	}

	.infinite-image-item {
		width: 150px;
		height: 200px;
		contain-intrinsic-size: 150px 200px;
	}

	.newsletter-input-group {
		flex-direction: column;
		gap: 1rem;
		border-bottom: none;
		padding-bottom: 0;
	}

	.newsletter-input-group p {
		flex-direction: column;
	}

	.newsletter-input-group input[type="email"] {
		border-bottom: 2px solid var(--color-light);
		padding-bottom: 0.75rem;
		font-size: 1.25rem;
	}

	.newsletter-submit-btn {
		width: 100%;
		padding: 1rem;
		font-size: 1.25rem;
	}
}
