/* ============================================================
   HEADER - RÁDIO LIBERDADE FM
   ============================================================ */


/* ============================================================
   VARIÁVEIS
   ============================================================ */

:root {

    --liberdade-navy-1: #0A1A63;
    --liberdade-navy-2: #132A8C;

    --liberdade-blue: #1E4FD6;

    --liberdade-gold: #FFC530;
    --liberdade-gold-2: #FFB300;

    --liberdade-white: #FFFFFF;

    --liberdade-ink: #0C1230;
    --liberdade-muted: #5B6280;

    --header-height: 0px;
}



/* ============================================================
   HEADER PRINCIPAL
   ============================================================ */

.site-header {

    background: linear-gradient(
        180deg,
        var(--liberdade-navy-2) 0%,
        var(--liberdade-navy-1) 100%
    );

    box-shadow:
        0 4px 20px rgba(10, 26, 99, 0.35);

    z-index: 1030;

}


/* ============================================================
   PARTE SUPERIOR
   ============================================================ */

.header-top {

    background: linear-gradient(
        180deg,
        var(--liberdade-navy-2) 0%,
        var(--liberdade-navy-1) 100%
    );

}


.header-container {

    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;

}


.header-main-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding: 10px 12px;

}


/* ============================================================
   LOGO
   ============================================================ */

.header-brand {

    flex-shrink: 0;

}


.brand-link {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

}


.brand-logo {

    width: 70px;

    height: 70px;

    object-fit: contain;

    display: block;

}


.brand-text {

    line-height: 1.1;

}


.brand-name {

    font-family: 'Poppins', sans-serif;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: .03em;

    color: #FFFFFF;

}


.brand-frequency {

    margin-top: 4px;

    font-family: 'Poppins', sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .06em;

    color: var(--liberdade-gold);

}


/* ============================================================
   ÁREA DO RÁDIO
   ============================================================ */

.header-radio {

    flex: 1;

    min-width: 220px;

    max-width: 550px;

}


.radio-bar {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    min-height: 50px;

    padding: 7px 8px 7px 14px;

    background: rgba(255, 255, 255, .10);

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 50px;

    overflow: hidden;

}


/* ============================================================
   ÍCONE DO TICKER
   ============================================================ */

.ticker-icon {

    width: 22px;

    height: 22px;

    flex-shrink: 0;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 3px;

}


.ticker-icon span {

    width: 100%;

    height: 100%;

    background: rgba(255, 255, 255, .60);

    border-radius: 2px;

}


/* ============================================================
   TICKER
   ============================================================ */

.ticker-track {

    flex: 1;

    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

}


.ticker-content {

    display: inline-block;

    padding-left: 100%;

    color: #FFFFFF;

    font-size: 13px;

    font-weight: 600;

    animation: liberdadeTicker 16s linear infinite;

}


.ticker-content strong {

    color: var(--liberdade-gold);

    margin-right: 6px;

}


@keyframes liberdadeTicker {

    0% {

        transform: translateX(0);

    }

    100% {

        transform: translateX(-100%);

    }

}


/* ============================================================
   BOTÃO DO RÁDIO
   ============================================================ */

.radio-toggle {

    width: 36px;

    height: 36px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: var(--liberdade-gold);

    color: var(--liberdade-navy-1);

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;

}


.radio-toggle:hover {

    transform: scale(1.08);

    background: var(--liberdade-gold-2);

    box-shadow:
        0 5px 15px rgba(255, 197, 48, .35);

}


.radio-toggle:active {

    transform: scale(.94);

}


.radio-toggle i {

    font-size: 14px;

}


/* ============================================================
   AÇÕES DO HEADER
   ============================================================ */

.header-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 14px;

    flex-shrink: 0;

}


/* ============================================================
   REDES SOCIAIS
   ============================================================ */

.header-social {

    display: flex;

    align-items: center;

    gap: 7px;

}


.header-social a {

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    transition:
        opacity .2s ease,
        transform .2s ease;

}


.header-social a:hover {

    opacity: .80;

    transform: translateY(-2px);

}


.header-social img {

    width: 28px;

    height: 28px;

    object-fit: contain;

    display: block;

}


