/**
 * components/face-shapes/face-shapes.css
 * استایل مدرن، پرمیوم و لوکس برای صفحه راهنمای انتخاب فریم بر اساس فرم صورت
 */

/* ظرف کلی صفحه */
.face-shapes-page-wrapper {
  direction: rtl;
  text-align: right;
  font-family: 'Outfit', 'Vazirmatn', sans-serif;
  background-color: #fbfbfc;
  color: #2c3e50;
  overflow-x: hidden;
}

.scroll-margin {
  scroll-margin-top: 100px;
}

/* ==========================================================================
   ۱. بخش هرو پریمیوم (Hero Section)
   ========================================================================== */
.shapes-hero-section {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.shapes-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 10s ease;
}

.shapes-hero-section:hover .hero-bg-img {
  transform: scale(1.05);
}

.shapes-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.75) 100%);
  z-index: 2;
}

.shapes-hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 0 20px;
}

.hero-tag {
  display: inline-block;
  background: rgba(211, 157, 78, 0.2);
  color: var(--primary);
  border: 1px solid rgba(211, 157, 78, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 35px;
  font-weight: 400;
}

.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #1a1a1a;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 157, 78, 0.3);
}

.hero-scroll-btn:hover {
  background: #ffffff;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

.hero-scroll-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.hero-scroll-btn:hover i {
  transform: translateY(3px);
}

/* ==========================================================================
   ۲. انتخاب‌گر تعاملی فرم صورت (Interactive Selector)
   ========================================================================== */
.shapes-nav-sticky {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.shapes-nav-sticky.is-sticky {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.shapes-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-sticky-title {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
}

.shapes-nav-links {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch;
}

.shapes-nav-links::-webkit-scrollbar {
  height: 4px;
}

.shapes-nav-links::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.nav-shape-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-shape-btn:hover,
.nav-shape-btn.active {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-shape-btn.active {
  border-color: var(--primary);
}

/* آیکون شکل‌ها در ناوبار تعاملی */
.shape-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  opacity: 0.8;
}

.icon-oval { border-radius: 50% / 60% 60% 40% 40%; }
.icon-round { border-radius: 50%; }
.icon-square { border-radius: 4px; }
.icon-heart {
  clip-path: polygon(50% 15%, 80% 0, 100% 25%, 50% 100%, 0 25%, 20% 0);
  background: currentColor;
}
.icon-diamond { transform: rotate(45deg); width: 10px; height: 10px; }
.icon-oblong { border-radius: 3px / 6px; width: 11px; height: 16px; }
.icon-triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: currentColor;
}

/* ==========================================================================
   ۳. بخش تشخیص فرم صورت (۳ مرحله طلایی)
   ========================================================================== */
.detect-face-section {
  background: #ffffff;
  padding: 60px 40px;
  border-radius: 24px;
  border: 1px solid #eaeaea;
  box-shadow: 0 10px 40px rgba(0,0,0,0.01);
  margin-top: 50px;
  margin-bottom: 70px;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: #666;
  max-width: 650px;
  margin: 0 auto;
}

.detect-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.detect-step-card {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  padding: 35px 25px;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.detect-step-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(211, 157, 78, 0.08);
}

.step-badge {
  position: absolute;
  top: -15px;
  right: 25px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--primary);
  color: #1a1a1a;
  border-radius: 50%;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(211, 157, 78, 0.2);
}

.step-icon-wrap {
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 12px;
  background: rgba(211, 157, 78, 0.1);
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 20px;
}

.detect-step-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.detect-step-card p {
  font-size: 13.5px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ==========================================================================
   ۴. بررسی جزئی انواع فرم صورت و عینک‌های مناسب (کارت‌های تفکیکی)
   ========================================================================== */
.face-details-section {
  margin-bottom: 80px;
}

.face-shapes-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.face-shape-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}

.face-shape-card:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.04);
}

.face-card-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: 480px;
}

/* ستون تصویر تعاملی (سمت راست در چینش فارسی) */
.face-card-image-column {
  background: #fafafa;
  border-left: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 30px;
  position: relative;
}

.face-shape-card:hover .face-card-image-column {
  background: #fdfcf9;
  border-left-color: var(--primary);
}

/* کانتینر تصویر تعاملی با نقاط داغ (Hotspots) */
.interactive-img-container {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.face-illustration {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  transition: transform 0.4s ease;
}

.face-shape-card:hover .face-illustration {
  transform: translateY(-5px);
}

/* نقاط تعاملی */
.hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(211, 157, 78, 0.3);
  animation: pulse-hotspot 2s infinite;
}

@keyframes pulse-hotspot {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 157, 78, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(211, 157, 78, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(211, 157, 78, 0);
  }
}

/* تولتیپ استایل سفارشی */
.hotspot::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1a1a1a;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  white-space: normal;
  width: 160px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 20;
}

.hotspot:hover::after,
.hotspot.active-tooltip::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* آیکون مثلث تولتیپ */
.hotspot::before {
  content: "";
  position: absolute;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #1a1a1a transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 20;
}

.hotspot:hover::before,
.hotspot.active-tooltip::before {
  opacity: 1;
}

/* پیش‌نمایش اشکال عینک */
.recommended-shapes-preview {
  width: 100%;
  margin-top: 30px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 20px;
}

