/* ============================================================
   TEMA 04 — Cabeçalho fiel ao modelo (logo + player + navbar)
   ============================================================ */

/* ---------- Faixa superior (módulo 15 - logo) ---------- */

.header {
    background: linear-gradient(135deg, var(--p2, #1a1a2e) 0%, var(--p3, #16213e) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--p4, #00d4ff), rgba(0, 0, 0, 0) 65%);
    opacity: 0.9;
    z-index: 1;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

.logo:hover {
    color: #fff;
}

.logo i {
    font-size: 25px;
    color: var(--p4, #00d4ff);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.logo:hover i {
    border-color: var(--p4, #00d4ff);
    transform: translateY(-1px);
}

.logo span {
    letter-spacing: 0.3px;
}

/* ---------- Player / pílulas do cabeçalho ---------- */

.audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    color: #fff;
    transition: background 0.3s ease;
}

a.audio-player:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.audio-player .play-btn {
    background: var(--p4, #00d4ff);
    border: none;
    padding: 0;
    line-height: 1;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

.audio-player:hover .play-btn,
.audio-player .play-btn:hover {
    filter: brightness(0.92);
    transform: scale(1.1);
}

.player-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.now-playing {
    font-size: 12px;
    color: var(--p4, #00d4ff);
    font-weight: 600;
    text-transform: uppercase;
}

.station-name {
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Barra de navegação (módulo 14, pos 1/5) ---------- */

.main-nav {
    background: var(--p3, #0f3460);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    display: block;
    padding: 0;
    margin: 0;
}

/* Wrapper de medição do menu: bloco puro, largura total */
.main-nav .nav-wrap {
    display: block;
    width: 100%;
    min-width: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px var(--menu-pad, 20px);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--p4, #00d4ff);
    color: var(--p2, #1a1a2e);
}

.nav-menu li a i {
    margin-right: 8px;
}

/* Dropdown "Mais" */

.nav-menu .has-dropdown > a > i.fa-angle-down {
    margin-left: 6px;
    margin-right: 0;
}

.nav-menu .nav-more > a {
    white-space: nowrap;
}

.nav-menu .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 230px;
    max-width: calc(100vw - 16px);
    max-height: 70vh;
    overflow-y: auto;
    background: var(--p3, #0f3460);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 101;
}

.nav-menu .has-dropdown:hover .nav-dropdown,
.nav-menu .has-dropdown.open .nav-dropdown {
    display: block;
}

.nav-menu .nav-dropdown li a {
    padding: 10px 20px !important;
    white-space: normal;
}

/* ---------- Responsivo (fiel ao modelo + menu mobile) ---------- */

/* Menu contínuo em todas as larguras: o excedente vai para o "Mais" (inclusive no celular) */


@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    /* Pílulas compactas no mobile */
    .audio-player {
        width: auto;
        max-width: 100%;
        justify-content: center;
        padding: 10px 18px;
        gap: 12px;
    }

    .onair-thumb {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 15px;
    }

    .audio-player .play-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 16px;
    }

    .now-playing {
        font-size: 11px;
    }

    .station-name {
        font-size: 13px;
    }

    .onair-sub small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .logo i {
        font-size: 20px;
        width: 44px;
        height: 44px;
    }

    .hideMobile {
        display: none !important;
    }

    .audio-player {
        padding: 8px 14px;
        gap: 10px;
    }

    .onair-thumb {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 13px;
    }
}


/* ---------- Chip "AO VIVO" (programação atual, sem botão) ---------- */

.onair-thumb {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background-color: var(--p4, #00d4ff);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.onair-sub small {
    display: block;
    margin: 0;
    font-size: 12px;
    opacity: 0.75;
    color: #fff;
}
