/**
 * components/how-to-buy-glasses/how-to-buy-glasses.css
 * استایل مدرن و پرمیوم برای صفحه راهنمای خرید آنلاین عینک طبی
 */

.how-to-buy-container {
  padding: 40px 0 80px;
  background-color: #f8f9fa;
  min-height: 80vh;
  direction: rtl;
  text-align: right;
  font-family: 'Outfit', 'Vazirmatn', sans-serif;
}

.how-to-buy-article {
  background: #ffffff;
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 50px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

/* هدر مقاله */
.article-header {
  text-align: center;
  margin-bottom: 50px;
  border-bottom: 2px dashed #eceff1;
  padding-bottom: 40px;
}

.guide-tag {
  display: inline-block;
  background: rgba(211, 157, 78, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 34px;
  color: #1a1a1a;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.5;
}

.article-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* نوار پیشرفت گام‌ها (Progress Timeline) */
.steps-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.progress-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #888;
  transition: all 0.3s ease;
}

.progress-step-item:hover .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(211, 157, 78, 0.2);
  transform: scale(1.05);
}

.step-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-align: center;
  white-space: nowrap;
}

.progress-step-line {
  flex-grow: 1;
  height: 2px;
  background: #eaeaea;
  margin: -25px 15px 0 15px; /* تراز با دایره‌ها */
}

/* استایل بخش‌های گام‌ها */
.guide-step-section {
  position: relative;
  padding: 40px 30px;
  margin-bottom: 50px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.guide-step-section:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border-color: rgba(211, 157, 78, 0.25);
}

.step-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: #1a1a1a;
  color: #ffffff;
  padding: 4px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.step-title {
  font-size: 22px;
  color: #1a1a1a;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.5;
}

.sub-step-title {
  font-size: 18px;
  color: #222;
  font-weight: 700;
  margin: 30px 0 15px 0;
  position: relative;
  padding-right: 12px;
}

.sub-step-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.step-content p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* هایلایت باکس‌ها */
.info-highlight-box {
  background: #fffbf5;
  border-right: 4px solid var(--primary);
  border-radius: 12px;
  padding: 24px 20px;
  margin: 25px 0;
}

.info-highlight-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #8c6229;
  margin-bottom: 15px;
}

.styled-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.styled-list li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.styled-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
  position: absolute;
  right: 5px;
  top: -2px;
}

/* فرمول باکس */
.formula-box {
  background: #f7f9fa;
  border: 1px solid #e2e8f0;
  padding: 15px 20px;
  border-radius: 10px;
  display: inline-block;
  margin: 15px 0;
  font-family: monospace, sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #2d3748;
}

/* لینک های درون متنی دکمه‌ای */
.inline-link-btn {
  display: inline-block;
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.inline-link-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* بخش‌های دو ستونه */
.split-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 30px 0;
}

.layout-text {
  flex: 1;
}

.layout-visual {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

/* تصویرسازی PD */
.pd-illustration {
  border: 2px solid #eaeaea;
  border-radius: 16px;
  padding: 25px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 250px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  position: relative;
}

.eye-box {
  font-size: 32px;
}

.ruler-line {
  position: relative;
  flex-grow: 1;
  height: 4px;
  background: var(--primary);
  margin: 0 10px;
}

.ruler-line::before, .ruler-line::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 2px;
  height: 16px;
  background: var(--primary);
}

.ruler-line::before { left: 0; }
.ruler-line::after { right: 0; }

.ruler-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* گرید فرم‌های صورت */
.shapes-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.shape-info-card {
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.shape-info-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(211, 157, 78, 0.1);
}

.shape-icon {
  font-size: 28px;
  display: inline-block;
  margin-bottom: 12px;
}

.shape-info-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.shape-info-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* گرید انواع عدسی */
.lens-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 25px 0;
}

.lens-type-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.lens-type-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}

.lens-type-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.lens-type-icon {
  font-size: 24px;
}

.lens-type-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.lens-type-card p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ردیف پوشش‌های عدسی */
.coatings-wrapper {
  margin: 25px 0;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  overflow: hidden;
}

.coating-row {
  display: flex;
  border-bottom: 1px solid #eaeaea;
  transition: background-color 0.2s ease;
}

.coating-row:last-child {
  border-bottom: none;
}

.coating-row:hover {
  background-color: #fcfcfc;
}

.coating-title-wrap {
  flex: 0 0 250px;
  padding: 20px;
  background-color: #fafafa;
  border-left: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #1a1a1a;
}

.coating-desc {
  flex: 1;
  padding: 20px;
  font-size: 13.5px;
  color: #555;
  line-height: 1.7;
}

/* روش‌های سفارش */
.order-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 30px 0;
}

.order-method-box {
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 24px;
}

.order-method-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.order-method-box.highlighted {
  border-color: var(--primary);
  background: #fffcf8;
  box-shadow: 0 5px 15px rgba(211, 157, 78, 0.05);
}

.order-method-box.highlighted h3 {
  color: #8c6229;
}

/* کال تو اکشن نهایی */
.action-cta-wrap {
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 45px 30px;
  margin-top: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.action-cta-wrap h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.action-cta-wrap p {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.primary-cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.primary-cta-btn:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.secondary-cta-btn {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  text-decoration: none;
  padding: 11px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.secondary-cta-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* ریسپانسیو */
@media (max-width: 992px) {
  .how-to-buy-article {
    padding: 40px 25px;
  }
  .shapes-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .coating-row {
    flex-direction: column;
  }
  .coating-title-wrap {
    flex: auto;
    border-left: none;
    border-bottom: 1px solid #eaeaea;
    background-color: #fafafa;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 26px;
  }
  .steps-progress-bar {
    display: none; /* مخفی کردن نوار پیشرفت در موبایل به علت تنگی فضا */
  }
  .split-layout {
    flex-direction: column;
    gap: 20px;
  }
  .layout-visual {
    flex: auto;
  }
  .lens-types-grid {
    grid-template-columns: 1fr;
  }
  .order-methods {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .primary-cta-btn, .secondary-cta-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .how-to-buy-article {
    padding: 30px 15px;
    border-radius: 16px;
  }
  .shapes-cards-grid {
    grid-template-columns: 1fr;
  }
  .guide-step-section {
    padding: 30px 15px;
  }
  .step-badge {
    right: 15px;
  }
  .step-title {
    font-size: 18px;
  }
}

