﻿/* ═══════════════════════════════════════════════════════════════
   ZwaarFris Public Homepage — Custom Styles
   Palette drawn from "Obsession with the Impossible" album cover:
     Cyan    #00d9ff  — ZwaarFris brand / music
     Gold    #ffcc66  — LostKings / games
     Background: pure black #050508
   Tailwind CDN handles layout/spacing/color utilities.
   This file handles: animation, background FX, custom components.
   ═══════════════════════════════════════════════════════════════ */

/* ── Full Screen Background ─────────────────────────────────── */
body {
    background: url('/images/fullscreen-bg.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.40);
    z-index: 1;
    pointer-events: none;
}

/* ── Glassmorphism Nav ──────────────────────────────────────── */
.nav-glass {
    background: rgba(5, 5, 8, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Ambient Background Orbs ────────────────────────────────── */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.14;
    animation: orb-pulse 10s ease-in-out infinite;
    will-change: opacity, transform;
}

/* Electric cyan orb — left/top */
.hero-orb--cyan {
    width: min(700px, 90vw);
    height: min(700px, 90vw);
    background: radial-gradient(circle, #00d9ff 0%, transparent 70%);
    top: -20%;
    left: -15%;
}

/* Gold orb — right/bottom */
.hero-orb--magenta {
    width: min(550px, 75vw);
    height: min(550px, 75vw);
    background: radial-gradient(circle, #ffcc66 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes orb-pulse {

    0%,
    100% {
        opacity: 0.10;
        transform: scale(1);
    }

    50% {
        opacity: 0.20;
        transform: scale(1.08);
    }
}

/* ── Scroll-triggered Animations ────────────────────────────── */
.anim-fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade-up--delay-1 {
    transition-delay: 0.1s;
}

.anim-fade-up--delay-2 {
    transition-delay: 0.22s;
}

.anim-fade-up--delay-3 {
    transition-delay: 0.34s;
}

/* Hero entrance (no observer needed — runs on load) */
.hero-entrance {
    animation: hero-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-entrance--sub {
    animation: hero-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-entrance--cta {
    animation: hero-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Section Divider ─────────────────────────────────────────── */
.section-label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.07), transparent);
}

/* ── Buttons ─────────────────────────────────────────────────── */

/* Primary cyan — music / ZwaarFris */
.btn-cyan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #00d9ff, #009dbf);
    color: #000;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 24px rgba(0, 217, 255, 0.25);
}

.btn-cyan:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* Primary white — studio / general */
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #000;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.btn-white:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
}

/* Primary gold — games / LostKings */
.btn-magenta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #ffcc66, #cc9933);
    color: #000;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 24px rgba(255, 204, 102, 0.25);
}

.btn-magenta:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* Outline cyan */
.btn-outline-cyan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: 1px solid rgba(0, 217, 255, 0.35);
    color: #00d9ff;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-outline-cyan:hover {
    border-color: rgba(0, 217, 255, 0.70);
    background: rgba(0, 217, 255, 0.07);
    transform: translateY(-2px);
}

/* Outline gold */
.btn-outline-magenta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: 1px solid rgba(255, 204, 102, 0.35);
    color: #ffcc66;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-outline-magenta:hover {
    border-color: rgba(255, 204, 102, 0.70);
    background: rgba(255, 204, 102, 0.07);
    transform: translateY(-2px);
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge-cyan {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.28);
    color: #66eaff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-magenta {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    background: rgba(255, 204, 102, 0.08);
    border: 1px solid rgba(255, 204, 102, 0.28);
    color: #ffdd88;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Album Art Card ──────────────────────────────────────────── */
.art-card-cyan {
    background: linear-gradient(145deg, #08080f, #0d0d18);
    border: 1px solid rgba(0, 217, 255, 0.14);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.art-card-cyan::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 217, 255, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.art-card-cyan::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 217, 255, 0.35), transparent);
}

/* ── Game Art Card ───────────────────────────────────────────── */
.art-card-magenta {
    background: linear-gradient(145deg, #0f0e08, #1a180a);
    border: 1px solid rgba(255, 204, 102, 0.14);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.art-card-magenta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 75%, rgba(255, 204, 102, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.art-card-magenta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 204, 102, 0.35), transparent);
}

/* ── Track Bar Visualizer ────────────────────────────────────── */
.track-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 64px;
    width: 100%;
}

