/*
Theme Name: VivaFM Ultimate Pro
Theme URI: https://vivafm.pl
Author: Studio VivaFM
Description: Zaawansowany silnik motywów omijający nadpisywanie tła przez WordPress. Canvas EQ i pełna responsywność.
Version: 9.1
*/

/* =========================================
   1. SYSTEM MOTYWÓW (PANCERNE ZMIENNE)
========================================= */
html, html[data-theme="brand"] {
    --bg-base: #0a0205; 
    --bg-gradient: radial-gradient(circle at 50% 0%, #1f0510 0%, #0a0205 80%);
    --bg-panel: #17050d;
    --brand-1: #d9005c; 
    --brand-2: #ff5e00; 
    --text-main: #ffffff;
    --text-muted: #9c8b96;
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-base: 0 15px 35px rgba(0,0,0,0.8);
    --player-bg: rgba(15, 4, 9, 0.95);
    --nav-bg: rgba(10, 2, 5, 0.85);
    --glow-blend: screen;
    --glow-opacity: 0.15;
}

html[data-theme="dark"] {
    --bg-base: #050505;
    --bg-gradient: #050505;
    --bg-panel: #111111;
    --brand-1: #444444;
    --brand-2: #888888;
    --text-main: #f5f5f5;
    --text-muted: #777777;
    --border-glass: rgba(255, 255, 255, 0.05);
    --shadow-base: 0 15px 35px rgba(0,0,0,0.9);
    --player-bg: rgba(5, 5, 5, 0.98);
    --nav-bg: rgba(5, 5, 5, 0.9);
    --glow-blend: screen;
    --glow-opacity: 0.03;
}

html[data-theme="light"] {
    --bg-base: #f4f4f6;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f0f0f3 100%);
    --bg-panel: #ffffff;
    --brand-1: #d9005c; 
    --brand-2: #ff5e00;
    --text-main: #111111;
    --text-muted: #666666;
    --border-glass: rgba(0, 0, 0, 0.06);
    --shadow-base: 0 15px 35px rgba(0,0,0,0.06);
    --player-bg: rgba(255, 255, 255, 0.95);
    --nav-bg: rgba(244, 244, 246, 0.85);
    --glow-blend: multiply;
    --glow-opacity: 0.05;
}

/* =========================================
   2. BRUTALNY RESET I WYMUSZENIE TŁA
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

html body, html[data-theme] body, .site-main, #page, .site-content {
    background: var(--bg-gradient) !important;
    background-color: var(--bg-base) !important;
    color: var(--text-main) !important;
    font-family: 'Montserrat', system-ui, sans-serif !important;
    min-height: 100vh;
}

body {
    overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased;
    transition: background 0.5s ease, background-color 0.5s ease, color 0.5s ease;
    position: relative;
}

body::before {
    content: ''; position: fixed; inset: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 20% 30%, var(--brand-1) 0%, transparent 35%),
                radial-gradient(circle at 80% 70%, var(--brand-2) 0%, transparent 35%);
    opacity: var(--glow-opacity); mix-blend-mode: var(--glow-blend);
    animation: bg-drift 40s linear infinite alternate; z-index: -1; pointer-events: none;
    transition: opacity 0.5s ease;
}
@keyframes bg-drift { 0% { transform: rotate(0deg); } 100% { transform: rotate(5deg); } }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); border-radius: 5px; }

/* =========================================
   3. HEADER & SWITCHER MOTYWÓW
========================================= */
.site-header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 4rem; background: var(--nav-bg) !important;
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass); transition: 0.4s ease;
}
.site-header.is-scrolled { padding: 0.8rem 4rem; box-shadow: var(--shadow-base); }
.brand-logo img { height: 48px; transition: 0.3s; filter: drop-shadow(0 0 15px rgba(217,0,92,0.4)); }
.brand-logo img:hover { transform: scale(1.05); }

.header-controls { display: flex; align-items: center; gap: 3rem; }
.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-menu a {
    color: var(--text-main) !important; text-decoration: none; font-size: 0.85rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    position: relative; transition: 0.3s;
}
.nav-menu a:hover { color: var(--brand-1) !important; }

.theme-switcher {
    position: relative; display: flex; align-items: center;
    background: var(--bg-panel); border: 1px solid var(--border-glass);
    border-radius: 30px; padding: 4px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}
.theme-btn {
    background: transparent; border: none; color: var(--text-muted);
    width: 36px; height: 36px; border-radius: 50%; font-size: 14px;
    cursor: pointer; z-index: 2; transition: 0.3s; display: flex;
    justify-content: center; align-items: center; outline: none;
}
.theme-btn.active { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.theme-indicator {
    position: absolute; top: 4px; left: 4px; width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    border-radius: 50%; z-index: 1; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(217,0,92,0.4);
}

/* =========================================
   4. HERO & SEKCJE TREŚCI
========================================= */
.hero-section {
    min-height: 90vh; display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; padding: 0 2rem; margin-top: 60px;
}
.live-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-panel) !important; border: 1px solid var(--border-glass);
    padding: 0.6rem 1.5rem; border-radius: 2rem; font-size: 0.8rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-main) !important; margin-bottom: 2rem; box-shadow: var(--shadow-base);
}
.live-badge .dot { width: 8px; height: 8px; background: var(--brand-1); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } }

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; line-height: 1.1;
    text-transform: uppercase; letter-spacing: -2px; margin-bottom: 1.5rem; color: var(--text-main) !important;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(217,0,92,0.3));
}
.hero-desc { font-size: 1.25rem; color: var(--text-muted) !important; max-width: 650px; font-weight: 500; }

