﻿/* =========================
   JAHAN ROSHAN HEADER
========================= */

.header-static {
    position: relative;
    margin: 15px;
    border-radius: 18px;
    background: #14213d;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 35px rgba(0,0,0,.22);
    overflow: visible;
}

/* خط طلایی */
/*.header-static::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 15px;
    left: 15px;
    height: 2px;
    border-radius: 50px;
    background: linear-gradient(90deg,#d4af37,#f7d774,#d4af37);
    z-index: 2;
}*/

/* =========================
   STICKY HEADER
========================= */

.navbar-sticky-on {
    position: fixed !important;
    top: 5px !important;
    left: 15px !important;
    right: 15px !important;
    width: auto !important;
    z-index: 1020;
    background: #14213d !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 35px rgba(0,0,0,.22) !important;
    overflow: visible !important;
}

.navbar-sticky-on.navbar-light {
    background: #14213d !important;
}

/* =========================
   CONTAINER
========================= */

.header-static .container {
    padding-left: 22px;
    padding-right: 22px;
}

/* =========================
   LOGO
========================= */

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    text-decoration: none;
}

.navbar-brand img {
    height: 58px;
    width: auto;
    /*margin-bottom: 6px;*/
    transition: .3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-title {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    line-height: 1.5;
}

.brand-subtitle {
    color: rgba(255,255,255,.65);
    font-size: 11px;
    text-align: center;
}

/* =========================
   NAVBAR
========================= */

.navbar > .container {
    min-height: 82px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,.92) !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 15px !important;
    position: relative;
    transition: all .3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 20px;
    background: linear-gradient(90deg,#d4af37,#f7d774);
    transform: scaleX(0);
    transition: .3s;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link.active,
.navbar-nav .active > .nav-link {
    color: #fff !important;
    background: rgba(255,255,255,.08);
}

/* =========================
   SEARCH BUTTON
========================= */

.nav-search .nav-link {
    width: 44px;
    height: 44px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    border-radius: 12px;

    background: rgba(255,255,255,.08);

    transition: all .3s ease;
}

.nav-search .nav-link:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-2px);
}

.nav-search .nav-link i {
    color: #fff !important;
    font-size: 18px;
    margin: 0;
    line-height: 1;
}

/* =========================
   THEME SWITCH
========================= */

.theme-icon-active {
    display: none !important;
}

.modeswitch {
    width: 44px !important;
    height: 44px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;

    background: rgba(255,255,255,.08) !important;

    transition: all .3s ease;
}

.modeswitch:hover {
    background: rgba(255,255,255,.18) !important;
    transform: translateY(-2px);
}

.modeswitch::before {
    width: 44px !important;
    height: 44px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 18px !important;
    line-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #fff !important;
}

/* =========================
   TOGGLER
========================= */

.navbar-toggler {
    border: 1px solid rgba(255,255,255,.15);
    padding: .55rem .8rem;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-toggler .text-body {
    color: #fff !important;
}

/* =========================
   ALIGNMENT
========================= */

.nav-search,
.nav-item.dropdown {
    display: flex;
    align-items: center;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 991px) {

    .header-static {
        margin: 8px;
        border-radius: 14px;
    }

    .navbar-brand {
        min-width: auto;
    }

    .navbar-brand img {
        height: 46px;
    }

    .brand-title {
        font-size: 12px;
    }

    .brand-subtitle {
        display: none;
    }

    .navbar-collapse {
        margin-top: 15px;
        padding: 18px;
        border-radius: 16px;
        background: #14213d;
        box-shadow: 0 10px 30px rgba(0,0,0,.25);
        text-align: center;
    }

    .navbar-collapse .nav-link {
        color: #fff !important;
        padding: 12px !important;
    }

    .navbar-collapse .nav-link:hover {
        transform: none;
        background: rgba(255,255,255,.08);
    }

    .nav-search .nav-link,
    .modeswitch {
        width: 40px !important;
        height: 40px !important;
    }

    .modeswitch::before {
        width: 40px !important;
        height: 40px !important;
        line-height: 25px !important;
    }
}

@media (max-width: 991px) {

    /* جلوگیری از شکستن هدر */
    .navbar .container {
        flex-wrap: nowrap !important;
        align-items: center;
    }

    /* جلوگیری از رفتن آیتم‌ها زیر لوگو */
    .nav.ms-3.flex-nowrap.align-items-center {
        flex-shrink: 0;
        gap: 6px;
    }

    /* کوچیک‌تر کردن دکمه‌ها در موبایل */
    .nav.ms-3 .nav-link,
    .nav.ms-3 .modeswitch,
    .nav.ms-3 .dropdown-toggle {
        transform: scale(0.9);
    }

    /* جلوگیری از بزرگ شدن لوگو */
    .navbar-brand img {
        max-height: 38px;
    }

    /* اسم زیر لوگو اگر داری */
    .navbar-brand h6 {
        font-size: 11px !important;
        margin: 0;
        line-height: 1.2;
    }
}

