﻿.creator-card {
  width: 200px;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  text-align: center;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.creator-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* باعث میشه منو از قاب بیرون نزنه و هم‌اندازه دکمه باشه */
.custom-dropdown {
  min-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  position: absolute !important;
}

/* فقط برای موبایل */
@media (max-width: 768px) {
  .dropdown-menu {
    width: 100vw !important;
    left: 0 !important;
    right: auto !important;
    border-radius: 0 !important;
  }
}

.custom-dropdown {
  min-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  position: absolute !important;
  border-radius: 0.375rem;
  padding: 0;
}

/* آیتم‌های منو دراپ‌دان وسط‌چین */
.dropdown-menu .dropdown-item {
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* هاور: روشن شدن */
.dropdown-menu .dropdown-item:hover {
  background-color: #f0f0f0;
  color: #000;
}

/* در حالت موبایل، منو به عرض کامل دربیاد */
@media (max-width: 768px) {
  .dropdown-menu {
    width: 100vw !important;
    left: 0 !important;
    right: auto !important;
    border-radius: 0 !important;
  }
}

@font-face {
  font-family: "Vazir";
  src: url("/fonts/vazir/Vazir.woff2") format("woff2"),
    url("/fonts/vazir/Vazir.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body,
input,
button,
select,
textarea {
  font-family: Vazir, sans-serif;
}

/* --- Login modal look --- */
.login-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.35); /* مشکی شفاف */
  backdrop-filter: blur(6px);
  z-index: 1050;
}

.login-card {
  width: clamp(320px, 92vw, 520px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-title {
  font-weight: 700;
  color: #111827; /* نزدیک به طرح */
}

/* pill input like figma */
.form-control.pill {
  border-radius: 999px !important;
  padding-inline: 14px;
  height: 48px;
  border: 1.5px solid #e5e7eb;
}
.form-control.pill:focus {
  border-color: #8b5cf6; /* بنفش */
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.15);
}

/* gradient primary button */
.btn-gradient {
  border: none;
  color: #fff;
  background-image: linear-gradient(90deg, #60a5fa, #8b5cf6); /* آبی→بنفش */
}
.btn-gradient:hover {
  filter: brightness(0.96);
}

/* outline “secondary action” button like mock */
.btn-soft-outline {
  background: transparent;
  border: 1.5px solid #c7d2fe; /* بنفش淡 */
  color: #6d28d9;
}
.btn-soft-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  color: #4c1d95;
}

/* tab buttons on top */
.login-tabs .btn {
  border-radius: 999px !important;
  font-weight: 600;
}
.login-tabs .btn-outline-primary {
  background: #fff;
}

/* OTP boxes (یک input اما ظاهر جعبه‌ای) */
.otp-input {
  letter-spacing: 18px; /* فاصله بین کاراکترها */
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  direction: ltr;
  caret-color: transparent;
  background-image: linear-gradient(#fff, #fff),
    repeating-linear-gradient(90deg, #c4b5fd 0 36px, transparent 36px 46px);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  border-radius: 16px;
  border: 1.5px solid #c7d2fe;
  height: 56px;
}
.otp-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.15);
}

/* helper text */
.text-hint {
  color: #6b7280;
  font-size: 0.9rem;
}

/* tiny link */
.link-inline {
  color: #6366f1;
  text-decoration: none;
}
.link-inline:hover {
  text-decoration: underline;
}

.landing {
  font-family: "Vazirmatn", sans-serif;
}

.btn-gradient {
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
}

.category-box {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

.channel-box {
  width: 250px;
  height: 150px;
  background: #f0f0f0;
  border-radius: 12px;
}

.steps li {
  background: #f7f7f7;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
}

.cta {
  background: linear-gradient(90deg, #9face6 0%, #74ebd5 100%);
  color: #fff;
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 350px;
  max-width: 90%;
}

/* ===== Landing + CourseRow ===== */
.landing-hero {
  min-height: 220px;
  background: linear-gradient(90deg, #eef4ff, #ffffff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.75rem;
}
.section-title {
  font-weight: 700;
  font-size: 1.1rem;
}
.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pill {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

/* horizontal scroller */
.scroller-wrap {
  position: relative;
}
.scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0 0.25rem;
  scroll-snap-type: x mandatory;
}
.scroller::-webkit-scrollbar {
  height: 8px;
}
.scroller::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 8px;
}
.card-col {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.scroll-btn {
  position: absolute;
  top: -42px;
  inset-inline-start: 0; /* RTL/LTR logical */
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* course cards */
.course-card {
  min-height: 360;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
}
.course-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 25px;
  padding: 10px;
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-hero {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  display: flex;
}

.banner-hero img {
  border-radius: 16px;
}

.nav-item span {
  color: black;
  /* border: 1px solid black; */
}

.banner-hero img {
  border-radius: 16px;
}

.poster-16x9 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.poster-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-btn {
  border: 1px solid black;
  color: black;
}

.banner-img {
  object-fit: contain;
}

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}

.carousel-control-next,
.carousel-control-prev {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: 0 0;
  border: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.carousel-cs {
  padding: 0 50px;
}

.banner-img-mobile {
  display: none;
}

@media (max-width: 768px) {
  .carousel-cs {
    padding: 0;
  }
  .banner-img-mobile{
    display: block;
  }
  .banner-img-desktop{
    display: none;
  }

}
