/* ============================================================
   HOME PAGE STYLES
   home.css
   ============================================================ */

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 0;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--nav-h));
  position: relative;
}

/* Hero text column */
.hero-text {
  padding: 32px 16px 0;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.hero-title .accent {
  color: var(--pink);
  display: block;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

/* Safety badges */
.safety-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.safety-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-300);
}

.safety-badge svg {
  color: var(--pink);
  flex-shrink: 0;
}

/* Hero image card */
.hero-image-wrap {
  position: relative;
  margin: 0 16px 16px;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 420px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
}

.hero-online-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: white;
  transition: var(--transition);
}

.hero-ctrl-btn.heart-btn {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255,27,107,0.5);
}

/* ===== PREFERENCE TOGGLE ===== */
.preference-section {
  padding: 0 16px 20px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 0 16px 32px;
  overflow: hidden;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 6px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  font-size: 16px;
  margin-bottom: 4px;
}

.stat-icon svg {
  color: var(--pink);
  width: 18px;
  height: 18px;
}

.stat-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat-label {
  font-size: 9px;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
}

/* ===== PLANS SECTION ===== */
.plans-section {
  padding: 0 16px 40px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.plan-card:hover {
  border-color: var(--pink-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.plan-card.popular {
  border-color: var(--pink-border);
  background: linear-gradient(180deg, rgba(255,27,107,0.06) 0%, var(--bg-card) 60%);
}

.plan-card.best-value {
  border-color: rgba(123,47,190,0.4);
  background: linear-gradient(180deg, rgba(123,47,190,0.08) 0%, var(--bg-card) 60%);
}

.plan-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.plan-match-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.plan-match-badge.pink   { background: var(--pink); color: white; }
.plan-match-badge.orange { background: #f97316; color: white; }
.plan-match-badge.purple { background: var(--purple); color: white; }

.plan-price {
  margin-bottom: 4px;
}

.plan-amount {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.plan-period {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 400;
}

.plan-matches-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  margin: 10px 0 14px;
  letter-spacing: 0.3px;
}

.plan-matches-label.pink   { background: var(--pink); color: white; }
.plan-matches-label.orange { background: #f97316; color: white; }
.plan-matches-label.purple { background: var(--purple); color: white; }

.plan-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
  margin-top: 16px;
  text-decoration: none;
  color: white;
}

.plan-pay-btn.pink {
  background: var(--pink);
}

.plan-pay-btn.pink:hover {
  background: var(--pink-dark);
  box-shadow: var(--shadow-pink);
  transform: translateY(-1px);
}

.plan-pay-btn.purple {
  background: var(--purple);
}

.plan-pay-btn.purple:hover {
  background: #6a27a4;
  transform: translateY(-1px);
}

/* ===== SECURE PAYMENTS ===== */
.secure-section {
  padding: 24px 16px 40px;
  text-align: center;
}

.secure-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 16px;
  font-weight: 500;
}

.secure-label svg {
  color: var(--green);
}

.payment-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.pay-icon-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== HOW IT WORKS ===== */
.hiw-section {
  padding: 32px 16px 40px;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
  position: relative;
}

/* Desktop: horizontal */
.hiw-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 100px;
  max-width: 160px;
  position: relative;
}

.hiw-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--pink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  position: relative;
}

.hiw-step-num {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  background: var(--pink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hiw-arrow {
  color: var(--pink-border);
  font-size: 20px;
  margin: 28px 4px 0;
  flex-shrink: 0;
}

.hiw-step-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hiw-step-desc {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, rgba(255,27,107,0.15) 0%, rgba(123,47,190,0.15) 100%);
  border: 1px solid var(--pink-border);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-avatars {
  display: flex;
}

.cta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  margin-left: -8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-avatar:first-child {
  margin-left: 0;
}

.cta-text h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.cta-text p {
  font-size: 12px;
  color: var(--pink);
  font-weight: 600;
}

/* ===== DESKTOP LAYOUT ===== */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 48px 32px;
    gap: 32px;
    min-height: calc(100vh - var(--nav-h));
  }

  .hero-text {
    padding: 0;
    order: 1;
  }

  .hero-title { font-size: 52px; }

  .hero-image-wrap {
    margin: 0;
    order: 2;
    aspect-ratio: 3/4;
    max-height: 520px;
  }

  .preference-section { padding: 0 32px 24px; }

  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-bar { margin: 0 32px 40px; }
  .plans-section { padding: 0 32px 48px; }
  .secure-section { padding: 24px 32px 48px; }
  .hiw-section { padding: 32px 32px 48px; }
  .cta-banner {
    margin: 0 32px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 48px;
  }

  .hero-title { font-size: 64px; }

  .plans-section, .stats-bar, .secure-section,
  .hiw-section, .cta-banner, .preference-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
  }

  .stats-bar {
    margin-bottom: 40px;
  }
}
