/**
 * Toggle Track Skin — Neon Underground
 *
 * CRT scanlines, neon glow borders, flickering active labels.
 * Cyberpunk club flyer energy. Dark matte with electric edges.
 *
 * @package ToggleTrack
 * @since   1.0.0
 */

/* ---------- Color Palette ---------- */

.tt-skin-neon-underground {
    --tt-bg: #0a0a0a;
    --tt-text: #f0f0f0;
    --tt-active: #ffffff;
    --tt-controls: #141414;
    --tt-progress: #1a1a1a;
    --tt-accent: #ff2a6d;
}

/* ---------- Keyframe Animations ---------- */

@keyframes tt-neon-flicker {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 4px var(--tt-accent),
            0 0 10px var(--tt-accent);
    }
    4% {
        opacity: 0.85;
        text-shadow:
            0 0 2px var(--tt-accent);
    }
    8% {
        opacity: 1;
        text-shadow:
            0 0 4px var(--tt-accent),
            0 0 10px var(--tt-accent);
    }
    42% {
        opacity: 1;
    }
    43% {
        opacity: 0.7;
        text-shadow: none;
    }
    44% {
        opacity: 1;
        text-shadow:
            0 0 4px var(--tt-accent),
            0 0 10px var(--tt-accent);
    }
}

@keyframes tt-scanline-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}

/* ---------- Container — Dark Matte with Neon Edge ---------- */

.tt-skin-neon-underground {
    border-radius: 0;
    border: 1px solid rgba(255, 42, 109, 0.3);
    box-shadow:
        0 0 5px rgba(255, 42, 109, 0.15),
        0 0 15px rgba(255, 42, 109, 0.08),
        0 0 30px rgba(255, 42, 109, 0.04),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
}

/* CRT scanline overlay */
.tt-skin-neon-underground::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    pointer-events: none;
    z-index: 5;
    animation: tt-scanline-scroll 0.15s linear infinite;
}

.tt-skin-neon-underground .tt-wrapper {
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* ---------- Track Buttons ---------- */

.tt-skin-neon-underground .tt-track-btn {
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 42, 109, 0.15);
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.tt-skin-neon-underground .tt-track-btn:hover {
    background: #1a1a1a;
    border-color: rgba(255, 42, 109, 0.3);
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.1);
}

.tt-skin-neon-underground .tt-track-btn.tt-active {
    border-color: rgba(255, 42, 109, 0.6);
    box-shadow:
        0 0 5px rgba(255, 42, 109, 0.3),
        0 0 15px rgba(255, 42, 109, 0.1);
    animation: tt-neon-flicker 4s ease-in-out infinite;
}

/* ---------- Play Button ---------- */

.tt-skin-neon-underground .tt-play-btn {
    border-radius: 0;
    border: 1px solid rgba(255, 42, 109, 0.3);
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.1);
}

.tt-skin-neon-underground .tt-play-btn:hover {
    border-color: rgba(255, 42, 109, 0.6);
    box-shadow:
        0 0 5px rgba(255, 42, 109, 0.3),
        0 0 15px rgba(255, 42, 109, 0.15);
}

.tt-skin-neon-underground .tt-play-btn:active {
    box-shadow:
        0 0 5px rgba(255, 42, 109, 0.5),
        0 0 20px rgba(255, 42, 109, 0.25),
        inset 0 0 10px rgba(255, 42, 109, 0.1);
}

/* ---------- Progress Bar — Neon Fill ---------- */

.tt-skin-neon-underground .tt-progress-bar {
    border-radius: 0;
    height: 6px;
    border: 1px solid rgba(255, 42, 109, 0.1);
}

.tt-skin-neon-underground .tt-progress-fill {
    border-radius: 0;
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.5);
    background: linear-gradient(
        90deg,
        var(--tt-accent) 0%,
        #ff4488 100%
    );
}

/* ---------- Time Display ---------- */

.tt-skin-neon-underground .tt-time {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 0 6px rgba(255, 42, 109, 0.3);
}

/* ---------- Control Buttons ---------- */

.tt-skin-neon-underground .tt-loop-btn,
.tt-skin-neon-underground .tt-loudness-btn,
.tt-skin-neon-underground .tt-ab-btn {
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75em;
    border: 1px solid rgba(255, 42, 109, 0.15);
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.tt-skin-neon-underground .tt-loop-btn:hover,
.tt-skin-neon-underground .tt-loudness-btn:hover,
.tt-skin-neon-underground .tt-ab-btn:hover {
    background: #1a1a1a;
    border-color: rgba(255, 42, 109, 0.3);
}

.tt-skin-neon-underground .tt-loop-btn.tt-active,
.tt-skin-neon-underground .tt-loudness-btn.tt-active,
.tt-skin-neon-underground .tt-ab-btn.tt-active {
    border-color: rgba(255, 42, 109, 0.6);
    box-shadow:
        0 0 5px rgba(255, 42, 109, 0.3),
        0 0 12px rgba(255, 42, 109, 0.1);
}

/* ---------- Volume / Speed Labels ---------- */

.tt-skin-neon-underground .tt-volume-label,
.tt-skin-neon-underground .tt-speed-label {
    text-transform: uppercase;
    font-size: 0.7em;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* ---------- Meter ---------- */

.tt-skin-neon-underground .tt-meter {
    border: 1px solid rgba(255, 42, 109, 0.2);
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.05) inset;
}

.tt-skin-neon-underground .tt-meter-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65em;
    font-weight: 700;
}

/* ---------- Loading Overlay ---------- */

.tt-skin-neon-underground .tt-loading {
    background: rgba(10, 10, 10, 0.96);
}

.tt-skin-neon-underground .tt-loading-text {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 0.8em;
    text-shadow: 0 0 8px rgba(255, 42, 109, 0.4);
    color: var(--tt-accent);
}

.tt-skin-neon-underground .tt-loading-fill {
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.5);
}

/* ---------- Loop Markers ---------- */

.tt-skin-neon-underground .tt-loop-marker {
    box-shadow: 0 0 6px rgba(255, 42, 109, 0.6);
}

/* ---------- Focus Styles ---------- */

.tt-skin-neon-underground *:focus-visible {
    outline-color: var(--tt-accent);
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.3);
}
