/* =========================================================
   SHAYLICIOUS ULTRA DISCO EXPERIENCE - STYLESHEET
   ========================================================= */

:root {
    --disco-pink: #ff007f;
    --disco-cyan: #00f0ff;
    --disco-yellow: #ffea00;
    --disco-purple: #9d00ff;
    --disco-orange: #ff5e00;
    --disco-gold: #ffd700;
    --disco-dark: #090514;
    --disco-surface: rgba(22, 13, 41, 0.75);
    --disco-border: rgba(255, 255, 255, 0.15);
    --font-heading: 'Righteous', cursive, sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--disco-dark);
    color: #ffffff;
    font-family: var(--font-body);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 0, 127, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(0, 240, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(157, 0, 255, 0.18) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #090514;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--disco-pink), var(--disco-cyan));
    border-radius: 5px;
}

/* Typography Helpers */
.font-disco {
    font-family: var(--font-heading);
}

.glow-pink {
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.8), 0 0 25px rgba(255, 0, 127, 0.5);
}

.glow-cyan {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 25px rgba(0, 240, 255, 0.5);
}

.glow-gold {
    text-shadow: 0 0 10px rgba(255, 234, 0, 0.8), 0 0 25px rgba(255, 234, 0, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, #ff007f, #ffea00, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Multi-Colored Dance Floor Text Logo & Badge */
.disco-multicolor-text {
    background: linear-gradient(
        90deg,
        #ff007f 0%,
        #ffea00 20%,
        #00ff88 40%,
        #00f0ff 60%,
        #a000ff 80%,
        #ff007f 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: discoPaletteFlow 5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.5)) drop-shadow(0 0 18px rgba(0, 240, 255, 0.4));
    letter-spacing: 0.1em;
}

@keyframes discoPaletteFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.disco-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 18px rgba(255, 0, 127, 0.3), inset 0 0 14px rgba(0, 240, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.disco-brand-badge:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 26px rgba(0, 240, 255, 0.55), inset 0 0 18px rgba(255, 0, 127, 0.35);
    transform: scale(1.04);
}

/* Vintage Mechanical / LED Odometer Ticker */
.odometer-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 38px;
    background: linear-gradient(180deg, #222228 0%, #0d0d12 50%, #1a1a22 100%);
    color: #00f0ff;
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 900;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 240, 255, 0.25);
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.85);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.odometer-digit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glassmorphism Card */
.disco-card {
    background: var(--disco-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--disco-border);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.disco-card:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}

/* Floating Animation */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1.5deg); }
}

.animate-float {
    animation: floatSlow 5s ease-in-out infinite;
}

/* --- 3D CANVAS DISCO BALL --- */
.disco-ball-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 50px rgba(0, 240, 255, 0.4));
}

#discoBallCanvas {
    display: block;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

#discoBallCanvas:active {
    cursor: grabbing;
}

