/* ============================================================
   HOME PAGE — Potluckio!
   ============================================================ */

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
  background: var(--gradient-hero);
  overflow: hidden;
}

/* Decorative gradient orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero::before {
  width: 400px;
  height: 400px;
  background: rgba(255,107,53,0.3);
  top: -100px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  width: 300px;
  height: 300px;
  background: rgba(13,148,136,0.25);
  bottom: -60px;
  left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255,107,53,0.15);
}

.hero__badge i {
  font-size: 10px;
}

.hero__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.hero__title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

/* Floating food emojis decoration */
.hero__decor {
  position: absolute;
  font-size: 32px;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero__decor:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.hero__decor:nth-child(2) { top: 25%; right: 12%; animation-delay: 1s; font-size: 28px; }
.hero__decor:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; font-size: 24px; }
.hero__decor:nth-child(4) { bottom: 30%; right: 8%; animation-delay: 0.5s; }

/* ── Action Cards ─────────────────────────────────────────── */
.actions {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 960px;
  margin: 0 auto;
}

.actions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.action-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-base);
  overflow: hidden;
  border: none;
}

.action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.action-card:hover {
  transform: translateY(-6px);
}

.action-card--host {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.action-card--host:hover {
  box-shadow: 0 20px 40px rgba(255,107,53,0.35);
}

.action-card--join {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-secondary);
}

.action-card--join:hover {
  box-shadow: 0 20px 40px rgba(13,148,136,0.35);
}

.action-card__icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.action-card__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.action-card__desc {
  opacity: 0.85;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.action-card .btn {
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-card .btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Join input group */
.join-group {
  display: flex;
  gap: var(--space-sm);
  width: 100%;
  max-width: 340px;
  position: relative;
  z-index: 2;
}

.join-group .form-input {
  background: rgba(255,255,255,0.95);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  flex: 1;
}

.join-group .form-input:focus {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.join-group .btn {
  flex-shrink: 0;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works {
  padding: var(--space-4xl) var(--space-xl);
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.how-it-works__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.how-it-works__subtitle {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-lg);
  position: relative;
}

.step:nth-child(1) .step__number {
  background: rgba(255,107,53,0.1);
  color: var(--color-primary);
}

.step:nth-child(2) .step__number {
  background: rgba(13,148,136,0.1);
  color: var(--color-secondary);
}

.step:nth-child(3) .step__number {
  background: rgba(245,158,11,0.1);
  color: var(--color-accent);
}

.step__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Connector lines between steps */
.steps::before,
.steps::after {
  display: none; /* Hide on mobile, shown on desktop via pseudo */
}

/* ── Stats / Social Proof (optional) ──────────────────────── */
.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 0 auto;
  max-width: 800px;
}

.stat {
  text-align: center;
}

.stat__value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .actions__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .stats {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .hero__decor { display: none; }
}
