/* =============================================
   هدر جارو - استایل اختصاصی (نسخه برعکس)
   برای سایت jaa-roo.ir
   ============================================= */

/* ---------- Reset و فونت ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --jarooo-dark-blue: #0F2A3A;
    --jarooo-teal: #2BA39A;
    --jarooo-white: #FFFFFF;
    --jarooo-border: rgba(255, 255, 255, 0.85);
    --jarooo-font: 'Vazirmatn', 'Inter', sans-serif;
}

/* ---------- کانتینر اصلی هدر ---------- */
.jarooo-header {
    width: 100%;
    background: var(--jarooo-dark-blue);
    font-family: var(--jarooo-font);
    direction: ltr;
    box-shadow: 0 4px 15px rgba(15, 42, 58, 0.3);
    position: relative;
    z-index: 1000;
}

/* =============================================
   نوار اول (بالا) - 96px
   ============================================= */
.jarooo-topbar {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: var(--jarooo-dark-blue);
    direction: ltr;
}

/* لوگو - سمت چپ - بزرگ‌تر ۲۵٪ */
.jarooo-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.jarooo-logo img {
    height: 69px;    /* 55px * 1.25 = 68.75 ≈ 69px */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.jarooo-logo img:hover {
    transform: scale(1.04);
}

/* گروه آیکون‌ها - سمت راست */
.jarooo-icons {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* هر آیتم (آیکون + برچسب) */
.jarooo-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--jarooo-white);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.jarooo-icon-item:hover {
    transform: translateY(-2px);
    color: var(--jarooo-teal);
}

.jarooo-icon-item svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
}

.jarooo-icon-item:hover svg {
    stroke: var(--jarooo-teal);
}

.jarooo-icon-item .label {
    font-size: 14px;
    font-weight: 300;
    color: var(--jarooo-white);
    opacity: 0.85;
    transition: opacity 0.25s ease;
    font-family: var(--jarooo-font);
}

.jarooo-icon-item:hover .label {
    opacity: 1;
    color: var(--jarooo-teal);
}

/* دایره وضعیت آنلاین برای آواتار */
.jarooo-avatar-wrapper {
    position: relative;
}

.jarooo-online-dot {
    position: absolute;
    bottom: 24px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #2ECC71;
    border-radius: 50%;
    border: 2px solid var(--jarooo-dark-blue);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* =============================================
   خط جداکننده سفید - هم‌عرض با نوارها
   ============================================= */
.jarooo-divider {
    height: 2px;
    background: var(--jarooo-border);
    opacity: 0.85;
}

/* =============================================
   نوار دوم (پایین) - 58px
   ============================================= */
.jarooo-bottombar {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: var(--jarooo-teal);
    direction: ltr;
}

/* شعار - سمت چپ */
.jarooo-slogan {
    font-size: 22px;
    font-weight: 400;
    color: var(--jarooo-white);
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* مسیر ناوبری (Breadcrumb) - سمت راست */
.jarooo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 400;
    color: var(--jarooo-white);
    font-family: var(--jarooo-font);
    direction: rtl;
    flex-wrap: wrap;
}

.jarooo-breadcrumb .separator {
    opacity: 0.6;
    margin: 0 4px;
}

.jarooo-breadcrumb a {
    color: var(--jarooo-white);
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.jarooo-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jarooo-breadcrumb .current {
    opacity: 1;
    font-weight: 600;
}

/* =============================================
   مخفی کردن لوگوی تکراری در پایین هدر
   ============================================= */
.site-branding,
.custom-logo-link,
.custom-logo,
.site-logo,
header:not(.jarooo-header) img[src*="jarooo"],
footer img[src*="jarooo"] {
    display: none !important;
}

/* =============================================
   ریسپانسیو - موبایل و تبلت
   ============================================= */

/* تبلت */
@media (max-width: 992px) {
    .jarooo-topbar {
        padding: 0 20px;
        height: 80px;
    }
    .jarooo-bottombar {
        padding: 0 20px;
        height: 50px;
    }
    .jarooo-icons {
        gap: 20px;
    }
    .jarooo-icon-item svg {
        width: 24px;
        height: 24px;
    }
    .jarooo-icon-item .label {
        font-size: 12px;
    }
    .jarooo-logo img {
        height: 56px;    /* 45px * 1.25 ≈ 56px */
    }
    .jarooo-slogan {
        font-size: 18px;
    }
    .jarooo-breadcrumb {
        font-size: 15px;
    }
}

/* موبایل (منوی همبرگری) */
/* موبایل (منوی همبرگری) - نسخه اصلاح‌شده */
/* موبایل (منوی همبرگری) - نسخه اصلاح‌شده */
@media (max-width: 768px) {
    .jarooo-topbar {
        height: 68px;
        padding: 0 16px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        direction: rtl; /* چیدمان راست‌به‌چپ */
    }
    
    /* لوگو - سمت چپ */
    .jarooo-logo {
        order: 1; /* ← لوگو در سمت چپ */
        flex-shrink: 0;
    }
    .jarooo-logo img {
        height: 48px;
    }
    
    /* دکمه همبرگری - سمت راست */
    .jarooo-hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        order: 0; /* ← همبرگر در سمت راست */
        z-index: 1001;
    }
    .jarooo-hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--jarooo-white);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .jarooo-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .jarooo-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .jarooo-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* منوی کشویی */
    .jarooo-icons {
        display: none !important;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--jarooo-dark-blue);
        flex-direction: column !important;
        padding: 20px 16px;
        gap: 12px;
        border-bottom: 2px solid var(--jarooo-teal);
        box-shadow: 0 8px 25px rgba(0,0,0,0.4);
        z-index: 1000;
        border-radius: 0 0 16px 16px;
    }
    
    .jarooo-icons.open {
        display: flex !important;
    }
    
    .jarooo-icon-item {
        flex-direction: row !important;
        gap: 16px;
        padding: 10px 14px;
        width: 100%;
        border-radius: 10px;
        transition: background 0.2s ease;
    }
    
    .jarooo-icon-item:hover {
        background: rgba(43, 163, 154, 0.15);
    }
    
    .jarooo-icon-item svg {
        width: 24px;
        height: 24px;
    }
    
    .jarooo-icon-item .label {
        font-size: 16px;
        font-weight: 400;
    }
    
    .jarooo-online-dot {
        bottom: 6px;
        right: 6px;
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .jarooo-topbar {
        height: 60px;
        padding: 0 12px;
    }
    .jarooo-bottombar {
        height: 40px;
        padding: 0 12px;
    }
    .jarooo-slogan {
        font-size: 12px;
    }
    .jarooo-breadcrumb {
        font-size: 11px;
    }
    .jarooo-icons {
        top: 60px;
        padding: 12px;
        gap: 8px;
    }
    .jarooo-icon-item {
        padding: 6px 10px;
    }
    .jarooo-icon-item svg {
        width: 20px;
        height: 20px;
    }
    .jarooo-icon-item .label {
        font-size: 13px;
    }
    .jarooo-logo img {
        height: 42px;    /* 38px * 1.1 ≈ 42px */
    }
}

