﻿
#studioHeaderBrand[hidden] { display: none; }
.studio-admin-back { position: absolute; top: 8px; left: 12px; margin: 0; }
.studio-admin-back a { display: inline-flex; align-items: center; gap: 6px; }
.studio-admin-back svg { width: 18px; height: 18px; }
.studio-admin > .container > main { padding-top: 84px; }
.studio-admin .btn.btn-ghost,
.studio-admin .btn.btn-secondary,
.studio-admin .btn.btn-default,
.studio-admin .btn.studio-back-button,
.studio-admin .btn:not([class*="btn-"]):not(.primary):not(.danger) {
    background: #93c5fd;
    color: #102a43;
    border: 1px solid #60a5fa;
    opacity: 1;
    text-decoration: none;
}
.studio-admin .btn.studio-back-button { padding: 6px 12px; font-size: .875rem; line-height: 1.25; border-radius: 8px; font-weight: 650; }
.studio-admin .btn.btn-primary, .studio-admin .btn.primary { background: #ff9540; color: #1f1308; border-color: #ffad66; }
.studio-admin .btn.btn-danger, .studio-admin .btn.danger { background: #fecaca; color: #7f1d1d; border-color: #f87171; }
.studio-admin .btn.btn-ghost:hover,
.studio-admin .btn.btn-secondary:hover,
.studio-admin .btn.btn-default:hover,
.studio-admin .btn.studio-back-button:hover { background: #bfdbfe; color: #102a43; }
.studio-admin .btn:focus-visible { outline: 3px solid #e0f2fe; outline-offset: 3px; }
.studio-admin .btn:disabled, .studio-admin .btn.disabled { opacity: .55; }
.studio-admin .studio-compact-header {
    box-sizing: border-box;
    height: var(--studio-header-height);
    min-height: 48px;
    padding: 4px 16px !important;
    margin-bottom: 12px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.studio-admin .studio-compact-header h1, .studio-admin .studio-compact-header h2 { font-size: 1.1rem !important; line-height: 1.15; margin: 0 !important; }
.studio-admin .studio-compact-header h1 svg { width: 18px !important; height: 18px !important; margin-right: 6px !important; }
.studio-admin .studio-compact-header p, .studio-admin .studio-compact-header .muted { font-size: .75rem !important; line-height: 1.15; margin: 0 !important; }
.studio-admin .studio-back-header { position: relative; padding-left: 128px !important; min-height: 48px; }
@media (max-width: 600px) {
    .studio-admin .studio-back-header { padding-left: 16px !important; padding-top: 52px !important; height: auto; min-height: 88px; }
}
.studio-admin > .container > main > .section { padding-top: 12px !important; }
.studio-configuration { max-width: 900px; margin: auto; }
.studio-configuration .admin-header { padding: 30px 25px; margin-bottom: 30px; }
.studio-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0; }
.studio-settings-grid label { display: flex; flex-direction: column; gap: 8px; }
.studio-settings-grid input, .studio-settings-grid select { width: 100%; padding: 10px; color: var(--txt); background: var(--panel, #172033); border: 1px solid #64748b; border-radius: 8px; }
@media (max-width: 600px) { .studio-settings-grid { grid-template-columns: 1fr; } }

.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;
}