.track-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(to top, rgba(0, 217, 255, 0.80), rgba(0, 217, 255, 0.10));
    transition: opacity 0.3s;
}

.track-bar:nth-child(1) {
    height: 56%;
}

.track-bar:nth-child(2) {
    height: 82%;
}

.track-bar:nth-child(3) {
    height: 44%;
}

.track-bar:nth-child(4) {
    height: 96%;
}

.track-bar:nth-child(5) {
    height: 68%;
}

.track-bar:nth-child(6) {
    height: 52%;
}

.track-bar:nth-child(7) {
    height: 78%;
}

.track-bar:nth-child(8) {
    height: 62%;
}

.track-bar:nth-child(9) {
    height: 74%;
}

/* ── Chess Board ─────────────────────────────────────────────── */
.chess-board {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    border: 1px solid rgba(255, 204, 102, 0.22);
    border-radius: 4px;
    overflow: hidden;
}

.chess-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.chess-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    font-size: clamp(0.9rem, 2vw, 1.25rem);
}

.chess-dark {
    background: rgba(255, 204, 102, 0.13);
}

.chess-light {
    background: rgba(255, 204, 102, 0.04);
}

.chess-piece {
    color: rgba(255, 204, 102, 0.75);
}

.chess-piece-white {
    color: rgba(255, 255, 255, 0.55);
}

.chess-piece-alt {
    color: #ffdd88;
    text-shadow: 0 0 12px rgba(255, 204, 102, 0.6);
}

/* ── Hero Title Glow ─────────────────────────────────────────── */
.hero-title-glow {
    text-shadow: 0 0 100px rgba(0, 217, 255, 0.20), 0 0 40px rgba(0, 217, 255, 0.10);
}

/* ── Horizontal rules with gradient ─────────────────────────── */
.hr-cyan {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 217, 255, 0.55), transparent);
}

.hr-magenta {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 204, 102, 0.55), transparent);
}

/* ── Mobile menu button ──────────────────────────────────────── */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #94a3b8;
    border-radius: 2px;
    transition: background 0.2s;
}

.hamburger:hover span {
    background: #00d9ff;
}

/* ── Mobile nav drawer ───────────────────────────────────────── */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: #00d9ff;
}

.mobile-nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.2s;
}

.mobile-nav-close:hover {
    color: #00d9ff;
}

/* ── Scroll hint ─────────────────────────────────────────────── */
.scroll-hint {
    color: rgba(0, 217, 255, 0.65);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.65;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 1.00;
    }
}

/* ── Audio Player ────────────────────────────────────────────── */
.player-wrap {
    background: rgba(0, 217, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.10);
    border-radius: 6px;
    overflow: hidden;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.08);
    background: rgba(0, 217, 255, 0.04);
}

.player-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.35);
    background: transparent;
    color: #00d9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}

.player-btn:hover {
    background: rgba(0, 217, 255, 0.12);
    border-color: rgba(0, 217, 255, 0.6);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.4rem;
}

.player-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}

.player-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #00d9ff, #66eaff);
    border-radius: 999px;
    transition: width 0.1s linear;
}

.player-time {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.player-tracklist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 217, 255, 0.2) transparent;
}

.player-tracklist::-webkit-scrollbar {
    width: 4px;
}

.player-tracklist::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.2);
    border-radius: 2px;
}

.player-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.player-track:last-child {
    border-bottom: none;
}

.player-track:hover {
    background: rgba(0, 217, 255, 0.05);
}

.player-track.is-active {
    background: rgba(0, 217, 255, 0.08);
}

.player-track.is-active .track-num {
    color: #00d9ff;
}

.player-track.is-active .track-name {
    color: #fff;
}

.track-num {
    font-size: 0.65rem;
    color: #475569;
    min-width: 1.5rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.track-name {
    flex: 1;
    font-size: 0.8125rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-icon {
    flex-shrink: 0;
    color: #334155;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.player-track:hover .track-icon,
.player-track.is-active .track-icon {
    color: #00d9ff;
}

.track-share-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #475569;
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.track-share-btn:hover {
    color: #00d9ff;
    transform: scale(1.1);
    opacity: 1;
}

.player-track:hover .track-share-btn {
    opacity: 1;
}

/* Share toast notification */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 217, 255, 0.95);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Coming Soon Tooltip ─────────────────────────────────────── */
[data-tooltip] {
    position: relative;
    cursor: not-allowed;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
}