/* نمایش همبرگری فقط در موبایل */
.jarooo-hamburger {
    display: none;
}


//=======================================

/* =============================================
   اصلاحات مخصوص آیفون (iOS Safari)
   ============================================= */

/* رفع مشکل کلیک در آیفون */
.jarooo-hamburger {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important; /* حذف هایلایت آبی در آیفون */
    touch-action: manipulation !important; /* بهبود لمس */
}

/* جلوگیری از انتخاب متن در آیفون */
.jarooo-hamburger,
.jarooo-icon-item {
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* رفع مشکل نمایش منو در آیفون */
@media (max-width: 768px) {
    .jarooo-icons {
        display: none !important;
        -webkit-overflow-scrolling: touch !important; /* اسکرول نرم در آیفون */
    }
    
    .jarooo-icons.open {
        display: flex !important;
    }
    
    /* بهبود لمس در آیفون */
    .jarooo-icon-item {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(43, 163, 154, 0.2) !important;
    }
    
    /* رفع مشکل کلیک روی همبرگر در آیفون */
    .jarooo-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        -webkit-transform: rotate(45deg) translate(5px, 6px);
    }
    .jarooo-hamburger.active span:nth-child(2) {
        opacity: 0;
        -webkit-opacity: 0;
    }
    .jarooo-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        -webkit-transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* رفع مشکل زوم در آیفون هنگام کلیک */
.jarooo-hamburger,
.jarooo-icon-item a {
    font-size: 16px !important; /* جلوگیری از زوم خودکار در آیفون */
}


/* =============================================
   نوار آماری جمع‌وجور - ریسپانسیو (اضافه شده به انتهای فایل)
   ============================================= */

@media (max-width: 768px) {
    .jarooo-dashboard > div:first-child {
        padding: 10px 14px !important;
        gap: 4px 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .jarooo-dashboard > div:first-child span[style*="font-size:13px"] {
        font-size: 12px !important;
    }
    
    .jarooo-dashboard > div:first-child > span:not([style*="color:#E2E8F0"]) {
        font-size: 12px !important;
    }
    
    .jarooo-dashboard > div:first-child > span[style*="color:#E2E8F0"] {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .jarooo-dashboard > div:first-child {
        padding: 8px 12px !important;
        gap: 2px 8px !important;
        border-radius: 12px !important;
    }
    
    .jarooo-dashboard > div:first-child span[style*="font-size:13px"] {
        font-size: 10px !important;
    }
    
    .jarooo-dashboard > div:first-child > span:not([style*="color:#E2E8F0"]) {
        font-size: 10px !important;
    }
    
    .jarooo-dashboard > div:first-child > span[style*="color:#E2E8F0"] {
        font-size: 12px !important;
        margin: 0 2px !important;
    }
}