/* Mobile Header Styles */

/* Hide mobile header on desktop */
.mobile-header {
    display: none;
}

/* Show mobile header only on mobile devices */
@media (max-width: 768px) {
    .mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        height: auto;
        min-height: 80px;
        /* iOS Safari fix - закрашиваем просвет между Safe Area и шапкой */
        padding-top: env(safe-area-inset-top);
        margin-top: calc(-1 * env(safe-area-inset-top));
    }
    
    .mobile-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 20px;
        height: 80px;
        gap: 15px;
        position: relative;
    }
    
    .mobile-social-icons {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        transform: translateY(-15px);
    }
    
    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(-15px);
        width: auto;
    }
    
    .mobile-logo-link {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 400;
        font-family: 'Montserrat', sans-serif;
        text-transform: lowercase;
        letter-spacing: 1px;
        transition: color 0.3s ease;
    }
    
    .mobile-logo-link:hover {
        color: #ccc;
    }
    
    .social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px; /* Увеличено с 24px на 10% */
        height: 26px; /* Увеличено с 24px на 10% */
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .social-icon:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    .social-icon svg {
        width: 15px; /* Увеличено с 14px на 10% */
        height: 15px; /* Увеличено с 14px на 10% */
    }
    
    .mobile-nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        transform: translateY(-15px);
    }
    
    .mobile-hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
    
    .mobile-hamburger-menu span {
        width: 18px;
        height: 2px;
        background: #fff;
        margin: 2px 0;
        transition: all 0.3s ease;
        display: block;
    }
    
    .mobile-hamburger-menu:hover span {
        background: #ccc;
    }
    
    .mobile-hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Синхронизация с основным бургером */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile navigation buttons */
    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex: 1;
        transform: translateY(15px);
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        width: auto;
    }
    
    .mobile-nav-btn {
        color: #fff;
        text-decoration: none;
        font-size: 10px; /* Увеличено с 9px на 10% */
        font-weight: 300;
        padding: 5px 7px; /* Увеличено с 4px 6px на 10% */
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        height: 22px; /* Увеличено с 20px на 10% */
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .mobile-nav-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    
    /* Hero section will be handled by mobile-adaptation.css */
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .mobile-header {
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    .mobile-nav-buttons {
        background: rgba(0, 0, 0, 0.7) !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-header {
        /* Принудительно закрашиваем просвет на iOS Safari */
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        /* Дополнительная защита от просвета */
        min-height: calc(80px + env(safe-area-inset-top)) !important;
    }
}

/* Hide desktop header on mobile */
@media (max-width: 768px) {
    .desktop-header {
        display: none !important;
    }
}
