/**
 * Language Switcher Styles
 * Additional styles for multi-language functionality
 */

/* Language navigation links */
.language a {
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 3px;
}

.language a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.language a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: bold;
}

/* Language switcher dropdown */
.select-box.dropdown .dropdown-item {
    transition: all 0.3s ease;
}

.select-box.dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.select-box.dropdown .dropdown-item img {
    margin-right: 8px;
    width: 20px;
    height: auto;
}

/* Language-specific body classes for custom styling */
.lang-en {
    /* English-specific styles */
}

.lang-ua {
    /* Ukrainian-specific styles */
}

.lang-tr {
    /* Turkish-specific styles */
}

.lang-pt {
    /* Portuguese-specific styles */
}

/* RTL support (if needed) */
.lang-rtl {
    direction: rtl;
    text-align: right;
}

.lang-rtl .container {
    text-align: right;
}

.lang-rtl .navbar .menu ul li {
    float: right;
}

/* Language loading indicator */
.language-loading {
    opacity: 0.6;
    pointer-events: none;
}

.language-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: language-spinner 0.8s linear infinite;
}

@keyframes language-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive language switcher */
@media (max-width: 768px) {
    .language a {
        padding: 5px 8px;
        margin: 2px;
    }
    
    .select-box.dropdown {
        width: fit-content;
    }
    
    .select-box.dropdown .dropdown-menu {
        width: 100%;
    }
}

/* Language flag styling */
.language img,
.select-box img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Smooth transitions for language changes */
.page-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition.loaded {
    opacity: 1;
}

/* Language preference notice */
.language-notice {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    color: #1976d2;
    font-size: 14px;
}

.language-notice .close {
    float: right;
    background: none;
    border: none;
    font-size: 18px;
    color: #1976d2;
    cursor: pointer;
    line-height: 1;
}

/* Language switcher accessibility */
.language a:focus,
.select-box.dropdown .dropdown-item:focus {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* Print styles - hide language switcher */
@media print {
    .language,
    .select-box.dropdown {
        display: none !important;
    }
} 