/******************************************************************
   Theme Name: VamResan
   File       : layout.css
   Description: استایل‌های ساختاری (هدر، منو، فوتر و المان‌های عمومی)
   Version    : 1.0
******************************************************************/

/* ================================================================
   📐 1. کانتینر اصلی
   ================================================================ */

   .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* ================================================================
     🏠 2. هدر (Header)
     ================================================================ */
  
  #header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
    background: var(--secondary-color, #081223);
    transition: all 0.3s ease;
    padding: 14px 0;
  }
  
  /* ----- هدر هنگام اسکرول ----- */
  #header.header-scrolled {
    padding: 10px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  }
  
  /* ----- رپر هدر (چیدمان افقی) ----- */
  .header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* ================================================================
     🏷️ 3. لوگو
     ================================================================ */
  
  .header-right-side {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
  }
  
  #logo {
    margin: 0;
  }
  
  #logo a {
    display: block;
  }
  
  #logo img {
    display: block;
    width: auto;
    height: 46px;
  }
  
  /* ================================================================
     🧭 4. منوی اصلی (دسکتاپ)
     ================================================================ */
  
  #nav-menu-container {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .nav-menu li {
    position: relative;
  }
  
  .nav-menu li a {
    display: block;
    color: var(--white, #fff);
    font-size: 15px;
    font-weight: 600;
    padding: 6px 0;
    transition: 0.3s;
  }
  
  /* ----- هاور منو ----- */
  .nav-menu li:hover > a {
    color: #1f9d57;
  }
  
  /* ----- آیتم فعال منو ----- */
  .nav-menu .menu-active > a {
    color: #1f9d57;
  }
  
  /* ----- خط زیر آیتم فعال ----- */
  .nav-menu .menu-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -22px;
    width: 100%;
    height: 3px;
    background: #1f9d57;
    border-radius: 20px;
  }
  
  /* ================================================================
     🔘 5. دکمه‌های هدر (ورود / ثبت‌نام)
     ================================================================ */
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
  }
  
  .header-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white, #fff);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
  }
  
  .header-login-btn:hover {
    background: var(--white, #fff);
    color: var(--secondary-color, #081223);
  }
  
  /* ================================================================
     📱 6. دکمه منوی موبایل
     ================================================================ */
  
  #mobile-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: none;
    color: var(--white, #fff);
    cursor: pointer;
    font-size: 24px;
    padding: 0;
  }
  
  #mobile-nav-toggle:focus {
    outline: none;
  }
  
  /* ================================================================
     📱 7. منوی موبایل (اسلاید از راست)
     ================================================================ */
  
  /* ----- لایه تاریک پشت منو ----- */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 998;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* ----- خود منو ----- */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: var(--secondary-color, #081223);
    overflow-y: auto;
    transition: transform .35s ease;
    transform: translateX(100%);
    z-index: 999;
    padding: 25px;
}

.mobile-menu.active {
    transform: translateX(0);
}
  
  /* ----- هدر منو موبایل (لوگو + دکمه بستن) ----- */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
  }
  
  .mobile-menu-header img {
    height: 42px;
    width: auto;
  }
  
  .mobile-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white, #fff);
    cursor: pointer;
    font-size: 22px;
  }
  
  /* ----- آیتم‌های منو موبایل ----- */
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .mobile-menu li:last-child {
    border-bottom: none;
  }
  
  .mobile-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    color: var(--white, #fff);
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
  }
  
  .mobile-menu li a i {
    width: 22px;
    text-align: center;
    color: #1f9d57;
  }
  
  .mobile-menu li a:hover {
    color: #1f9d57;
  }
  
  /* ================================================================
     🦶 8. فوتر
  ================================================================ */
.bottom-nav {
  position: fixed;        /* همیشه پایین صفحه میمونه */
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;           /* بالای همه المان‌ها */
  background: #050d1a;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding: 6px 0 10px;
}

/* ---------- محفظه داخلی برای مرکزچینی ---------- */
.bottom-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

/* ---------- هر آیتم ناوبری ---------- */
.bottom-nav-item {
  display: flex;
  flex-direction: column;    /* آیکون بالا، متن پایین */
  align-items: center;
  gap: 2px;
  color: #ffffff;            /* رنگ خاکستری برای حالت عادی */
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 12px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

/* ---------- آیکون داخل آیتم ---------- */
.bottom-nav-item i {
  font-size: 22px;
  transition: all 0.3s ease;
}

/* ---------- متن داخل آیتم ---------- */
.bottom-nav-item span {
  font-size: 10px;
  transition: all 0.3s ease;
}

/* ---------- حالت فعال (صفحه‌ای که کاربر توش هست) ---------- */
.bottom-nav-item.active {
  color: #1f9d57;            /* رنگ سبز برند */
}

.bottom-nav-item.active i {
  transform: translateY(-2px);  /* آیکون کمی بالا میره */
}

/* ---------- خط زیر آیتم فعال ---------- */
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #1f9d57;
  border-radius: 0 0 4px 4px;
}

