/* === STYLES.CSS UNIFICATO - BACKGROUND VISIBILE === */

/* ===== BASE STILE ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    overflow-x: hidden;

    /* ✅ Background default (desktop/tablet) */
    background-image: url('https://www.radioblu.cloud/img/background.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* ✅ Su mobile evitiamo fixed (lag), lo abilitiamo solo desktop sotto */
    background-attachment: scroll;
}

/* ✅ Background mobile più leggero */
@media (max-width: 768px) {
    body {
        background-image: url('https://www.radioblu.cloud/img/background-mobile.avif');
        background-attachment: scroll;
    }
}

/* ✅ Fixed solo su desktop (effetto più bello, senza scatti su mobile) */
@media (min-width: 1024px) {
    body {
        background-attachment: fixed;
    }
}

/* Overlay globale (PIÙ LEGGERO) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* ← 0.7 invece di 1.0 */
    z-index: 0;
}

/* Contenitore principale SENZA overlay::before */
.center-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ← center invece di flex-start */
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1; /* ← Sopra overlay */
    min-height: 100vh;
    text-align: center;
    /* ❌ RIMUOVI background-image da qui! */
}

/* ===== PLAYER + LOGO ===== */
.logo {
    max-width: 200px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.center-container h1 {
    margin: 10px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.center-container p {
    margin: 10px 0;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.video-container {
    max-width: 90%;
    width: 100%;
    max-width: 900px;
    padding: 0;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    cursor: pointer;
}

.video-wrapper:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.7);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.video-metadata {
    margin-top: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

#current-track {
    margin: 10px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #1e90ff;
    text-shadow: 0 0 10px rgba(30,144,255,0.5);
}

/* ===== FOOTER ANIMATO ===== */
.footer-container {
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(30,144,255,0.1) 50%, rgba(0,0,0,0.95) 100%);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
    line-height: 1.3;
    min-height: 80px;
    position: relative;
    z-index: 3;
    margin-top: auto;
    border-top: 3px solid transparent;
    animation: footerGlow 3s ease-in-out infinite alternate;
    box-shadow: 0 -10px 30px rgba(30,144,255,0.3);
}

@keyframes footerGlow {
    0% { border-top-color: #1e90ff; box-shadow: 0 -10px 30px rgba(30,144,255,0.3); }
    100% { border-top-color: #00d4ff; box-shadow: 0 -15px 40px rgba(0,212,255,0.5); }
}

.footer-container img {
    max-height: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.footer-container a {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-container a:hover {
    color: #00d4ff;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0,212,255,0.8);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    z-index: 1000;
}

.cookie-banner button {
    margin: 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#accept-cookies { background: #1e90ff; color: white; }
#accept-cookies:hover { background: #00d4ff; box-shadow: 0 0 15px rgba(0,212,255,0.5); }
#reject-cookies { background: #ff4444; color: white; }
#reject-cookies:hover { background: #ff6666; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo { max-width: 150px; }
    .center-container h1 { font-size: 2em; }
    .video-container { max-width: 95%; }
    .center-container { padding: 10px; }
}