/* =========================================
   HEADER SYSTEM — STREAMING PRO
   ========================================= */

/* ===== HEADER BASE ===== */

.am-header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    background:rgba(10,14,25,0.95);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,0.05);
    z-index:100;
}

/* ===== CONTAINER ===== */

.am-header-container{
    max-width:1200px;
    margin:auto;
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* ===== LOGO ===== */

.am-logo img{
    height:48px;
    transition:.3s;
    filter:drop-shadow(0 0 6px rgba(245,158,11,0.35));
}

.am-logo img:hover{
    transform:scale(1.05);
}

/* ===== NAV DESKTOP ===== */

.am-nav{
    display:flex;
    gap:30px;
}

/* ===== LINKS NAV ===== */

.am-link{
    display:flex;
    align-items:center;
    gap:10px;
    color:#cbd5e1;
    text-decoration:none;
    font-size:15px;
    padding:8px 10px;
    border-radius:8px;
    position:relative;
    transition:all .22s ease;
}

.am-link:hover{
    color:white;
    background:rgba(255,255,255,0.05);
    transform:translateY(-2px);
}

.am-link.active{
    color:white;
    background:rgba(245,158,11,0.15);
}

/* línea animada streaming */

.am-link::after{
    content:"";
    position:absolute;
    left:10px;
    bottom:4px;
    width:0%;
    height:2px;
    background:#f59e0b;
    transition:.25s ease;
}

.am-link:hover::after{
    width:calc(100% - 20px);
}

/* ===== AVATAR ===== */

.am-avatar,
.am-avatar-initial{
    width:38px;
    height:38px;
    border-radius:50%;
    cursor:pointer;
}

.am-avatar{
    object-fit:cover;
    border:2px solid #1f2937;
}

.am-avatar:hover{
    border-color:#f59e0b;
}

.am-avatar-initial{
    background:#f59e0b;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    color:black;
}

/* ===== DROPDOWN ===== */

.am-user-dropdown{
    position:relative;
}

.am-dropdown-menu{
    position:absolute;
    right:0;
    top:55px;
    background:#0c111d;
    border-radius:14px;
    padding:14px;
    display:none;
    flex-direction:column;
    min-width:200px;
    box-shadow:0 40px 100px rgba(0,0,0,.8);
    z-index:200;
}

.am-dropdown-menu.active{
    display:flex;
}

/* ===== LINKS DROPDOWN USUARIO ===== */

.am-dropdown-menu a{
    color:#cbd5e1;
    text-decoration:none;
    padding:10px 12px;
    border-radius:8px;
    font-size:14px;
    transition:all .22s ease;
}

.am-dropdown-menu a:hover{
    background:rgba(255,255,255,0.06);
    color:white;
    transform:translateX(4px);
}

/* ===== LOGIN BUTTON ===== */

.am-login-btn{
    background:#f59e0b;
    padding:10px 18px;
    border-radius:10px;
    text-decoration:none;
    color:#000;
    font-weight:600;
}

/* ===== HAMBURGER ===== */

.am-hamburger{
    display:none;
    font-size:26px;
    cursor:pointer;
}

/* =========================================
   MOBILE NAV
   ========================================= */

@media (max-width:900px){

    .am-logo img{
        height:34px;
    }

    .am-nav{
        position:fixed;
        top:0;
        right:0;
        transform:translateX(100%);
        width:240px;
        height:100vh;
        background:#0b1020;
        flex-direction:column;
        padding-top:90px;
        transition:.35s;
        box-shadow:-30px 0 80px rgba(0,0,0,.9);
        z-index:300;
    }

    .am-nav.active{
        transform:translateX(0);
    }

    .am-link{
        padding:18px 30px;
        font-size:16px;
        border-bottom:1px solid rgba(255,255,255,0.04);
    }

    .am-hamburger{
        display:block;
    }

}/* ===== HEADER AUTO HIDE ===== */

.am-header{
    transition:transform .35s ease;
}

.am-header.hide{
    transform:translateY(-100%);
}