@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap");
@font-face {
  font-family: "Vazir";
  font-weight: normal;
  src: url("../fonts/Vazir.ttf") format("truetype");
}
@font-face {
  font-family: "Vazir";
  font-weight: bold;
  src: url("../fonts/Vazir-Bold.ttf") format("truetype");
}
body {
  margin: 0 !important;
  font-family: "Vazir", serif;
}

.body-light {
  background-color: #e5e5e5;
  color: black;
}

.body-dark {
  background-color: #03181d;
  color: white;
}

.container {
  padding: 1rem 2rem;
}

.header {
  background: linear-gradient(135deg, #03181d 0%, #0a2a30 50%, #03181d 100%);
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, color 0.3s;
  font-family: "Vazir", serif;
  font-size: 24px;
  margin: 0;
  display: flex;
  justify-content: start;
  flex-wrap: nowrap;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #FF6B35, transparent) 1;
}
@media screen and (max-width: 1640px) {
  .header {
    font-size: 20px;
  }
}
@media screen and (max-width: 1200px) {
  .header {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(110%);
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: stretch;
    z-index: 1100;
    gap: 0;
    border-radius: 0;
    border-image: none;
    border-left: 1px solid rgba(255, 107, 53, 0.25);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 1.35rem;
    overflow-y: auto;
    padding: 5rem 1.5rem 2rem;
    margin: 0;
  }
  body.menu-open .header {
    transform: translateX(0);
  }
  .header .nav-container {
    margin: 0;
    width: 100%;
  }
  .header .nav-container:nth-child(3) {
    width: 100%;
  }
  .header .nav-links {
    width: 100%;
    align-items: stretch;
  }
  .header .nav-item,
  .header .logo {
    padding: 0.85rem 0.5rem;
    width: 100%;
  }
  .header .nav-actions {
    justify-content: flex-start;
    gap: 1rem;
  }
}
@media screen and (max-width: 1200px) {
  .header[dir="rtl"] {
    left: 0;
    right: auto;
    border-left: none;
    border-right: 1px solid rgba(255, 107, 53, 0.25);
    transform: translateX(-110%);
  }
  body.menu-open .header[dir="rtl"] {
    transform: translateX(0);
  }
}
.header[data-theme=dark] {
  background: #e5e5e5;
  color: black !important;
}
.header[data-theme=dark] .nav-item, .header[data-theme=dark] .logo, .header[data-theme=dark] .nav-actions {
  color: black;
}
.header[data-theme=dark] .menu-close {
  color: black;
}
.header[data-theme=dark] .menu-close:hover {
  color: red;
}
.header[data-theme=dark] .dropdown-content a {
  color: black;
}
.header[data-theme=dark] .dropdown-content a:hover {
  color: #FF6B35;
}
.header[data-theme=dark] .category-title {
  color: black;
}
.header[data-theme=dark] .category-title:hover {
  color: #FF6B35;
}
.header[data-theme=dark] .subcategories a {
  color: black;
}
.header[data-theme=dark] .subcategories a:hover {
  color: #FF6B35;
}
.header .nav-container:nth-child(2) {
  width: auto;
}
.header .nav-container:nth-child(4) {
  direction: ltr;
}
@media screen and (max-width: 1200px) {
  .header .nav-container:nth-child(4) {
    width: auto;
    direction: rtl;
  }
}
.header .nav-container:nth-child(3) {
  width: calc(100% - 250px);
}
@media screen and (max-width: 1200px) {
  .header .nav-container:nth-child(3) {
    width: 100%;
  }
}

.nav-container {
  display: flex;
  justify-content: start;
  align-items: center;
  margin: 0 1.5rem;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}
.logo:hover {
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}
@media screen and (max-width: 1580px) {
  .logo {
    font-size: 30px;
  }
}
@media screen and (max-width: 1200px) {
  .logo {
    font-size: 2.5rem;
  }
}

.nav-links {
  display: flex;
  gap: 4rem;
}
@media screen and (max-width: 1440px) {
  .nav-links {
    gap: 2rem;
    justify-content: space-between;
    width: 100%;
  }
}
@media screen and (max-width: 1280px) {
  .nav-links {
    gap: 1.5rem;
  }
}
@media screen and (max-width: 1200px) {
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
}
.nav-links .nav-item {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  padding-bottom: 4px;
}
.nav-links .nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #FF6B35;
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}
.nav-links .nav-item:hover, .nav-links .nav-item:active, .nav-links .nav-item:focus {
  color: #FF6B35;
}
.nav-links .nav-item:hover::after, .nav-links .nav-item:active::after, .nav-links .nav-item:focus::after {
  width: 80%;
  left: 10%;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 0.5rem;
  color: white;
}
.theme-toggle:hover {
  color: #FF6B35;
}
@media screen and (max-width: 1310px) {
  .theme-toggle {
    font-size: 20px;
  }
}
@media screen and (max-width: 1200px) {
  .theme-toggle {
    font-size: 2rem;
  }
}

