/* components/loyalty-program/loyalty-program.css */

.loyalty-landing-wrapper {
  font-family: inherit;
  direction: rtl;
  text-align: right;
  background-color: #fafbfc;
  color: #1e293b;
  overflow: hidden;
}

.loyalty-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.loyalty-section-header h2 {
  font-size: 2rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.loyalty-section-header p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   ۱. بخش هیرو (Hero Banner)
   ===================================================== */
.loyalty-hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 4rem 2rem;
  position: relative;
}

.loyalty-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.loyalty-hero-content {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.loyalty-hero-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
}

.loyalty-hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
  background: linear-gradient(to left, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loyalty-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #94a3b8;
  margin: 0;
}

.loyalty-hero-actions {
  margin-top: 1rem;
}

.btn-loyalty-cta {
  display: inline-block;
  background: #ca8a04;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.4);
}

.btn-loyalty-cta:hover {
  background: #a16207;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202, 138, 4, 0.6);
}

.loyalty-hero-image {
  flex: 1 1 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .loyalty-hero-section {
    padding: 3rem 1rem;
  }
  .loyalty-hero-title {
    font-size: 2.25rem;
  }
  .loyalty-hero-subtitle {
    font-size: 1rem;
  }
}

/* =====================================================
   ۲. بخش مراحل کارکرد (Steps)
   ===================================================== */
.loyalty-steps-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.loyalty-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .loyalty-steps-grid {
    grid-template-columns: 1fr;
  }
}

.loyalty-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.01);
  transition: all 0.3s ease;
}

.loyalty-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.04);
  border-color: #cbd5e1;
}

.step-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f8fafc;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  border: 1px solid #e2e8f0;
}

.loyalty-step-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
}

.loyalty-step-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* =====================================================
   ۳. بخش مقایسه سطوح (Tiers Section)
   ===================================================== */
.loyalty-tiers-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 5rem 1.5rem;
}

.loyalty-tiers-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .loyalty-tiers-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

.loyalty-tier-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.01);
  transition: all 0.3s ease;
}

.loyalty-tier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.06);
}

.popular-tier {
  border: 2px solid #ca8a04 !important;
  box-shadow: 0 8px 24px rgba(202, 138, 4, 0.1) !important;
}

.tier-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ca8a04;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 1.25rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-card-header {
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.tier-level {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-card-header h3 {
  font-size: 1.65rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0.5rem 0;
}

.tier-limit {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ca8a04;
  display: block;
}

.tier-perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.tier-perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #334155;
}

.tier-perks-list li i {
  margin-top: 0.15rem;
  font-size: 1rem;
}

.tier-perks-list li i.fa-circle-check {
  color: #10b981;
}

.tier-perks-list li i.fa-circle-xmark {
  color: #cbd5e1;
}

.tier-perks-list li.disabled {
  color: #94a3b8;
  text-decoration: line-through;
}

/* =====================================================
   ۴. بخش روش‌های کسب امتیاز (Earn Points)
   ===================================================== */
.loyalty-earn-methods-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.loyalty-earn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .loyalty-earn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .loyalty-earn-grid {
    grid-template-columns: 1fr;
  }
}

.earn-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.earn-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eff6ff;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.earn-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.earn-points {
  font-size: 1.1rem;
  font-weight: 900;
  color: #16a34a;
}

.earn-card p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* =====================================================
   ۵. بخش آکاردئون سوالات متداول (FAQ)
   ===================================================== */
.loyalty-faq-section {
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.loyalty-faq-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
  transition: border-color 0.3s ease;
}

.faq-accordion-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  color: #0f172a;
  text-align: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-accordion-btn i {
  font-size: 0.85rem;
  color: #64748b;
  transition: transform 0.3s ease;
}

.faq-accordion-btn.active i {
  transform: rotate(180deg);
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
}

.faq-accordion-content p {
  padding-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* =====================================================
   ۶. بخش دعوت به کار (CTA Section)
   ===================================================== */
.loyalty-cta-section {
  background: #0f172a;
  color: #ffffff;
  padding: 5rem 1.5rem;
  text-align: center;
}

.loyalty-cta-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.loyalty-cta-section h3 {
  font-size: 2rem;
  font-weight: 850;
  margin: 0;
}

.loyalty-cta-section p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.btn-loyalty-cta-bottom {
  display: inline-block;
  background: #ca8a04;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.25rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 0.5rem;
}

.btn-loyalty-cta-bottom:hover {
  background: #a16207;
  transform: translateY(-2px);
}
