/* ============================================================
   CEZER — Affiliate Program Page Stylesheet
   Unique style: Dashboard / data-centric design with
   clean stat cards and progressive steps
   Inherits from style.css variables & base
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.aff-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.aff-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #292929 0%, #262220 35%, #2e2924 65%, #292929 100%);
  z-index: 0;
}

/* Dot-grid pattern */
.aff-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(228,226,221,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 25%, transparent 80%);
}

.aff-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 50% at 70% 70%, rgba(196,181,160,.05) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 30% 30%, rgba(228,226,221,.04) 0%, transparent 70%);
}

.aff-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
}

.aff-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(228,226,221,.08);
  border: 1px solid rgba(228,226,221,.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(228,226,221,.85);
  margin-bottom: 28px;
}
.aff-hero-badge i { width: 16px; height: 16px; }

.aff-hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e4e2dd;
  margin-bottom: 20px;
  line-height: 1.1;
}

.aff-hero-tagline {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(228,226,221,.6);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* Hero stat cards — dashboard style */
.aff-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 44px;
}

.aff-metric {
  background: rgba(228,226,221,.06);
  border: 1px solid rgba(228,226,221,.1);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}
.aff-metric:hover {
  background: rgba(228,226,221,.1);
  border-color: rgba(228,226,221,.18);
  transform: translateY(-2px);
}

.aff-metric-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--beige);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.aff-metric-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(228,226,221,.4);
}

.aff-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── What is the Affiliate Program ─────────────────────────── */
.aff-about {
  padding: 100px 0;
  background: var(--beige);
}

.aff-about-header {
  text-align: center;
  margin-bottom: 60px;
}

.aff-about-header .section-desc {
  max-width: 680px;
}

.aff-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.aff-about-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
}

/* Mini dashboard mockup inside the visual */
.aff-dash-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aff-dash-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.aff-dash-stat {
  background: var(--beige-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.aff-dash-stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.aff-dash-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.aff-dash-bar {
  background: var(--beige-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.aff-dash-bar-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.aff-dash-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.aff-dash-bar-fill {
  height: 100%;
  background: var(--dark);
  border-radius: 100px;
  transition: width 1s ease;
}

.aff-about-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--dark);
  margin-bottom: 16px;
}

.aff-about-text > p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.aff-about-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aff-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.aff-point-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.aff-point-icon i { width: 18px; height: 18px; color: var(--dark); }

.aff-point-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.aff-point-text span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── How it works — progressive steps ──────────────────────── */
.aff-steps {
  padding: 100px 0;
  background: var(--beige-light);
}

.aff-steps-header {
  text-align: center;
  margin-bottom: 60px;
}

.aff-steps-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.aff-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.aff-step-number {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--beige);
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.aff-step-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
}
.aff-step-icon i { width: 20px; height: 20px; color: var(--dark); }

.aff-step h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.aff-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.aff-step-connector {
  width: 80px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 26px;
}

/* ── Earnings breakdown ────────────────────────────────────── */
.aff-earnings {
  padding: 100px 0;
  background: var(--beige);
}

.aff-earnings-header {
  text-align: center;
  margin-bottom: 60px;
}

.aff-earnings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.aff-earn-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.aff-earn-card:hover {
  border-color: var(--dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.aff-earn-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  border-radius: var(--radius-md);
  margin: 0 auto 18px;
}
.aff-earn-icon i { width: 22px; height: 22px; color: var(--dark); }

.aff-earn-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.aff-earn-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.aff-earn-card > p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── FAQ ───────────────────────────────────────────────────── */
.aff-faq {
  padding: 100px 0;
  background: var(--beige-light);
}

.aff-faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.aff-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aff-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.aff-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}
.aff-faq-question i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.aff-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.aff-faq-answer p {
  padding: 0 24px 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.aff-faq-item.open .aff-faq-question i {
  transform: rotate(180deg);
}

.aff-faq-item.open .aff-faq-answer {
  max-height: 300px;
}

.aff-faq-item:hover {
  border-color: var(--dark);
}

/* ── CTA ───────────────────────────────────────────────────── */
.aff-cta {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.aff-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(228,226,221,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 20%, transparent 80%);
}

.aff-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.aff-cta-inner .section-label {
  color: rgba(228,226,221,.5);
}

.aff-cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--beige);
  margin-bottom: 16px;
}

.aff-cta-inner > p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(228,226,221,.55);
  margin-bottom: 36px;
}

.aff-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .aff-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .aff-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .aff-earnings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .aff-hero {
    min-height: auto;
    padding: 140px 20px 80px;
  }

  .aff-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

  .aff-steps-timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .aff-step {
    padding: 20px 0;
  }

  .aff-step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .aff-earnings-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .aff-hero-title {
    font-size: 2rem;
  }

  .aff-hero-actions {
    flex-direction: column;
  }
  .aff-hero-actions .btn {
    width: 100%;
  }
}