.nav-actions {
  display: flex;
  justify-content: start;
  font-size: 26px;
  color: white;
}

#lang {
  display: block;
}

.lang_a {
  text-decoration: none;
}
.lang_a .theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 4px 14px;
  transition: all 0.3s ease;
}
.lang_a .theme-toggle:hover {
  background: #FF6B35;
  border-color: #FF6B35;
}

/* استایل دکمه همبرگر مدرن */
.hamburger-menu-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1200;
  background-color: rgba(3, 24, 29, 0.7);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform 0.3s, background-color 0.3s, opacity 0.3s;
  color: white;
}
@media screen and (max-width: 1200px) {
  .hamburger-menu-container {
    display: flex;
  }
}
.hamburger-menu-container:hover {
  transform: scale(1.05);
  background-color: rgba(3, 24, 29, 0.85);
}
.hamburger-menu-container:active {
  transform: scale(0.95);
}
body.menu-open .hamburger-menu-container {
  opacity: 0;
  pointer-events: none;
}

.hamburger-menu {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* منو باز */
body.menu-open .hamburger-menu .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.menu-open .hamburger-menu .hamburger-line:nth-child(2) {
  opacity: 0;
}
body.menu-open .hamburger-menu .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* دکمه بستن منو */
.menu-close {
  display: none;
  position: absolute;
  top: 1.25rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.menu-close:hover, .menu-close:active, .menu-close:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #FF6B35;
  transform: rotate(90deg);
}
.header[dir="rtl"] .menu-close {
  left: auto;
  right: 1rem;
}
@media screen and (max-width: 1200px) {
  .menu-close {
    display: flex;
  }
}

/* پس‌زمینه تیره منو */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 24, 29, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}
@media screen and (min-width: 1201px) {
  .menu-overlay {
    display: none;
  }
}

/* جلوگیری از اسکرول پس‌زمینه هنگام باز بودن منو */
body.menu-open {
  overflow: hidden;
}

.text-black-imp {
  color: black !important;
}

.text-white-imp {
  color: white !important;
}

.nav-item, .dropbtn {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: center;
}
@media screen and (max-width: 1200px) {
  .dropdown {
    display: inline-block;
  }
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(3, 24, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 12px;
  z-index: 5;
  top: 40px;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 1rem;
  padding: 0.5rem;
}
@media screen and (max-width: 1200px) {
  .dropdown-content {
    position: initial;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* نمایش منوی اصلی با هاور */
.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
}

.dropdown-content a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}
.dropdown-content a:hover, .dropdown-content a:active, .dropdown-content a:focus {
  color: #FF6B35;
}

.parent-category {
  position: relative;
  padding: 10px 15px;
  cursor: pointer;
}
@media screen and (max-width: 1200px) {
  .parent-category {
    padding: 5px;
  }
}

.category-title {
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}
.category-title:hover {
  color: #FF6B35;
}
.category-title:hover .arrow {
  transform: rotate(90deg);
}

.subcategories {
  display: none;
  position: absolute;
  background: rgba(3, 24, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 12px;
  z-index: 6;
  transition: opacity 0.3s ease;
  padding: 0.5rem;
}
[dir=rtl] .subcategories {
  right: 100%;
}
[dir=ltr] .subcategories {
  left: 100%;
}
.subcategories {
  top: 0;
}
@media screen and (max-width: 1200px) {
  .subcategories {
    position: static;
    margin-right: 1rem;
    box-shadow: none;
  }
}

.parent-category:hover .subcategories {
  display: block;
}

.subcategories a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}
.subcategories a:hover, .subcategories a:active, .subcategories a:focus {
  color: #FF6B35;
}

#button-theme {
  display: none;
}

/*# sourceMappingURL=header.css.map */