.content-section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.section-heading { text-align: center; font-size: 2.5rem; font-weight: 900; margin-bottom: 4rem; text-transform: uppercase; color: var(--text-main) !important; }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.info-card {
    background: var(--bg-panel) !important; border: 1px solid var(--border-glass);
    border-radius: 24px; padding: 3.5rem 2.5rem; transition: 0.4s;
    box-shadow: var(--shadow-base); text-align: left; position: relative; overflow: hidden;
}
.info-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.info-card:hover { transform: translateY(-10px); border-color: var(--brand-1); }
.info-card:hover::before { transform: scaleX(1); }

.info-card i { font-size: 2.5rem; color: var(--brand-1); margin-bottom: 1.5rem; display: inline-block; transition: 0.3s; }
.info-card:hover i { transform: scale(1.1) rotate(5deg); }
.info-card h3 { font-size: 1.6rem; margin-bottom: 1rem; font-weight: 800; color: var(--text-main) !important; }
.info-card p { color: var(--text-muted) !important; font-size: 1rem; line-height: 1.6; }

/* =========================================
   5. STOPKA & SOCIAL MEDIA (NOWE)
========================================= */
.site-footer {
    border-top: 1px solid var(--border-glass); 
    padding: 5rem 2rem 12rem; /* Dolny padding chroni przed zasłonięciem przez odtwarzacz */
    text-align: center; 
    background: var(--bg-panel);
    position: relative;
    z-index: 10;
}
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.social-links a {
    width: 55px; height: 55px; border-radius: 50%; background: var(--bg-base);
    display: flex; justify-content: center; align-items: center; color: var(--text-main);
    text-decoration: none; border: 1px solid var(--border-glass); transition: 0.3s;
    font-size: 1.4rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.social-links a:hover { 
    background: var(--brand-1); color: #fff; 
    transform: translateY(-5px); border-color: var(--brand-1);
    box-shadow: 0 10px 25px rgba(217,0,92,0.5); 
}
.copyright { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.copyright span { color: var(--brand-1); font-weight: 800; letter-spacing: 1px; }

/* =========================================
   6. BANER COOKIES
========================================= */
.cookie-notice {
    position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%);
    background: var(--bg-panel); border: 1px solid var(--border-glass); 
    padding: 1.5rem 2.5rem; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 3rem; 
    z-index: 999999; transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-base);
    width: 90%; max-width: 800px;
}
.cookie-notice.is-visible { bottom: 130px; }
.cookie-content h4 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--text-main); font-weight: 700; }
.cookie-content p { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; line-height: 1.4; }
.btn-accept { 
    background: var(--brand-1); color: #fff; border: none; padding: 0.8rem 2.5rem; 
    border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.2s; 
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; flex-shrink: 0;
}
.btn-accept:hover { background: var(--brand-2); }

/* =========================================
   7. ODTWARZACZ & CANVAS EQ
========================================= */
.player-dock {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 48px); max-width: 1100px; background: var(--player-bg) !important;
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass); border-radius: 100px;
    padding: 1rem 2.5rem 1rem 1rem; display: flex; align-items: center; gap: 2rem;
    z-index: 9999; box-shadow: var(--shadow-base); transition: 0.4s ease;
}

.ctrl-play {
    width: 75px; height: 75px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff; font-size: 1.8rem; cursor: pointer; display: flex;
    justify-content: center; align-items: center; flex-shrink: 0; transition: 0.2s; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); outline: none;
}
.ctrl-play:hover { transform: scale(1.05); box-shadow: 0 15px 30px rgba(217,0,92,0.4); }

.meta-display { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border-glass); padding-right: 20px; }
.meta-status { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted) !important; font-weight: 800; margin-bottom: 4px; }
.meta-title-wrap { position: relative; width: 100%; white-space: nowrap; overflow: hidden; }
.meta-title-wrap::after { content:''; position:absolute; top:0; right:0; width:50px; height:100%; background:linear-gradient(to right, transparent, var(--player-bg)); }
.meta-title { display: inline-block; font-size: 1.25rem; font-weight: 800; color: var(--text-main) !important; padding-left: 100%; animation: scroll-left 18s linear infinite; }
@keyframes scroll-left { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

.eq-container { height: 40px; width: 140px; display: flex; align-items: center; }
canvas#viva-eq { width: 100%; height: 100%; display: block; }

.vol-ctrl { display: flex; align-items: center; gap: 1rem; color: var(--text-muted) !important; }
.vol-slider { -webkit-appearance: none; width: 120px; height: 6px; background: var(--border-glass); border-radius: 3px; outline: none; }
.vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--brand-1); border-radius: 50%; cursor: pointer; transition: 0.2s; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.vol-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* RWD */
@media (max-width: 960px) {
    .site-header { padding: 1rem; flex-direction: column; gap: 1rem; }
    .nav-menu { display: none; }
    .player-dock { flex-direction: column; border-radius: 30px; padding: 2.5rem 2rem 2rem; bottom: 15px; gap: 1.5rem; }
    .eq-container { display: none; }
    .vol-ctrl { width: 100%; justify-content: center; margin-top: 0.5rem; border-top: 1px solid var(--border-glass); padding-top: 1.5rem; }
    .ctrl-play { position: absolute; top: -35px; border: 6px solid var(--bg-base); }
    .meta-display { width: 100%; text-align: center; border-right: none; padding-right: 0; }
    .site-footer { padding: 4rem 1.5rem 15rem; }
}