.preview-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #888;
  margin-bottom: 15px;
  text-align: center;
}

.shapes-preview-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.shape-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  transition: all 0.2s ease;
}

.shape-icon-item:hover {
  color: var(--primary);
}

/* شبیه‌ساز اشکال فریم عینک به صورت خطی در CSS */
.mini-frame {
  width: 32px;
  height: 18px;
  border: 1.5px solid #888;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  transition: border-color 0.2s ease;
}

.shape-icon-item:hover .mini-frame {
  border-color: var(--primary);
}

.rect-frame { border-radius: 3px; }
.sq-frame { width: 22px; height: 20px; border-radius: 4px; }
.round-frame { width: 22px; height: 22px; border-radius: 50%; }
.oval-frame { width: 30px; height: 20px; border-radius: 50%; }

.cat-frame {
  border-radius: 3px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.poly-frame {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  width: 25px;
  height: 20px;
}

.aviator-frame {
  border-radius: 4px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.rimless-frame {
  border-style: dashed;
}

.semirim-frame {
  border-bottom-width: 0.5px;
  border-bottom-color: #ccc;
}

/* ستون اطلاعات و جزئیات */
.face-card-info-column {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.face-header-wrap {
  margin-bottom: 15px;
}

.face-tag-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

.bg-green-light { background-color: rgba(46, 125, 50, 0.08); }
.text-green { color: #2e7d32; }
.bg-accent-light { background-color: rgba(211, 157, 78, 0.08); }
.text-accent { color: #b78338; }

.face-header-wrap h2 {
  font-size: 24px;
  font-weight: 900;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.face-header-wrap .en-name {
  font-size: 14px;
  font-weight: 500;
  color: #888;
  font-family: 'Outfit', sans-serif;
}

.face-desc-text {
  font-size: 14.5px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* دو ستون پیشنهادی و غیر پیشنهادی */
.styling-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1px solid #f0f0f0;
  padding-top: 25px;
  margin-bottom: 30px;
}

.style-col h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-yes h3 { color: #2e7d32; }
.col-no h3 { color: #c62828; }

.style-col p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* تگ‌های لینک دار */
.direct-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.tag-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* دکمه‌های خرید کارت‌ها */
.card-action-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary-shapes {
  display: inline-block;
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  transition: all 0.25s ease;
  border: 1.5px solid #1a1a1a;
}

.btn-primary-shapes:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 157, 78, 0.2);
}

.btn-secondary-shapes {
  display: inline-block;
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-secondary-shapes:hover {
  background: #1a1a1a;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   ۵. بخش سوالات متداول تعاملی (FAQ Accordion)
   ========================================================================== */
.shapes-faq-section {
  border-top: 1px dashed #eaeaea;
  margin-top: 40px;
}

.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-trigger {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
  font-weight: 800;
  color: #1a1a1a;
  cursor: pointer;
  text-align: right;
  transition: background-color 0.25s ease;
}

.faq-trigger:hover {
  background-color: #fafafa;
}

.faq-trigger i {
  font-size: 14px;
  color: #888;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-trigger {
  background-color: #fdfcf9;
}

.faq-item.active .faq-trigger i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.faq-panel p {
  padding: 0 25px 25px 25px;
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  border-top: 1px solid #f9f9f9;
}

/* ==========================================================================
   ۶. بخش پایانی و کال تو اکشن پرو مجازی (CTA Section)
   ========================================================================== */
.shapes-cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 28px;
  color: #ffffff;
  padding: 60px 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.shapes-cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  max-width: 100%;
  height: 300px;
  background: rgba(211, 157, 78, 0.05);
  border-radius: 50%;
  filter: blur(50px);
}

.cta-inner-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.shapes-cta-section h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 15px;
}

.shapes-cta-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #d1d5db;
  margin-bottom: 35px;
}

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

.shapes-cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #1a1a1a;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 157, 78, 0.2);
}

.shapes-cta-primary-btn:hover {
  background: #ffffff;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.shapes-cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 12px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ==========================================================================
   ۷. ریسپانسیو و استایل‌های موبایل
   ========================================================================== */
@media (max-width: 1024px) {
  .face-card-grid {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 32px;
  }
  .shapes-hero-section {
    height: auto;
    padding: 80px 0;
  }
  .detect-steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .detect-face-section {
    padding: 40px 20px;
  }
  .face-card-grid {
    grid-template-columns: 1fr;
  }
  .face-card-image-column {
    border-left: none;
    border-bottom: 1px solid #eaeaea;
    padding: 35px 20px;
  }
  .shapes-nav-container {
    justify-content: center;
  }
  .nav-sticky-title {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
  }
  .shapes-nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 26px;
  }
  .hero-subtitle {
    font-size: 14.5px;
  }
  .face-card-info-column {
    padding: 25px 20px;
  }
  .styling-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-action-buttons {
    flex-direction: column;
  }
  .btn-primary-shapes,
  .btn-secondary-shapes {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .cta-buttons-wrap {
    flex-direction: column;
    width: 100%;
  }
  .shapes-cta-primary-btn,
  .shapes-cta-secondary-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .faq-trigger {
    font-size: 14.5px;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .shapes-hero-content {
    padding: 0 15px;
  }
  .hero-title {
    font-size: 22px;
  }
  .shapes-nav-sticky {
    position: relative;
    top: 0;
  }
}

