/* ========================================
   VivoMusic - Header CSS vFinal
   Professional mobile menu
   ======================================== */

.vm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 11, 6, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    padding: 0 1.5rem;
    transition: all 0.3s ease;
    height: 60px;
    width: 100%;
}

.vm-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    background: rgba(6, 11, 6, 0.98);
}

.vm-header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1rem;
    position: relative;
}

/* ============ LOGO ============ */
.vm-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.vm-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #22c55e;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
    white-space: nowrap;
}

.vm-logo-domain {
    font-size: 0.55rem;
    color: #15803d;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ============ NAVIGATION (Desktop) ============ */
.vm-nav {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.vm-nav-link {
    color: #86efac;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vm-nav-link:hover,
.vm-nav-link.active {
    color: #fff;
    background: rgba(34, 197, 94, 0.12);
}

.vm-nav-link.active {
    font-weight: 600;
}

/* ============ USER SECTION ============ */
.vm-user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.vm-btn {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'FarDomrol', sans-serif;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.vm-btn-outline {
    background: transparent;
    border: 1.5px solid #22c55e;
    color: #22c55e;
}
.vm-btn-outline:hover {
    background: #22c55e;
    color: #000;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.3);
}

.vm-btn-solid {
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
}

/* ============ USER MENU ============ */
.vm-user-menu {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.vm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #166534, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    border: 2px solid #22c55e;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.vm-username {
    color: #86efac;
    font-size: 0.78rem;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ DROPDOWN ============ */
.vm-dropdown {
    position: relative;
}
.vm-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(10, 20, 10, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 0.4rem;
    min-width: 190px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.vm-dropdown.active .vm-dropdown-menu { display: block; }

.vm-dropdown-header {
    padding: 0.4rem 0.7rem;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    margin-bottom: 0.2rem;
}
.vm-dropdown-fullname { color: #fff; font-size: 0.85rem; font-weight: 600; }
.vm-dropdown-email { color: #86efac; font-size: 0.7rem; margin-top: 0.1rem; }

.vm-dropdown-link {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.7rem; color: #86efac;
    text-decoration: none; border-radius: 8px;
    transition: all 0.2s; font-size: 0.8rem;
}
.vm-dropdown-link:hover { background: rgba(34, 197, 94, 0.1); color: #fff; }
.vm-dropdown-link.logout { color: #ef4444; margin-top: 0.2rem; border-top: 1px solid rgba(239, 68, 68, 0.15); padding-top: 0.6rem; }
.vm-dropdown-link.logout:hover { background: rgba(239, 68, 68, 0.1); color: #f87171; }

/* ============ MOBILE TOGGLE ============ */
.vm-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    flex-shrink: 0;
    position: relative;
}

.vm-hamburger {
    width: 22px;
    height: 2px;
    background: #22c55e;
    border-radius: 2px;
    transition: all 0.3s;
    position: relative;
}
.vm-hamburger::before,
.vm-hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: #22c55e;
    border-radius: 2px;
    transition: all 0.3s;
    left: 0;
}
.vm-hamburger::before { top: -7px; }
.vm-hamburger::after { top: 7px; }

.vm-mobile-toggle.active .vm-hamburger {
    background: transparent;
}
.vm-mobile-toggle.active .vm-hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: #ef4444;
}
.vm-mobile-toggle.active .vm-hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: #ef4444;
}

/* ============ MOBILE OVERLAY ============ */
.vm-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    backdrop-filter: blur(2px);
}
.vm-overlay.active { display: block; }

/* ============ RESPONSIVE - MOBILE ============ */
@media (max-width: 768px) {
    .vm-header {
        padding: 0 0.8rem;
        height: 55px;
    }

    .vm-logo-text { font-size: 1rem; }
    .vm-logo-domain { display: none; }

    /* Show hamburger */
    .vm-mobile-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    .vm-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(6, 11, 6, 0.99);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 80px 1.5rem 2rem;
        gap: 0.3rem;
        z-index: 999;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(34, 197, 94, 0.15);
        overflow-y: auto;
        justify-content: flex-start;
    }

    .vm-nav.active {
        right: 0;
    }

    .vm-nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        justify-content: flex-start;
        width: 100%;
        border-radius: 12px;
    }

    /* User section in mobile */
    .vm-user-section {
        margin-left: auto;
    }

    .vm-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.72rem;
    }

    .vm-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .vm-username { display: none; }

    .vm-dropdown-menu {
        left: auto;
        right: -10px;
        min-width: 170px;
    }
}

@media (max-width: 400px) {
    .vm-header { padding: 0 0.5rem; }
    .vm-logo-text { font-size: 0.9rem; }
    .vm-btn { padding: 0.3rem 0.6rem; font-size: 0.65rem; }
    .vm-nav { width: 260px; }
}