/* /var/www/pavel-gorin.local/public/css/components/burger-menu.css */
/**
* /var/www/pavel-gorin.local/public/css/components/burger-menu.css
* Стили для бургер-меню — ТОЛЬКО позиционирование
* Кнопки в buttons.css, текст в typography.css
*/

/* === КОНТЕЙНЕР ПЛАВАЮЩИХ КНОПОК === */
.floating-buttons-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

/* Контейнер для вертикальных иконок */
.floating-buttons-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
}

/* Бургер-кнопка - только на мобильных */
.burger-btn {
    pointer-events: auto;
    display: none;
    position: relative;
    left: 0;
}

/* === БОКОВОЕ МЕНЮ === */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: rgba(6, 25, 52, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(42, 87, 199, 0.6);
    box-shadow: 5px 0 30px rgba(42, 87, 199, 0.3);
    z-index: 999992;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

/* Хедер меню */
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(149, 196, 250, 0.2);
    margin-bottom: 20px;
}

.side-menu-logo {
    margin: 0;
}

.close-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(149, 196, 250, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-menu-btn:hover {
    background: rgba(42, 87, 199, 0.3);
    transform: rotate(90deg);
}

/* Навигация */
.side-menu-nav {
    flex: 1;
    padding: 0 20px;
}

.side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-item {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-menu.open .side-menu-item {
    opacity: 1;
    transform: translateX(0);
}

/* Анимация появления пунктов меню */
.side-menu.open .side-menu-item:nth-child(1) { transition-delay: 0.05s; }
.side-menu.open .side-menu-item:nth-child(2) { transition-delay: 0.1s; }
.side-menu.open .side-menu-item:nth-child(3) { transition-delay: 0.15s; }
.side-menu.open .side-menu-item:nth-child(4) { transition-delay: 0.2s; }
.side-menu.open .side-menu-item:nth-child(5) { transition-delay: 0.25s; }

.side-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(149, 196, 250, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.side-menu-link i {
    transition: transform 0.3s ease;
}

.side-menu-link span {
    flex: 1;
}

.side-menu-link:hover {
    background: rgba(42, 87, 199, 0.2);
    border-color: var(--color-primary-light);
    transform: translateX(5px);
}

.side-menu-link:hover i {
    transform: scale(1.1);
}

.side-menu-link.active {
    background: rgba(42, 87, 199, 0.3);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 15px rgba(42, 87, 199, 0.3);
}

/* Футер меню */
.side-menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(149, 196, 250, 0.2);
    text-align: center;
}

.side-menu-copyright {
    margin: 0;
}

/* Оверлей */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999991;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === ДЕСКТОП === */
@media (min-width: 769px) {
    .floating-buttons-container {
        top: 20px;
        right: 20px;
    }
    
    .floating-buttons-right {
        gap: 15px;
    }
    
    .burger-btn {
        display: none !important;
    }
    
    .side-menu,
    .menu-overlay {
        display: none;
    }
}

/* === ПЛАНШЕТЫ === */
@media (max-width: 768px) {
    .floating-buttons-container {
        top: 15px;
        left: 15px;
        right: 15px;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .burger-btn {
        display: flex !important;
        width: 45px;
        height: 45px;
    }
    
    .floating-buttons-right {
        gap: 12px;
    }
    
    .floating-buttons-right .floating-btn {
        animation: slideInRight 0.3s ease-out forwards;
        opacity: 0;
        transform: translateX(20px);
    }
    
    .floating-buttons-right .floating-btn:nth-child(1) { animation-delay: 0.05s; }
    .floating-buttons-right .floating-btn:nth-child(2) { animation-delay: 0.1s; }
    .floating-buttons-right .floating-btn:nth-child(3) { animation-delay: 0.15s; }
}

/* === МАЛЕНЬКИЕ МОБИЛЬНЫЕ === */
@media (max-width: 576px) {
    .floating-buttons-container {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .burger-btn {
        width: 42px;
        height: 42px;
    }
    
    .floating-buttons-right {
        gap: 10px;
    }
    
    .floating-buttons-right .floating-btn {
        width: 42px;
        height: 42px;
    }
    
    .side-menu {
        width: 260px;
        left: -260px;
    }
    
    .side-menu-header {
        padding: 15px;
    }
    
    .side-menu-nav {
        padding: 0 15px;
    }
    
    .side-menu-link {
        padding: 8px 12px;
    }
    
    .side-menu-link i {
        font-size: 18px;
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}