/* =================================================================
   RS PROD AND EVENTS - Multilingual Styling
   أنماط متعددة اللغات
   ================================================================= */

/* RTL/LTR Specific Styles */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(26, 26, 26, 0.8);
    padding: 8px 12px;
    border-radius: 25px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #999;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.lang-btn:hover {
    color: var(--primary-gold);
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.1);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    color: var(--rich-black);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Font Adjustments per Language */
[lang="ar"] {
    font-family: 'Tajawal', sans-serif;
}

[lang="en"] {
    font-family: 'Playfair Display', serif;
}

[lang="fr"],
[lang="de"],
[lang="es"] {
    font-family: 'Roboto', sans-serif;
}

[lang="zh"] {
    font-family: 'Noto Sans SC', sans-serif;
}

/* RTL Navigation Adjustments */
[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-switcher {
    margin-right: auto;
    margin-left: 0;
}

[dir="ltr"] .lang-switcher {
    margin-left: auto;
    margin-right: 0;
}

/* RTL Modal Adjustments */
[dir="rtl"] .modal-content {
    text-align: right;
}

[dir="ltr"] .modal-content {
    text-align: left;
}

/* RTL Service Card Adjustments */
[dir="rtl"] .service-card,
[dir="rtl"] .partner-card {
    text-align: center;
}

/* Smooth Language Transition */
* {
    transition: font-family 0.3s ease;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .lang-switcher {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .lang-btn {
        flex: 1;
        max-width: 60px;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

/* Language-Specific Typography Adjustments */
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
    font-weight: 700;
    letter-spacing: 0;
}

[lang="en"] h1,
[lang="en"] h2,
[lang="en"] h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

[lang="zh"] h1,
[lang="zh"] h2,
[lang="zh"] h3 {
    font-weight: 500;
    letter-spacing: 2px;
}

/* RTL Artists Grid */
[dir="rtl"] .artist-grid-info {
    text-align: center;
}

[dir="ltr"] .artist-grid-info {
    text-align: center;
}

/* Animation Direction Adjustments */
[dir="rtl"] [data-aos="fade-right"] {
    transform: translate3d(100px, 0, 0);
}

[dir="rtl"] [data-aos="fade-left"] {
    transform: translate3d(-100px, 0, 0);
}

[dir="ltr"] [data-aos="fade-right"] {
    transform: translate3d(-100px, 0, 0);
}

[dir="ltr"] [data-aos="fade-left"] {
    transform: translate3d(100px, 0, 0);
}

/* Language Loading State */
.lang-transition {
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Ensure Proper Image Display */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.artist-grid-image,
.artist-modal-image,
.partner-logo,
.ceo-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Image Loading Animation */
img:not([src]) {
    visibility: hidden;
}

img[src] {
    animation: fadeInImage 0.5s ease-in-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lazy Loading Placeholder */
.image-loading {
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(212, 175, 55, 0.2) 50%,
        rgba(212, 175, 55, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Font Sizes for All Languages */
@media (max-width: 768px) {
    [lang="ar"] {
        font-size: 15px;
    }
    
    [lang="en"],
    [lang="fr"],
    [lang="de"],
    [lang="es"] {
        font-size: 14px;
    }
    
    [lang="zh"] {
        font-size: 14px;
    }
}

/* Better Text Readability */
[lang="ar"] p,
[lang="ar"] li {
    line-height: 1.9;
}

[lang="en"] p,
[lang="en"] li {
    line-height: 1.7;
}

[lang="zh"] p,
[lang="zh"] li {
    line-height: 1.8;
}
