/* Language Switcher Styles - Header Version */
.language-switcher-nav {
    position: relative;
}

.lang-btn-nav {
    background: transparent;
    color: #333;
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-btn-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.lang-menu-nav {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 0.5rem;
    display: none;
    min-width: 180px;
    animation: slideDown 0.3s ease;
    z-index: 1000;
}

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

.lang-menu-nav.active {
    display: block;
}

.lang-menu-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s;
    color: #333;
    font-weight: 500;
}

.lang-menu-nav button:hover {
    background: #f5f5f5;
    color: var(--primary-color);
    transform: translateX(5px);
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .service-content {
    text-align: right;
}

body.rtl .service-features li:before {
    margin-right: 0;
    margin-left: 0.5rem;
}

body.rtl .contact-grid {
    text-align: right;
}

body.rtl .social-links {
    flex-direction: row-reverse;
}

body.rtl .floating-buttons {
    right: auto;
    left: 30px;
}

body.rtl .language-switcher-nav .lang-menu-nav {
    right: auto;
    left: 0;
}

body.rtl .lang-menu-nav button {
    text-align: right;
}

body.rtl .lang-menu-nav button:hover {
    transform: translateX(-5px);
}

body.rtl .form-group {
    text-align: right;
}

body.rtl .modal-content {
    text-align: right;
}

body.rtl .close-btn {
    right: auto;
    left: 1.5rem;
}

body.rtl .faq-question {
    flex-direction: row-reverse;
}

body.rtl .date-grid,
body.rtl .time-grid {
    direction: ltr;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher-nav {
        width: 100%;
    }
    
    .lang-btn-nav {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
    
    .lang-menu-nav {
        right: 0;
        left: 0;
        width: 100%;
    }
    
    body.rtl .language-switcher-nav .lang-menu-nav {
        right: 0;
        left: 0;
    }
}

/* Language flag emojis consistency */
.lang-menu button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
