/* Shared Layout Styles for Language Switcher and Header */
/* To be included in all static pages for consistent positioning */

/* Language Switcher Styles */
.flag-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.flag-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.flag-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: #1F368D;
}

.flag-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 54, 141, 0.3);
}

.flag-emoji {
    font-size: 24px;
    line-height: 1;
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    text-align: center;
}

/* Dynamic header layout based on language */
.main-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 64px !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
}

/* Header layout - stable positioning regardless of language */
.logo-container {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: auto !important;
    max-width: 100px !important;
}

.desktop-menu {
    position: absolute !important;
    right: 15px !important;
}

.mobile-menu {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
}

.logo {
    display: block !important;
    max-width: 70px !important;
    height: auto !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flag-switcher {
        top: 10px;
        left: 10px;
    }
    
    .flag-btn {
        width: 40px;
        height: 40px;
    }
    
    .flag-emoji {
        font-size: 20px;
    }
}

/* Mobile specific fixes */
@media (max-width: 640px) {
    .flag-switcher {
        top: 15px !important;
        left: 15px !important;
        z-index: 1001 !important;
    }
    
    .flag-emoji {
        font-size: 18px;
    }
    
    /* Keep header elements stable on mobile - no language-based positioning changes */
    .main-header {
        justify-content: space-between !important;
        padding: 0 15px !important;
        position: relative !important;
        height: 64px !important;
    }
    
    .logo-container {
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        order: 1;
        flex: 0 0 auto;
    }
    
    .mobile-menu {
        position: static !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        order: 2;
    }
    

}

/* No special transitions needed - keep elements stable */
