/* GAMPERLAB™ Universal Drei-Striche Hamburger & Mega-Drawer */

/* Drei-Striche Hamburger Button (Desktop & Mobile) */
.hamburger-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 1002;
    color: var(--text, #f8fafc);
    font-family: inherit;
    flex-shrink: 0;
}
html[data-theme="light"] .hamburger-btn, body.light .hamburger-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}
.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary, #00f2fe);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.ham-bars-wrap {
    display: flex;
    flex-direction: column;
    gap: 4.5px;
    justify-content: center;
    align-items: center;
}
.ham-bar {
    width: 18px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: block;
}
.ham-label {
    display: none !important;
}
.hamburger-btn.active .ham-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.hamburger-btn.active .ham-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .ham-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Full Slide-Over Mega Drawer (Desktop & Mobile - Slide from Left) */
.drawer-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 7, 15, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.site-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 460px;
    max-width: 92vw;
    height: 100vh;
    background: rgba(9, 14, 24, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid var(--surface-border, rgba(255, 255, 255, 0.1));
    z-index: 99999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
html[data-theme="light"] .site-drawer, body.light .site-drawer {
    background: rgba(255, 255, 255, 0.98);
    border-right-color: #e2e8f0;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}
.site-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--surface-border, rgba(255, 255, 255, 0.1));
    background: rgba(255, 255, 255, 0.02);
    position: sticky;
    top: 0;
    z-index: 10;
}
.drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text, #f8fafc);
    font-weight: 800;
    font-size: 1.1rem;
}
html[data-theme="light"] .drawer-logo, body.light .drawer-logo {
    color: #0f172a;
}
.drawer-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.drawer-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.1));
    color: var(--text, #f8fafc);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}
html[data-theme="light"] .drawer-close-btn, body.light .drawer-close-btn {
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.15);
}
.drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.drawer-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.drawer-section-title {
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary, #00f2fe);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.drawer-links-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text, #f8fafc);
    text-decoration: none;
    transition: all 0.2s ease;
}
html[data-theme="light"] .drawer-nav-item, body.light .drawer-nav-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}
.drawer-nav-item:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--primary, #00f2fe);
    transform: translateX(4px);
    text-decoration: none;
}
.drawer-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-nav-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}
.drawer-nav-title {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text, #f8fafc);
}
html[data-theme="light"] .drawer-nav-title, body.light .drawer-nav-title {
    color: #0f172a;
}
.drawer-nav-sub {
    font-size: 0.76rem;
    color: var(--text-dim, #94a3b8);
    margin-top: 2px;
}
.drawer-nav-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .ham-label { display: none; }
}
