/*
Theme Name: Marslia
Theme URI: https://marslia.com
Description: قالب مارسيليا — هيدر مخصص مع تحكم من لوحة التحكم، مبني على Twenty Twenty-Five.
Author: Marslia
Template: twentytwentyfive
Version: 1.0.2
Text Domain: marslia
*/

/* خط Cairo — قاعدة عامة للموقع بالكامل */
body.marslia-site,
body.marslia-site :where(
    h1, h2, h3, h4, h5, h6,
    p, a, li, span, label, small, strong, em,
    button, input, textarea, select, option,
    nav, article, section, header, footer, main, aside,
    figcaption, blockquote, time, td, th, div
) {
    font-family: 'Cairo', sans-serif;
}

.marslia-page-latest {
    margin-top: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Language switcher in main menu */
.marslia-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.marslia-lang-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
}

.marslia-lang-label:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.marslia-lang-flag {
    font-size: 18px;
    line-height: 1;
}


/* Chevron down icon via CSS */
.marslia-lang-label::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-inline-start: 4px solid transparent;
    border-inline-end: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-inline-start: 2px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.marslia-lang-switcher:hover .marslia-lang-label::after {
    transform: rotate(180deg);
}

.marslia-lang-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 999;
    border: 1px solid #e2e8f0;
    animation: marslia-lang-fadein 0.15s ease;
}

@keyframes marslia-lang-fadein {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marslia-lang-switcher:hover .marslia-lang-list,
.marslia-lang-switcher:focus-within .marslia-lang-list {
    display: block;
}

.marslia-lang-list li {
    display: block;
}

.marslia-lang-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.marslia-lang-list li a:hover,
.marslia-lang-list li a:focus {
    background: #f1f5f9;
    color: #2563eb;
}

.marslia-lang-list li .current-lang a {
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
}

.marslia-lang-item-flag {
    font-size: 18px;
    line-height: 1;
}

