/* public/style.css - KOMPLETNA WERSJA z przyciskiem i nazwą studia */

:root {
    --bg-dark: #000000;
    --text-white: #ffffff;
    --text-slogan: #e0e0e0;
    
    /* Gradienty Tła */
    --status-green: linear-gradient(180deg, #0a3d0a 0%, #000000 100%);
    --status-red: linear-gradient(180deg, #500000 0%, #1a0000 100%);
    --status-onair: linear-gradient(180deg, #ff0000 0%, #990000 100%);
    --status-waiting: linear-gradient(180deg, #333333 0%, #000000 100%);
    --status-blue: linear-gradient(180deg, #003366 0%, #001a33 100%);
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Roboto Condensed', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===================================================
   NAGŁÓWEK z przyciskiem wyloguj
   =================================================== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(20, 20, 20, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.station-logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.slogan-container {
    flex: 1;
    text-align: center;
}

.slogan {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--text-slogan);
    margin: 0;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transform: rotate(-2deg);
}

/* ✅ PRZYCISK WYLOGUJ - WYRAŹNY */
.logout-container {
    flex-shrink: 0;
}

.logout-btn {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border: 2px solid #ff6666;
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff0000, #990000);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
    border-color: #ff0000;
}

.logout-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.4);
}

/* ===================================================
   GŁÓWNY EKRAN z nazwą studia
   =================================================== */

.main-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    background: radial-gradient(circle, #222 0%, #000 100%);
    transition: background 0.5s ease;
    position: relative;
}

/* ✅ NAZWA ZALOGOWANEGO STUDIA - WIDOCZNA */
.studio-name {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        2px 2px 8px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
 /*    animation: glow-pulse 3s infinite;  */
    z-index: 10;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
}

.status-text {
    font-size: 3.5vw;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: #ccc;
    transition: all 0.3s ease;
}

.countdown-timer {
    font-size: 25vw;
    font-weight: 700;
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
    color: white;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

#timer {
    font-size: 25vw;
    font-weight: 700;
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
    color: white;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

/* ===================================================
   STOPKA
   =================================================== */

.bottom-bar {
    background: #000;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #222;
}

.track-info {
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95vw;
    margin: 0 auto;
}

.credits {
    font-size: 0.8rem;
    color: #666;
    text-transform: none;
    letter-spacing: 2px;
    margin-top: 5px;
}

.credits strong {
    color: #39ff14;
}

/* ===================================================
   TRYBY KOLORYSTYCZNE
   =================================================== */

/* Stan 1: ZIELONY */
.bg-green {
    background: var(--status-green) !important;
}

.bg-green .status-text { 
    color: #8f8; 
}

.bg-green .countdown-timer,
.bg-green #timer { 
    text-shadow: 0 0 30px rgba(0,255,0,0.4); 
    color: white;
}

/* Stan 2: CZERWONY */
.bg-red {
    background: var(--status-red) !important;
    animation: studio-alarm 0.8s infinite ease-in-out;
    border: 2px solid #ff5555;
}

.bg-red .status-text { 
    color: #f88; 
}

.bg-red .countdown-timer,
.bg-red #timer {
    color: white;
}

/* Stan 3: ON AIR */
.bg-onair {
    background: var(--status-onair) !important;
}

.bg-onair .status-text {
    font-size: 15vw !important;
    color: white;
    line-height: 1;
}

.bg-onair .countdown-timer,
.bg-onair #timer {
    display: none !important;
}

/* Stan 4: WAITING */
.bg-waiting {
    background: var(--status-waiting) !important;
}

.bg-waiting .status-text { 
    color: #999; 
    font-size: 3vw;
}

.bg-waiting .countdown-timer,
.bg-waiting #timer { 
    color: #666;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

/* Stan 5: BLUE */
.bg-blue {
    background: var(--status-blue) !important;
    animation: pulse-blue 1.5s infinite;
}

.bg-blue .status-text { 
    color: #66ccff;
    animation: blink 1s infinite;
}

.bg-blue .countdown-timer,
.bg-blue #timer {
    color: #66ccff;
}

/* ===================================================
   ANIMACJE
   =================================================== */

@keyframes studio-alarm {
    0% {
        background-color: #4a0000;
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
        transform: scale(1);
    }
    50% {
        background-color: #ff0000;
        box-shadow: 0 0 50px rgba(255, 0, 0, 1);
        transform: scale(1.02);
    }
    100% {
        background-color: #4a0000;
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
        transform: scale(1);
    }
}

@keyframes pulse-blue {
    0%, 100% {
        background-color: #003366;
    }
    50% {
        background-color: #0055aa;
        box-shadow: 0 0 30px rgba(0, 100, 200, 0.5);
    }
}

@keyframes blink {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.3; 
    }
}

/* ===================================================
   RESPONSYWNOŚĆ
   =================================================== */

@media (max-width: 768px) {
    .slogan {
        font-size: 2rem;
    }
    
    .station-logo {
        height: 60px;
    }
    
    .logout-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .studio-name {
        font-size: 1.8rem;
        top: 15px;
        left: 20px;
    }
    
    .status-text {
        font-size: 5vw;
    }
    
    .countdown-timer,
    #timer {
        font-size: 30vw;
    }
    
    .bg-onair .status-text {
        font-size: 20vw !important;
    }
    
    .track-info {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px;
        gap: 10px;
    }
    
    .slogan {
        font-size: 1.5rem;
    }
    
    .station-logo {
        height: 50px;
    }
    
    .logout-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .studio-name {
        font-size: 1.5rem;
        top: 10px;
        left: 10px;
    }
    
    .status-text {
        font-size: 6vw;
    }
    
    .countdown-timer,
    #timer {
        font-size: 35vw;
    }
    
    .track-info {
        font-size: 1.2rem;
    }
}
