/* Language Switcher Styles */
.language-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

/* Language menu overlay styles only */

.language-dropdown-menu {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 250px;
    width: 220px;
    animation: slideDown 0.3s ease;
    overflow: hidden;
    z-index: 10000;
}

/* Mobile positioning */
@media (max-width: 768px) {
    .language-dropdown-menu {
        width: 200px;
    }
}

.language-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.language-dropdown-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close-language-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-language-btn:hover {
    background: #e9ecef;
    color: #333;
}

.language-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

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

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

.language-option.active {
    background: #e8f5e8;
    color: #28a745;
    font-weight: 600;
}

.language-option .language-flag {
    font-size: 24px;
    margin-right: 12px;
    width: 30px;
    text-align: center;
}

.language-option .language-name {
    font-size: 16px;
    color: inherit;
}

.language-option.active .language-flag {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-switcher-container {
        min-height: 250px;
        padding: 20px;
    }
    
    .language-switcher-container h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .language-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .language-item {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Animation for language switching */
.language-switcher-container {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search area modifications */
.search-area {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.search-area .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.search-area .close-btn:hover {
    color: #dc3545;
}

/* Mobile search icon modifications */
.mobile-show.search-bar-icon,
.mobile-hide.search-bar-icon {
    transition: all 0.3s ease;
}

.mobile-show.search-bar-icon:hover,
.mobile-hide.search-bar-icon:hover {
    color: #28a745;
    transform: scale(1.1);
}
