@font-face {
  font-family: 'shabnam';
  src: url('../assets/fonts/Shabnam.woff2') format('woff2'),
       url('../assets/fonts/Shabnam.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'vazir';
  src: url('../assets/fonts/Vazir.woff2') format('woff2'),
       url('../assets/fonts/Vazir.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.font-text {
  font-weight: bold;
  font-family: 'shabnam', 'vazir', 'B Homa', Arial, Helvetica, sans-serif;
}

.font-text-en{
  font-weight: bold;
  font-family: Comic Sans MS,Arial, Helvetica, sans-serif,system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* حالت پیش‌فرض (روز) */
body {
  background-color: #f5f5f5;
  color: #222;
}

.theme-dark {
  background-color: #121212;
  color: #f5f5f5;
}

.theme-dark .card {
  background-color: #1e1e1e;
  color: #f5f5f5;
}

.theme-dark .btn-p {
  background-color: #9C27B0;
  color: #fff;
}

.theme-dark .div-back {
  background-color: #111827;
}

:root {
  --bg-color: #f5f5f5;
  --text-color: #222;
  --card-bg: #fff;
}

.theme-dark {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --card-bg: #1e1e1e;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.card {
  background-color: var(--card-bg);
}

/* رنگ‌های تم روز */
.header {
  background-color: #f5f5f5;
  color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
  font-family: 'Segoe UI', sans-serif;
  font-weight: bold;
  color: #1E88E5;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #9C27B0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #E53935;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #E53935;
}


/* حالت تم تاریک */
.theme-dark .header {
  background-color: #111827;
  color: #f5f5f5;
  box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

.theme-dark .logo {
  color: #9C27B0;
}

.theme-dark .nav-links a {
  color: #FFEB3B;
}

.theme-dark .nav-links a::after {
  background-color: #9C27B0;
}

.theme-dark .nav-links a:hover {
  color: #9C27B0;
}

/* دکمه تغییر تم با افکت بالا آمدن */
.theme-btn {
  background-color: #FFEB3B;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.theme-btn:hover {
  transform: translateY(-4px);
}

.theme-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  background-color: #9C27B0;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.theme-switcher:hover {
  transform: rotate(20deg) scale(1.1);
}

.theme-switcher .icon {
  display: inline-block;
  transition: transform 0.6s ease;
}

.theme-dark .theme-switcher .icon {
  transform: rotate(360deg);
}

/* دکمه منو به‌صورت پیش‌فرض مخفی */
.menu-toggle {
  display: none;
  background-color: #9C27B0;
  color: white;
  border: none;
  font-size: 22px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* منوی کشویی موبایل */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100%;
  background-color: #f5f5f5;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  padding-right: 20px;
  transition: right 0.4s ease;
  z-index: 1000;
}

.mobile-menu a {
  text-decoration: none;
  color: #1E88E5;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #E53935;
}

.mobile-menu.active {
  right: 0;
}

/* حالت تم تاریک */
.theme-dark .mobile-menu {
  background-color: #1E293B;
}

.theme-dark .mobile-menu a {
  color: #FFEB3B;
}

.theme-dark .mobile-menu a:hover {
  color: #9C27B0;
}

.anime-banner .carousel-caption {
  background-color: rgba(17, 24, 39, 0.7); /* رنگ مورد علاقه‌ت با شفافیت */
  border-radius: 12px;
  padding: 15px;
  color: #FACC15; /* زرد گرم برای تضاد و خوانایی */
}

.carousel-inner img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.theme-dark .anime-genres {
  background-color: #111827;
  padding: 30px;
  border-radius: 12px;
  color: #F3F4F6;
}

.anime-genres {
  padding: 30px;
  border-radius: 12px;
}

.anime-genres button {
  background-color: transparent;
  border: 1px solid #FACC15;
  color: #FACC15;
  font-weight: bold;
  transition: 0.3s;
}

.anime-genres button:hover {
  background-color: #FACC15;
  color: #111827;
}

@media (max-width: 768px) {
  .hero {
    background-image: url('../assets/images/HD\ wallpaper_\ anime\ characters\ wallpaper\,\ Crossover\,\ Acchi\ Kocchi\,\ Akeno\ Himejima.jpg');
    background-size: cover;
  }
}
@media (min-width: 1024px) {
  .hero {
    background-image: url('../assets/images/anime-mix-crossover-facebook-cover.jpg');
    background-size: auto;
  }
}

.popular-anime-image {
  width: 100%;
  aspect-ratio: 3 / 4; /* نسبت تصویر ثابت، مثل پوستر انیمه */
  object-fit: cover;   /* تصویر رو کراپ می‌کنه بدون کشیدگی */
}

.anime-card {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.anime-card:hover {
  transform: scale(1.05);
}

.anime-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.anime-card:hover .anime-img {
  transform: scale(1.1);
}

.anime-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 39, 0.8); /* رنگ مورد علاقه‌ت با شفافیت */
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.anime-card:hover .anime-overlay {
  opacity: 1;
}

.theme-dark .btn-watch {
  background-color: transparent;
  border: 2px solid #FACC15;
  color: #FACC15;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.theme-dark .btn-watch:hover {
  background-color: #FACC15;
  color: #111827;
  box-shadow: 0 0 10px #FACC15;
  transform: scale(1.05);
}

.search-wrapper {
  position: relative;
}

.search-input {
  padding: 12px 40px 12px 16px;
  border-radius: 30px;
  border: 2px solid #FACC15;
  background-color: #111827;
  color: #F3F4F6;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #FACC15;
  font-weight: normal;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.4);
  border-color: #FACC15;
}

.search-icon {
  position: absolute;
  top: 45%;
  left: 10px;
  transform: translateY(-50%);
  color: #FACC15;
  font-size: 20px;
  pointer-events: none;
}

.footer {
  background-color: #111827;
  color: #F3F4F6;
  overflow: hidden;
}

/* لینک‌ها */
.footer-link {
  color: #F3F4F6;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #FACC15;
}

/* عنوان‌ها */
.footer h5,
.footer h6 {
  font-weight: bold;
}

/* فرم خبرنامه */
.newsletter-input {
  background-color: #1F2937;
  border: 1px solid #FACC15;
  color: #F3F4F6;
  border-radius: 30px;
  padding: 8px 16px;
  transition: box-shadow 0.3s;
}
.newsletter-input:focus {
  box-shadow: 0 0 15px rgba(250,204,21,0.5);
  outline: none;
}

/* دکمه ارسال */
.footer .btn-warning {
  background-color: #FACC15;
  border: none;
  border-radius: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.footer .btn-warning:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(250,204,21,0.7);
}

/* آیکون‌های شبکه‌های اجتماعی */
.social-icons .icon {
  display: inline-block;
  color: #F3F4F6;
  font-size: 1.25rem;
  margin-right: 10px;
  transition: color 0.3s, transform 0.3s;
}
.social-icons .icon:hover {
  color: #FACC15;
  transform: translateY(-3px);
}

/* دکمه برگشت به بالا */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 2rem;
  color: #FACC15;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-5px);
}

/* user panel */

.bg-gradientt {
  background: linear-gradient(135deg, #4b2e83, #6f42c1) !important;
}
.hover-shadow:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}