/* ============================================================
   چرخ گستر سهند - Pain Points Section
   مشکلات قالیشویی سنتی vs راه‌حل چرخ گستر سهند
   نسخه: 1.0 - Mobile First
   ============================================================ */

:root {
  --atlas-deep-blue: #0a1a2f;
  --atlas-mid-blue: #0d2240;
  --atlas-tech-blue: #134074;
  --atlas-gold: #d4af37;
  --atlas-gold-light: #e5c767;
  --atlas-copper: #b87333;
  --atlas-white: #ffffff;
  --atlas-light-gray: #e8ecf1;
  --atlas-text-on-dark: #ccd6e0;
  --atlas-text-muted: #8899aa;
  --atlas-red: #e74c3c;
  --atlas-green: #2ecc71;
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  --border-radius: 16px;
  --font-primary: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
}

/* ==================== بخش اصلی ==================== */
.pain-points-section {
  background: linear-gradient(180deg, var(--atlas-mid-blue) 0%, var(--atlas-deep-blue) 100%);
  padding: 5rem 1rem;
  font-family: var(--font-primary);
  direction: rtl;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* پس‌زمینه هشدار مانند */
.pain-points-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pain-points-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pp-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==================== هدر بخش ==================== */
.pp-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(231, 76, 60, 0.1);
  color: var(--atlas-red);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  border: 1px solid rgba(231, 76, 60, 0.25);
  margin-bottom: 1rem;
}

.pp-badge-icon {
  width: 18px;
  height: 18px;
  animation: warningShake 2s ease-in-out infinite;
}

@keyframes warningShake {

  0%,
  100% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }
}

.pp-title {
  color: var(--atlas-white);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.pp-title-accent {
  color: var(--atlas-red);
  position: relative;
}

.pp-title-accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--atlas-red);
  opacity: 0.3;
  border-radius: 2px;
}

.pp-subtitle {
  color: var(--atlas-text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== کارت‌های مشکلات ==================== */
.pp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* کارت مشکل (سمت سنتی) */
.pain-card {
  background: linear-gradient(145deg, rgba(19, 64, 116, 0.2), rgba(10, 26, 47, 0.5));
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.pain-card:hover {
  border-color: rgba(231, 76, 60, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(231, 76, 60, 0.2);
}

/* آیکون هشدار */
.pain-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 1.2rem;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-red);
  position: relative;
  animation: iconPulse 3s ease-in-out infinite;
}

.pain-icon svg {
  width: 32px;
  height: 32px;
}

/* حلقه دور آیکون */
.pain-icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px dashed rgba(231, 76, 60, 0.3);
  border-radius: 50%;
  animation: ringRotate 10s linear infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.pain-title {
  color: var(--atlas-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.pain-description {
  color: var(--atlas-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* لیست مشکلات داخل کارت */
.pain-list {
  list-style: none;
  padding: 0;
  text-align: right;
}

.pain-list li {
  color: var(--atlas-text-on-dark);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pain-list li::before {
  content: '✕';
  color: var(--atlas-red);
  font-weight: bold;
  flex-shrink: 0;
}

/* ==================== بخش مقایسه قبل/بعد ==================== */
.pp-comparison {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
}

.comparison-title {
  text-align: center;
  color: var(--atlas-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

/* ستون سنتی */
.compare-col {
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition-smooth);
}

.compare-col.old-way {
  background: rgba(231, 76, 60, 0.05);
  border: 1px solid rgba(231, 76, 60, 0.2);
  position: relative;
}

.compare-col.old-way:hover {
  background: rgba(231, 76, 60, 0.1);
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.15);
}

.compare-col.old-way::before {
  content: 'روش سنتی';
  position: absolute;
  top: -15px;
  right: 50%;
  transform: translateX(50%);
  background: var(--atlas-red);
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ستون چرخ گستر سهند */
.compare-col.Charkh Gostar Sahand-way {
  background: rgba(46, 204, 113, 0.05);
  border: 1px solid rgba(46, 204, 113, 0.2);
  position: relative;
}

.compare-col.Charkh Gostar Sahand-way:hover {
  background: rgba(46, 204, 113, 0.1);
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.15);
}

.compare-col.Charkh Gostar Sahand-way::before {
  content: 'تکنولوژی چرخ گستر سهند';
  position: absolute;
  top: -15px;
  right: 50%;
  transform: translateX(50%);
  background: var(--atlas-green);
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.compare-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.old-way .compare-icon {
  background: rgba(231, 76, 60, 0.15);
  color: var(--atlas-red);
}

.Charkh Gostar Sahand-way .compare-icon {
  background: rgba(46, 204, 113, 0.15);
  color: var(--atlas-green);
}

.compare-icon svg {
  width: 30px;
  height: 30px;
}

.compare-list {
  list-style: none;
  padding: 0;
  text-align: right;
}

.compare-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--atlas-text-on-dark);
}

.compare-list li:last-child {
  border-bottom: none;
}

.old-way .compare-list li::before {
  content: '✕ ';
  color: var(--atlas-red);
}

.Charkh Gostar Sahand-way .compare-list li::before {
  content: '✓ ';
  color: var(--atlas-green);
  font-weight: bold;
}

/* جداکننده VS */
.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-badge {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--atlas-gold), var(--atlas-copper));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-deep-blue);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  animation: vsFloat 3s ease-in-out infinite;
}

@keyframes vsFloat {

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

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

/* ==================== CTA پایین ==================== */
.pp-cta {
  text-align: center;
  margin-top: 3rem;
}

.pp-cta-text {
  color: var(--atlas-text-on-dark);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.pp-cta-text strong {
  color: var(--atlas-gold);
}

.btn-solution {
  background: linear-gradient(135deg, var(--atlas-gold), var(--atlas-copper));
  color: var(--atlas-deep-blue);
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.btn-solution:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
  color: var(--atlas-deep-blue);
}

.btn-solution svg {
  width: 20px;
  height: 20px;
}

/* ==================== Responsive ==================== */

/* تبلت */
@media (max-width: 992px) {
  .pp-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .compare-divider {
    order: -1;
  }

  .vs-badge {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* موبایل بزرگ */
@media (max-width: 768px) {
  .pain-points-section {
    padding: 3rem 1rem;
  }

  .pp-title {
    font-size: 1.6rem;
  }

  .pp-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pain-card {
    padding: 1.5rem 1.2rem;
  }

  .pp-header {
    margin-bottom: 2.5rem;
  }

  .comparison-title {
    font-size: 1.2rem;
  }

  .compare-col {
    padding: 1.5rem 1rem;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .pp-title {
    font-size: 1.4rem;
  }

  .pain-icon {
    width: 50px;
    height: 50px;
  }

  .pain-icon svg {
    width: 24px;
    height: 24px;
  }

  .pain-card:hover {
    transform: translateY(-4px);
  }
}