/**
 * ============================================================
 *  layout.css — Page Layout & Container Structure
 * ============================================================
 *  Defines the overall page grid, section containers,
 *  and responsive breakpoints.
 * ============================================================
 */

/* ── Main App Wrapper ─────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decorative background orbs */
#app::before,
#app::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

#app::before {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -150px;
  right: -150px;
}

#app::after {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  bottom: -100px;
  left: -100px;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ── Section spacing ──────────────────────────────────────── */
.section {
  padding: var(--space-2xl) 0;
}

/* ── Header ───────────────────────────────────────────────── */
#header-container {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  text-align: center;
}

/* ── Form Section ─────────────────────────────────────────── */
#form-container {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-2xl);
}

/* ── Results Section ──────────────────────────────────────── */
#results-container {
  padding-bottom: var(--space-3xl);
}

/* ── Footer ───────────────────────────────────────────────── */
#footer-container {
  margin-top: auto;
  padding: var(--space-xl) 0;
  padding-bottom: 6rem; /* clearance for fixed bottom dock */
  text-align: center;
  border-top: 1px solid var(--color-surface-border);
  position: relative;
  z-index: 1;
}

/* ── Try New Section ──────────────────────────────────────── */
#trynew-slot {
  padding-bottom: var(--space-xl);
}

/* ── Results Grid (2-column on desktop) ───────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 640px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }

  #header-container {
    padding-top: 5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  #header-container {
    padding-top: var(--space-2xl);
  }

  .header__title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  /* Dock: smaller on mobile */
  .dock {
    bottom: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
  }

  .dock__item {
    width: 40px;
    height: 40px;
  }

  .dock__icon {
    font-size: 1.15rem;
  }

  /* Stack trynew nicely */
  .trynew-card {
    padding: var(--space-2xl) var(--space-md);
  }
}
