/* ================================================================
   BURGER MENU — стили 1:1 из burger_2D.html (тёмная тема)
   Без SVG. Одна тема.
   ================================================================ */

/* === Layout === */
html, body {
    height: 100%;
    height: 100dvh;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

/* === Фоновые орбы === */
.burger-bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.burger-bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

/* === Сайдбар === */
#sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    padding-top: 80px;
    padding-left: 24px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-20px);
}
#sidebar-menu.menu-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* === Пункты меню — stagger-анимация === */
.menu-item {
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
}
.menu-item.menu-item-show {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
}

/* === Основной контент === */
#main-content {
    position: relative;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.95);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 20;
    pointer-events: auto;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.5);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1),
                border-radius .35s ease,
                box-shadow .35s ease;
}

#main-content.menu-shifted {
    transform: translate3d(80vw, 0, 0) scale(0.9);
    border-radius: 20px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

#main-content.locked {
    overflow: hidden !important;
    pointer-events: none;
}

/* === Click-catcher === */
#click-catcher {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 50;
    display: none;
    cursor: pointer;
    touch-action: pan-y;
}

/* === Хедер (основные стили через Tailwind-классы) === */
#site-header {
    pointer-events: auto;
}

/* === Логотип — всегда тёмный === */
.logo-light { display: none; }
.logo-dark  { display: block; }

/* === CSS Hamburger → X === */
.hamburger {
    width: 22px;
    height: 18px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: none;
    transform-origin: center;
}
.hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === Список меню === */
#menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === Пункт меню === */
#menu-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    transition: all .2s ease;
    cursor: pointer;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
}
#menu-list a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Активный пункт */
#menu-list a.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Бейдж сравнения */
.cmp-burger-badge {
    margin-left: 10px;
    background: #eab308;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}