/* ============================================================
   LOGIN
   ============================================================ */

.header-user {

    flex-shrink: 0;

}


.login-link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--liberdade-gold) !important;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: .02em;

    text-decoration: none;

    white-space: nowrap;

    position: relative;

}


.login-link::after {

    content: '';

    position: absolute;

    left: 0;

    bottom: -4px;

    width: 0;

    height: 2px;

    background: var(--liberdade-gold);

    transition: width .2s ease;

}


.login-link:hover::after {

    width: 100%;

}


/* ============================================================
   MENU DOURADO
   ============================================================ */

.navbar-gold {

    background:
        linear-gradient(
            90deg,
            var(--liberdade-gold-2),
            var(--liberdade-gold) 50%,
            var(--liberdade-gold-2)
        );

    min-height: 52px;

}


.main-menu {

    align-items: center;

    gap: 8px;

}


.main-menu .nav-link {

    position: relative;

    padding: 8px 12px !important;

    color: var(--liberdade-navy-1) !important;

    font-family: 'Poppins', sans-serif;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: .02em;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;

}


.main-menu .nav-link::after {

    content: '';

    position: absolute;

    left: 12px;

    right: 12px;

    bottom: 2px;

    width: 0;

    height: 2px;

    background: var(--liberdade-navy-1);

    transition: width .2s ease;

}


.main-menu .nav-link:hover::after,

.main-menu .nav-link.active::after {

    width: calc(100% - 24px);

}


.main-menu .nav-link:hover {

    transform: translateY(-1px);

}


.main-menu .nav-link i {

    margin-right: 5px;

}


/* ============================================================
   BOTÃO MOBILE
   ============================================================ */

.navbar-toggler {

    border: 2px solid var(--liberdade-navy-1) !important;

    border-radius: 8px;

    padding: 6px 9px;

}


.navbar-toggler:focus {

    box-shadow:
        0 0 0 .20rem rgba(10, 26, 99, .20);

}


.navbar-toggler-icon {

    background-image: url(
        "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230A1A63' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"
    ) !important;

}


/* ============================================================
   CONTEÚDO DA APLICAÇÃO
   ============================================================ */

.app-content {
    width: 100%;
    margin: 0;
    padding-top: var(--header-height, 0px);
    box-sizing: border-box;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (min-width: 768px) {

    .header-main-row {

        padding-top: 12px;

        padding-bottom: 12px;

    }


    .brand-logo {

        width: 80px;

        height: 80px;

    }


    .brand-name {

        font-size: 22px;

    }


    .brand-frequency {

        font-size: 13px;

    }


    .header-social img {

        width: 32px;

        height: 32px;

    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .header-main-row {

        flex-wrap: wrap;

        padding: 8px 10px;

    }


    .header-brand {

        flex: 1;

        min-width: 180px;

    }


    .brand-logo {

        width: 58px;

        height: 58px;

    }


    .brand-name {

        font-size: 16px;

    }


    .brand-frequency {

        font-size: 10px;

    }


    .header-actions {

        gap: 8px;

    }


    .header-social {

        gap: 4px;

    }


    .header-social img {

        width: 25px;

        height: 25px;

    }


    .login-link {

        font-size: 12px;

    }


    .header-radio {

        order: 3;

        flex-basis: 100%;

        max-width: none;

    }


    .radio-bar {

        min-height: 44px;

    }


    .ticker-content {

        font-size: 12px;

        animation-duration: 13s;

    }


    .radio-toggle {

        width: 34px;

        height: 34px;

    }


    .navbar-gold {

        min-height: 48px;

    }


    .main-menu {

        gap: 0;

        padding-top: 8px;

        padding-bottom: 8px;

    }


    .main-menu .nav-link {

        padding: 10px 12px !important;

    }


    .main-menu .nav-link::after {

        display: none;

    }


  

}


/* ============================================================
   TELAS MUITO PEQUENAS
   ============================================================ */

@media (max-width: 420px) {

    .brand-frequency {

        display: none;

    }


    .header-actions {

        gap: 6px;

    }


    .header-social img {

        width: 23px;

        height: 23px;

    }


    .login-link i {

        display: none;

    }

}
