/* =========================================================
   ناوبار مشترک سایت
   قبلاً فقط در landing2.css بود و صفحه‌ی گالری ناوبار نداشت.
   حالا هر صفحه‌ای که partials/site_nav.html را include می‌کند
   باید همین فایل را هم لود کند.
   نگهداری: این‌جا تنها نسخه است — در landing2.css کپی نگذار.
========================================================= */

.container {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(34, 211, 238, .12);
}

.nav {
        font-family: "Yekan", system-ui, -apple-system, sans-serif;

    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-right {
    flex-direction: row;
}

.nav-left {
    flex-direction: row;
}

.nav-right, .nav-left, .menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu {
    direction: ltr;
}

.menu a {
        font-family: "Yekan", system-ui, -apple-system, sans-serif;

    display: flex;
    align-items: center;
    gap: 7px;
    direction: rtl;
    color: #fff;
    padding: 8px 10px;
    border-radius: 12px;
    transition: .25s ease;
}

.menu a svg {
    color: #fff;
    stroke: currentColor;
    fill: none;
    transition: .25s ease;
}

.menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 18px rgba(34, 211, 238, .2);
    transform: translateY(-1px);
}

.menu a:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, .8));
}

/* لوگوی ناوبار — قبلاً یک ∞ متنی بود با گرادیان روی متن.
   حالا SVG است، پس گرادیان از داخل خودِ SVG می‌آید نه از background-clip. */
.logo {
    display: block;
    flex: 0 0 auto;

    text-decoration: none;

    transition: transform 200ms ease, filter 200ms ease;
}

.logo__mark {
    display: block;
    width: 54px;
    height: auto;
}

.logo:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 14px rgba(34, 211, 238, .32));
}

.logo:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 6px;
    border-radius: 10px;
}

@media (max-width: 768px) {

    .logo__mark {
        width: 42px;
    }

}

.menu a {
    font-family: "Yekan", system-ui, -apple-system, sans-serif;

    /* ناوبار نباید به ریست سراسریِ صفحه‌ی میزبان تکیه کند.
       landing2.css یک `a { text-decoration: none }` سراسری دارد،
       gallery.css ندارد — نتیجه‌اش این بود که همین منو در گالری
       زیرخط‌دار می‌شد و «یک جور دیگر» به نظر می‌رسید. */
    text-decoration: none;

    color: #dce6ff;
    font-size: 14px;
    font-weight: 700;
    opacity: .9;
}

.menu a:hover {
    color: #22d3ee;
}

.btn {
    text-decoration: none;
    border: 1px solid rgba(34, 211, 238, .4);
    background: rgba(2, 6, 23, .65);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 100;
    cursor: pointer;
        font-family: "Yekan", system-ui, -apple-system, sans-serif;

    transition: .25s;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: #ec4899;
}

.btn.primary {
    border: 0;
    background: linear-gradient(90deg, #22d3ee, #ec4899);
    box-shadow: 0 0 22px rgba(217, 70, 239, .45);
}

.user-icon {
    text-decoration: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, .45);
    border-radius: 50%;
}

@media (max-width: 900px) {
.menu {
        display: none;
    }
.nav-left .btn:not(.primary) {
        display: none;
    }
}

.user-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    transition: .25s ease;
}

.user-icon:hover {
    transform: translateY(-2px);
    border-color: #ec4899;
    box-shadow: 0 0 18px rgba(34,211,238,.25);
}

.user-svg {
    width: 21px;
    height: 21px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   جای دو نیمه‌ی ناوبار را عوض می‌کند.
   .nav یک فلکس با justify-content: space-between و دقیقاً دو فرزند است
   (.nav-right و .nav-left)، پس row-reverse کافی است — نه جابه‌جا کردن
   مارک‌آپ لازم است نه کلاس اضافه روی خود نیمه‌ها.

   ترتیب خودِ آیتم‌های منو دست‌نخورده می‌ماند؛ اگر آن را هم خواستی،
   .header--flip .menu { flex-direction: row-reverse } اضافه کن.
========================================================= */

.header--flip .nav {
    flex-direction: row-reverse;
}
