/* Language-specific styles */

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .space-x-2 > * + * {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .space-x-3 > * + * {
    margin-left: 0;
    margin-right: 0.75rem;
}

[dir="rtl"] .space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .space-x-6 > * + * {
    margin-left: 0;
    margin-right: 1.5rem;
}

[dir="rtl"] .space-x-8 > * + * {
    margin-left: 0;
    margin-right: 2rem;
}

/* Language switcher positioning */
[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

/* Navigation adjustments for RTL */
[dir="rtl"] .ml-10 {
    margin-left: 0;
    margin-right: 2.5rem;
}

[dir="rtl"] .mr-3 {
    margin-right: 0;
    margin-left: 0.75rem;
}

/* Button spacing for RTL */
[dir="rtl"] .px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Text alignment for Arabic */
[dir="rtl"] .text-center {
    text-align: center;
}

[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

/* Language switcher styles */
.language-switcher {
    position: relative;
}

.language-dropdown {
    min-width: 120px;
}

/* Top bar language switcher specific styles */
.fixed.top-0 .language-switcher .language-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.fixed.top-0 .language-switcher .language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fbbf24;
}

.language-option:hover,
.language-option-mobile:hover {
    background-color: #f3f4f6;
}

.language-option.active,
.language-option-mobile.active {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Mobile language switcher */
.language-switcher-mobile {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

/* Smooth transitions */
.language-btn svg {
    transition: transform 0.2s ease;
}

.language-dropdown {
    transition: all 0.2s ease;
}

/* Font adjustments for different languages */
[lang="ar"] {
    font-family: 'Noto Sans Arabic', 'Arial', sans-serif;
}

[lang="en"] {
    font-family: 'Inter', 'Arial', sans-serif;
}

[lang="tr"] {
    font-family: 'Inter', 'Arial', sans-serif;
}

/* Responsive language switcher */
@media (max-width: 768px) {
    .language-switcher {
        display: none;
    }
    
    .language-switcher-mobile {
        display: block;
    }
}

@media (min-width: 769px) {
    .language-switcher-mobile {
        display: none;
    }
}