﻿
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 200;
    pointer-events: none;
    height: auto;
    border-bottom: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    gap: .75rem;
    padding: 0 1.25rem 0 80px;
    pointer-events: none;
}

/* ── Hamburger button ── */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
    pointer-events: auto;
}

    .hamburger-btn:hover {
        background: rgba(0,0,0,.65);
    }

    .hamburger-btn span {
        display: block;
        height: 2px;
        background: #e5e5e5;
        border-radius: 1px;
        transition: transform .25s, opacity .25s;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ── Top bar right ── */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 4px 14px 4px 10px;
    pointer-events: auto;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-username {
    color: var(--txt, #e5e5e5);
    font-size: .82rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-brand {
    font-family: Calibri, sans-serif;
    font-size: 1.35rem;
    color: #FFDE59;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 4px 14px;
    pointer-events: auto;
}

    .topbar-brand:hover {
        color: #ffe680;
    }


.brand .title {
    font-family: Calibri;
    font-size: 1.9rem;
    letter-spacing: 0.2px;
    color: #FFDE59;
    white-space: nowrap;
}

/* ── Hamburger drawer ── */
.hamburger-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -300px;
    width: 280px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-left: 1px solid rgba(255,255,255,.08);
    z-index: 300;
    transition: right .3s ease;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: auto;
    padding-top: 0;
}

    .hamburger-drawer.open {
        right: 0;
    }

/* ── Drawer: marca LPMania ── */
.drawer-brand-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.drawer-brand-link {
    font-family: Calibri, sans-serif;
    font-size: 1.5rem;
    color: #FFDE59;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
}

    .drawer-brand-link:hover {
        color: #ffe680;
    }

/* ── Drawer: secció usuari ── */
.drawer-user-section {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.drawer-username {
    color: #e5e5e5;
    font-size: .92rem;
    font-weight: 500;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hamburger-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 250;
}

    .hamburger-overlay.open {
        display: block;
    }

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

    .drawer-nav a {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .85rem 1.5rem;
        color: #d1d5db;
        text-decoration: none;
        font-size: .95rem;
        transition: background .15s, color .15s;
        border-left: 3px solid transparent;
    }

        .drawer-nav a:hover {
            background: rgba(255,255,255,.06);
            color: #fff;
            border-left-color: #d9a441;
        }

        .drawer-nav a svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            opacity: .7;
        }

.drawer-section {
    padding: .5rem 1.5rem;
    margin-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.drawer-section-title {
    font-size: .7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .5rem;
}
