/**
 * header.css - Единые стили для шапки сайта «Личный Гид»
 * 
 * На десктопе: логотип слева, меню по центру, кнопки входа справа.
 * На мобильных: всё меню скрывается за бургером.
 */

:root {
    --primary: #0066cc;
    --primary-dark: #004c99;
    --secondary: #00b4b0;
    --accent: #ff7e33;
    --dark: #0a1e2f;
}

/* ============================================
   ШАПКА
   ============================================ */
.new-top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    padding: 0.7rem 2rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.15);
    box-sizing: border-box;
}

.menu-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   ЛОГОТИП
   ============================================ */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.logo-area img.logo-icon {
    height: 40px;
    width: auto;
}

.logo-area a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* ============================================
   МЕНЮ (ДЕСКТОПНАЯ ВЕРСИЯ)
   ============================================ */
.main-menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu-list li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    color: var(--dark);
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.main-menu-list li a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.main-menu-list li a i {
    margin-right: 6px;
}

/* ============================================
   КНОПКИ ВХОДА (ДЕСКТОП)
   ============================================ */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.btn-auth {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-auth:hover {
    background: var(--primary);
    color: white;
}

.btn-auth-primary {
    background: var(--primary);
    color: white;
}

.btn-auth-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ============================================
   БУРГЕР-МЕНЮ (СКРЫТО НА ДЕСКТОПЕ)
   ============================================ */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
    z-index: 10002;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ (≤ 860px)
   ============================================ */
@media (max-width: 860px) {
    .new-top-menu { 
        padding: 0.7rem 1rem; 
    }
    
    .burger-menu { 
        display: flex; 
    }
    
    .auth-buttons {
        display: none !important;
    }
    
    .main-menu-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 1.5rem 2rem;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 10001;
        overflow-y: auto;
        margin: 0;
        border-radius: 0 1rem 1rem 0;
        list-style: none;
    }
    
    .main-menu-list.active { 
        left: 0; 
    }
    
    /* Затемнение фона */
    .main-menu-list.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }
    
    .main-menu-list li { 
        width: 100%; 
        border-bottom: 1px solid #f0f0f0;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .main-menu-list li:last-child {
        border-bottom: none;
    }
    
    .main-menu-list li a { 
        display: block; 
        font-size: 1.1rem; 
        padding: 0.8rem 0;
        border-bottom: none !important;
        width: 100%;
        white-space: normal;
        color: var(--dark);
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .main-menu-list li a:hover {
        border-bottom: none !important;
        color: var(--primary);
        padding-left: 0.5rem;
    }
}

/* ============================================
   ОТСТУП ДЛЯ КОНТЕНТА
   ============================================ */
body {
    padding-top: 80px !important;
    margin: 0;
}


/* ============================================
   РЕЖИМ РАЗРАБОТКИ — БЛОКИРОВКА КНОПОК В ШАПКЕ
   ============================================ */

/* Добавьте класс dev-mode к body на главной странице */
body.dev-mode .btn-auth {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    position: relative;
}

body.dev-mode .btn-auth::after {
    content: "🔧 В разработке";
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: #f59e0b;
    white-space: nowrap;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

body.dev-mode .btn-auth.btn-tourist::after {
    content: "🔧 Вход туриста временно недоступен";
}

body.dev-mode .btn-auth.btn-guide::after {
    content: "🔧 Вход гида временно недоступен";
}