/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2c3e50;
}

.language-btn:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.language-btn i {
    font-size: 16px;
}

.language-btn span {
    font-weight: 500;
    margin: 0 5px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 180px;
    z-index: 1000;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 180px;
    z-index: 1000;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #2c3e50;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.active {
    background-color: #e9ecef;
    font-weight: 500;
}

.language-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.language-option span {
    flex: 1;
    font-size: 14px;
}

/* Mobile Language Options - Default Hidden */
.mobile-language-options {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Hide language switcher in header on mobile */
    .language-switcher {
        display: none;
    }
    
    /* Mobile language options in nav menu */
    .mobile-language-options {
        display: block !important;
        padding: 15px 0;
        border-top: 1px solid #f0f0f0;
        margin-top: 20px;
    }
    
    .mobile-language-title {
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 10px;
        padding: 0 20px;
    }
    
    .mobile-language-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 20px;
    }
    
    .mobile-language-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        text-decoration: none;
        color: #2c3e50;
        border-radius: 6px;
        transition: background-color 0.2s ease;
        font-size: 13px;
    }
    
    .mobile-language-option:hover {
        background-color: #f8f9fa;
    }
    
    .mobile-language-option.active {
        background-color: #e9ecef;
        font-weight: 500;
    }
    
    .mobile-language-option img {
        width: 16px;
        height: 12px;
        object-fit: cover;
        border-radius: 2px;
    }
    
    .mobile-language-option span {
        font-size: 13px;
    }
}

/* Desktop - show normal language switcher */
@media (min-width: 769px) {
    .mobile-language-options {
        display: none;
    }
}

/* Dark header adjustment */
.header.scrolled .language-button {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.header.scrolled .language-button:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .language-button .lang-code,
.header.scrolled .language-button .dropdown-arrow {
    color: white;
}