/* --- 3D DISCO DANCE FLOOR --- */
.dance-floor-stage {
    perspective: 800px;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.disco-dance-floor {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    transform: rotateX(55deg) rotateZ(0deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.65);
    padding: 12px;
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.disco-tile {
    --tile-color: #ff007f;
    background-color: var(--tile-color);
    border-radius: 5px;
    box-shadow: 
        0 0 10px var(--tile-color),
        inset 0 0 8px rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.15s ease-out;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.disco-tile:hover, .disco-tile.tile-active {
    transform: translateZ(16px) scale(1.06);
    box-shadow: 
        0 0 25px var(--tile-color),
        0 0 40px var(--tile-color),
        inset 0 0 14px #ffffff;
    filter: brightness(1.4);
    z-index: 10;
}

.disco-tile.tile-flash {
    filter: brightness(2.0);
    box-shadow: 0 0 40px #ffffff;
}

/* Pattern Mode Buttons */
.dance-mode-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dance-mode-btn.active, .dance-mode-btn:hover {
    background: linear-gradient(135deg, var(--disco-pink), var(--disco-purple));
    border-color: var(--disco-cyan);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
}

/* --- EQUALIZER VISUALIZER --- */
.eq-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 44px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.eq-bar {
    flex: 1;
    min-width: 4px;
    height: 10%;
    background: linear-gradient(to top, var(--disco-pink), var(--disco-yellow), var(--disco-cyan));
    border-radius: 2px;
    transition: height 0.06s ease;
}

/* --- DJ VINYL TURNTABLE --- */
.turntable-deck {
    position: relative;
    background: #151022;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #33264c;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.9);
}

.vinyl-disc {
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #111 0, #111 2px, #1a1a1a 3px, #111 4px);
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
    border: 2px solid #292929;
}

.vinyl-disc.spinning {
    animation: spinVinyl 3s linear infinite;
}

.vinyl-center {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--disco-pink), var(--disco-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #000000;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    text-align: center;
    line-height: 1.1;
}

@keyframes spinVinyl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- SQUARE DISCO ARENA STAGE --- */
.disco-stage-square {
    position: relative;
    background: radial-gradient(circle at center, #18092e 0%, #090514 100%);
    box-shadow: 0 0 50px rgba(255, 0, 127, 0.35), inset 0 0 35px rgba(0, 0, 0, 0.85);
}

/* --- FIXED BOTTOM CONTROLS DOCK --- */
.disco-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 5, 20, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 0, 127, 0.4);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.9);
}

/* --- INTEGRATED BACKGROUND DANCE FLOOR BUTTONS --- */
.floor-mode-btn {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(18, 10, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e0e0e0;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.floor-mode-btn:hover {
    border-color: var(--disco-cyan);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.floor-mode-btn.active {
    background: linear-gradient(135deg, var(--disco-pink), #8a2be2);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 0, 127, 0.6);
}

/* --- SOUNDBOARD BUTTONS --- */
.dj-fx-btn {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: linear-gradient(145deg, #221638, #130a24);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: 0 4px 0 #0c0618, 0 6px 12px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.dj-fx-btn:hover {
    border-color: var(--disco-cyan);
    box-shadow: 0 4px 0 #0c0618, 0 0 15px rgba(0, 240, 255, 0.4);
}

.dj-fx-btn:active, .dj-fx-btn.fx-hit {
    transform: translateY(4px);
    box-shadow: 0 0 0 #0c0618, 0 0 20px var(--disco-pink);
    border-color: var(--disco-pink);
    background: linear-gradient(145deg, var(--disco-pink), #9d00ff);
}

/* --- CRT RETRO 1977 MODE --- */
body.crt-mode {
    position: relative;
}

body.crt-mode::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    z-index: 99999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

body.crt-mode::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 99998;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.12; }
    50% { opacity: 0.22; }
    100% { opacity: 0.14; }
}

/* --- BUTTONS & CONTROLS --- */
.btn-disco-primary {
    background: linear-gradient(135deg, var(--disco-pink), var(--disco-purple));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-disco-primary:hover {
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.8), 0 0 15px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px) scale(1.02);
}

.btn-disco-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0.75rem 1.45rem;
    border-radius: 9999px;
    border: 1px solid var(--disco-cyan);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-disco-secondary:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

.disco-input {
    background: rgba(13, 7, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: all 0.25s ease;
    width: 100%;
    font-family: var(--font-body);
}

.disco-input:focus {
    border-color: var(--disco-pink);
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.5);
}

/* --- VINTAGE CGI PERL HIT COUNTER --- */
.retro-odometer-frame {
    background: #000000;
    padding: 4px 8px;
    border-radius: 6px;
    border: 2px solid #333333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.8);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.odometer-digit {
    width: 18px;
    height: 26px;
    background: linear-gradient(to bottom, #111116 0%, #1e1e28 50%, #0d0d12 100%);
    border: 1px solid #3a3a4c;
    border-radius: 3px;
    color: #ffea00;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 6px rgba(255, 234, 0, 0.4);
    text-shadow: 0 0 4px #ffea00;
    transition: transform 0.2s ease;
}
