/* Language Switcher Styles - Minimalist */
.language-switcher {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.language-switcher .lang-link {
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
    color: rgba(32, 31, 39, 0.4);
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 300;
    font-family: 'CocoSharp', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.language-switcher .lang-link:hover {
    color: rgba(32, 31, 39, 0.7);
}

.language-switcher .lang-link.active {
    color: #201f27;
    font-weight: 700;
}

.language-switcher .lang-name {
    font-family: 'CocoSharp', sans-serif;
}

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

body.rtl .text-right {
    text-align: left;
}

body.rtl .text-left {
    text-align: right;
}

body.rtl .hero-text-container {
    direction: rtl;
}

body.rtl h1, 
body.rtl h2, 
body.rtl h3, 
body.rtl h4, 
body.rtl h5 {
    font-weight: 700;
}

/* Arabic Font Adjustments */
body.lang-ar {
    font-size: 16px;
    line-height: 160%;
}

body.lang-ar h1,
body.lang-ar h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    body.lang-ar h1,
    body.lang-ar h2 {
        font-size: 1.75rem;
    }
}

/* Navigation RTL */
body.rtl .navigation .links a span {
    margin-right: 50px;
    margin-left: 0;
}

body.rtl .navigation .links a:hover span {
    margin-right: 70px;
    margin-left: 0;
}

/* Header Language Switcher Position */
.header .language-switcher {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

body.rtl .header .language-switcher {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

@media (max-width: 767.98px) {
    .header .language-switcher {
        top: 20px;
        left: 20px;
    }
    
    body.rtl .header .language-switcher {
        left: auto;
        right: 20px;
    }
}

/* Dark Section Language Switcher */
.isDark .language-switcher .lang-link {
    color: rgba(243, 243, 243, 0.4);
}

.isDark .language-switcher .lang-link:hover {
    color: rgba(243, 243, 243, 0.7);
}

.isDark .language-switcher .lang-link.active {
    color: #f3f3f3;
}