/* ---------- هاور (نگه داشتن موس) ---------- */
.bottom-nav-item:hover {
  color: #1f9d57;
}

.bottom-nav-item:hover i {
  transform: translateY(-2px);
}
  
  /* ================================================================
     📱 9. ریسپانسیو هدر و منو
     ================================================================ */
  
  /* ---------- تبلت (577px تا 991px) ---------- */
  @media (min-width: 577px) and (max-width: 991px) {
    #header {
      padding: 12px 0;
    }
  
    .header-wrapper {
      height: 58px;
    }
  
    /* ----- مخفی کردن منوی دسکتاپ ----- */
    #nav-menu-container {
      display: none;
    }
  
    /* ----- چیدمان دکمه‌ها در موبایل ----- */
    .header-right-side {
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
      gap: 12px;
    }
  
    /* ----- نمایش دکمه همبرگر ----- */
    #mobile-nav-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
    }
  
    /* ----- مخفی کردن المان‌های دسکتاپ ----- */
    .desktop-only {
      display: none;
    }
  
    .header-actions {
      gap: 10px;
    }
  
    .header-login-btn {
      height: 40px;
      padding: 0 16px;
      font-size: 13px;
    }
  
    #logo img {
      height: 40px;
    }
  }
  
  /* ---------- موبایل (تا 576px) ---------- */
  @media (max-width: 576px) {
    #header {
      padding: 10px 0;
    }
  
    .header-wrapper {
      height: 56px;
    }
  
    #nav-menu-container {
      display: none;
    }
  
    .header-right-side {
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
      gap: 12px;
    }
  
    #mobile-nav-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
    }
  
    .desktop-only {
      display: none;
    }
  
    .header-actions {
      gap: 8px;
    }
  
    .header-login-btn {
      height: 38px;
      padding: 0 14px;
      font-size: 12px;
    }
  
    #logo img {
      height: 36px;
    }
  
    .mobile-menu {
      width: 280px;
    }
  }
  
  /* ================================================================
     📱 10. ریسپانسیو فوتر
     ================================================================ */

/* ---------- موبایل های کوچک (تا ۵۷۶px) ---------- */
@media (max-width: 576px) {
  .bottom-nav {
      padding: 4px 0 8px;
  }

  .bottom-nav-item {
      padding: 2px 6px;
  }

  .bottom-nav-item i {
      font-size: 20px;      /* آیکون کوچکتر در موبایل */
  }

  .bottom-nav-item span {
      font-size: 9px;       /* متن کوچکتر در موبایل */
  }
}

/* ---------- تبلت (۵۷۷px تا ۹۹۱px) ---------- */
@media (min-width: 577px) and (max-width: 991px) {
  .bottom-nav {
      padding: 8px 0 12px;
  }

  .bottom-nav-item {
      padding: 4px 16px;
  }

  .bottom-nav-item i {
      font-size: 24px;
  }

  .bottom-nav-item span {
      font-size: 12px;
  }
}

/* ---------- دسکتاپ (۹۹۲px به بالا) ---------- */
@media (min-width: 992px) {
  .bottom-nav {
      padding: 10px 0 14px;
  }

  /* در دسکتاپ آیتم‌ها افقی میشن (آیکون کنار متن) */
  .bottom-nav-item {
      padding: 6px 24px;
      flex-direction: row;    /* آیکون و متن کنار هم */
      gap: 8px;
      font-size: 14px;
  }

  .bottom-nav-item i {
      font-size: 20px;
  }

  .bottom-nav-item span {
      font-size: 14px;
  }

  /* خط زیر آیتم فعال در دسکتاپ */
  .bottom-nav-item.active::after {
      top: -10px;
      width: 30px;
      height: 3px;
  }
}

/* ================================================================
   📱 11. تنظیم فاصله پایین برای نمایش فوتر (bottom-nav)
   ================================================================ */

   body {
    padding-bottom: 80px;  /* محتوا زیر فوتر نمیره */
}

@media (max-width: 576px) {
    body {
        padding-bottom: 65px;
    }
}

@media (min-width: 992px) {
    body {
        padding-bottom: 70px;
    }
}
/* ==========================================================
   🚀 گزینه‌های مخفی/نمایشی منوی موبایل (جدید)
   ========================================================== */
