/* ===========================================================
   چرخ گستر سهند - استایل بخش سوالات متداول (Charkh Gostar Sahand FAQ)
   نسخه: 1.0 - کاملاً لوکال، بدون CDN
   =========================================================== */

/* --- متغیرهای CSS برای شخصی‌سازی آسان --- */
:root {
  --atlas-deep-blue: #0a1a2f;
  /* آبی عمیق، پس‌زمینه اصلی */
  --atlas-tech-blue: #134074;
  /* آبی تکنولوژیک، کارت‌ها */
  --atlas-gold: #d4af37;
  /* طلایی، تاکید بر نوآوری */
  --atlas-copper: #b87333;
  /* مسی، جزئیات */
  --atlas-light-gray: #e8ecf1;
  /* طوسی روشن، متن */
  --atlas-text-on-dark: #ccd6e0;
  /* متن روی بک‌گراند تیره */
  --atlas-transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  /* انیمیشن روان */
  --atlas-border-radius: 12px;
  --atlas-font-primary: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
  /* فونت فارسی */
}

/* --- استایل کلی بخش --- */
.faq-section.Charkh Gostar Sahand-faq {
  background-color: var(--atlas-deep-blue);
  padding: 6rem 2rem;
  font-family: var(--atlas-font-primary);
  direction: rtl;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* برای محدود کردن افکت‌ها */
}

/* یک الگوی پس‌زمینه انتزاعی (شبکه تکنولوژیک) */
.faq-section.Charkh Gostar Sahand-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 64, 116, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 64, 116, 0.4) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 50px 50px;
  }
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

/* --- هدر --- */
.faq-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.faq-main-title {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

/* خط درخشان زیر عنوان اصلی */
.faq-main-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--atlas-gold), var(--atlas-copper));
  border-radius: 2px;
}

.faq-subtitle {
  color: var(--atlas-text-on-dark);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 650px;
  margin: 1.5rem auto 0;
  opacity: 0.85;
}

/* دکوریشن اضافی (یک المان هندسی) */
.header-decoration {
  width: 60px;
  height: 60px;
  border: 2px solid var(--atlas-gold);
  border-radius: 50%;
  position: absolute;
  top: -15px;
  right: 10%;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* --- لیست سوالات --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- هر آیتم سوال --- */
.faq-item {
  background: linear-gradient(145deg, rgba(19, 64, 116, 0.6), rgba(10, 26, 47, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--atlas-border-radius);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 15px 40px -10px rgba(212, 175, 55, 0.15);
}

/* --- دکمه سوال --- */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  text-align: right;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
  font-family: inherit;
  transition: background-color 0.3s ease;
  position: relative;
}

/* آیکون + و - */
.question-icon-wrapper {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 24px;
  height: 24px;
  color: var(--atlas-gold);
  transition: var(--atlas-transition);
}

/* انیمیشن مورف آیکون */
.faq-item.active .icon-circle {
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
  transition: stroke-dashoffset 0.6s ease;
}

.faq-item.active .icon-circle {
  stroke-dashoffset: 0;
}

.faq-item.active .icon-line-v {
  transform: scaleY(0);
  transform-origin: center;
}

.question-text {
  flex-grow: 1;
}

/* افکت ریپل (موج انرژی) */
.ripple-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 0;
  pointer-events: none;
}

.faq-item.ripple-active .ripple-effect {
  width: 500px;
  height: 500px;
  opacity: 0;
  animation: ripple-anim 0.75s ease-out;
}

@keyframes ripple-anim {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

/* --- بخش جواب (پنهان/آشکار) --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  /* یک ارتفاع حداکثر کافی */
  transition: max-height 0.8s cubic-bezier(0.25, 0.8, 0.25, 1.5), padding 0.3s ease;
}

.answer-inner {
  padding: 0 2rem 1.8rem 2rem;
  margin-right: 3.6rem;
  /* هم‌راستا با متن سوال */
  color: var(--atlas-light-gray);
  line-height: 1.9;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.faq-item.active .answer-inner {
  opacity: 1;
  transform: translateY(0);
}

/* --- خط نوری متحرک (اسکن) --- */
.faq-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--atlas-gold), transparent);
  animation: scanLine 4s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes scanLine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* --- واکنش‌گرایی (Responsive) --- */
@media (max-width: 768px) {
  .faq-section.Charkh Gostar Sahand-faq {
    padding: 3rem 1rem;
  }

  .faq-main-title {
    font-size: 2rem;
  }

  .faq-question {
    padding: 1.2rem 1.2rem;
    font-size: 1rem;
    gap: 0.8rem;
  }

  .answer-inner {
    padding: 0 1.2rem 1.5rem 1.2rem;
    margin-right: 2.8rem;
  }
}