/* =========================================================
   Responsive overrides for SpinChoice
   ========================================================= */

/* ---------- Up to 768px (tablets & phones) ---------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  main {
    padding-top: 4rem;
  }

  .container {
    padding: 0 1.1rem;
  }

  /* Hero spacing & text */
  .hero {
    padding: 2rem 0 2.8rem;
  }

  .hero__grid {
    gap: 2rem;
  }

  .hero__content h1 {
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
  }

  .hero__content p {
    font-size: 0.95rem;
  }

  .inputs-card {
    padding: 1rem 1rem 1.1rem;
  }

  /* Header tweaks */
  .site-header {
    padding: 0.55rem 0;
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.8rem;
    flex-wrap: wrap;
  }

  .logo-image {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .nav {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  /* Wheel area */
  .hero__wheel {
    margin-top: 0.6rem;
    row-gap: 0.7rem;
    align-items: center;
  }

  .hero__wheel .wheel-wrapper,
  .hero__wheel #spinButton,
  .hero__wheel #resultBox {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .wheel-wrapper {
    width: min(360px, 90vw);
  }

  .result {
    font-size: 0.9rem;
  }

  /* Info section */
  .info {
    padding: 2rem 0 2.6rem;
  }

  /* FAQ + metrics */
  .faq-metrics {
    padding: 2.2rem 0 3rem;
  }

  .faq-metrics__grid {
    gap: 1.75rem;
  }

  .faq-metrics__metrics {
    margin-top: 0.2rem;
  }

  .faq-metrics__metrics h2 {
    font-size: 1.4rem;
  }

  .metric-card {
    padding: 0.7rem 0.9rem;
  }

  .metric-value {
    font-size: 1.2rem;
  }

  /* Footer */
  .site-footer .footer__inner {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: center;
    align-items: center;
  }

  .footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: center;
  }
}

/* ---------- Up to 480px (smaller phones) ---------- */
@media (max-width: 480px) {
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 2.4rem;
  }

  .hero__content h1 {
    font-size: 1.45rem;
  }

  .hero__content p {
    font-size: 0.9rem;
  }

  #optionsInput {
    font-size: 0.9rem;
    min-height: 6.5rem;
  }

  .wheel-wrapper {
    width: min(320px, 92vw);
  }

  .hero__wheel #spinButton {
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
  }

  .result {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .faq-metrics__metrics {
    padding: 1.1rem 1.2rem;
  }

  .metric-card {
    padding: 0.6rem 0.75rem;
  }

  .metric-value {
    font-size: 1.1rem;
  }

  /* Legal pages (privacy / terms / etc.) */
  .legal {
    padding: 2.3rem 0 2.8rem;
  }

  .legal__content {
    padding: 1.25rem 1.1rem;
  }

  .legal__header h1 {
    font-size: 1.5rem;
  }
}

/* =========================================================
   SweetAlert2 popup – centering + responsive sizing
   ========================================================= */

/* Force the container to cover viewport & flex-center */
.swal2-container {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Cancel default translate(-50%, -50%) when centered */
.swal2-container.swal2-center > .swal2-popup {
  margin: 0 !important;
  transform: none !important;
}

/* Base popup (desktop & tablet) */
.swal-popup-choice.swal2-popup {
  border-radius: 1rem;
  width: min(420px, 92vw);
  padding: 1.4rem 1.75rem 1.3rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.85);
}

/* Title / text */
.swal-popup-choice .swal2-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.swal-popup-choice .swal2-html-container {
  font-size: 0.97rem;
}

/* Buttons row */
.swal-popup-choice .swal2-actions {
  margin-top: 1rem;
  gap: 0.6rem;
}

/* Buttons */
.swal-popup-choice .swal2-confirm,
.swal-popup-choice .swal2-deny {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 999px;
}

/* ----- Medium/small screens (<= 600px) ----- */
@media (max-width: 600px) {
  .swal-popup-choice.swal2-popup {
    width: min(360px, 94vw);
    padding: 1.2rem 1.3rem 1.1rem;
  }

  .swal-popup-choice .swal2-title {
    font-size: 1.15rem;
  }

  .swal-popup-choice .swal2-html-container {
    font-size: 0.95rem;
  }

  .swal-popup-choice .swal2-confirm,
  .swal-popup-choice .swal2-deny {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
  }
}

/* ----- Extra small phones (<= 400px) ----- */
@media (max-width: 400px) {
  .swal-popup-choice.swal2-popup {
    width: min(300px, 96vw);     /* extra compact */
    padding: 1rem 1.1rem 0.9rem;
  }

  .swal-popup-choice .swal2-title {
    font-size: 1rem;
  }

  .swal-popup-choice .swal2-html-container {
    font-size: 0.9rem;
  }

  .swal-popup-choice .swal2-confirm,
  .swal-popup-choice .swal2-deny {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
