/* =========================================================
   Inspirations Page — App-like layout (based on Deals page)
   ========================================================= */

/* Shell + page background */
body[data-page-kind="inspiration"] {
  background: #f6f8fb;
}

/* Remove generic section padding on Inspirations page */
body[data-page-kind="inspiration"] #mainContent.section {
  padding-top: 0;
  margin-top: 0;
}

/* HERO SECTION (blue band, like Deals) */
body[data-page-kind="inspiration"] .insp-hero {
  background: #025fbc;
  color: #ffffff;
}

body[data-page-kind="inspiration"] p.eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: #d9e7e9;
}

body[data-page-kind="inspiration"] h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 4px;
}

body[data-page-kind="inspiration"] p.subtitle {
  font-size: 0.9rem;
  opacity: 0.92;
  margin: 10px 0 12px;
}

body[data-page-kind="inspiration"] .insp-hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 50px 32px 40px;
  display: flex;
  align-items: flex-start;
}

body[data-page-kind="inspiration"] .hero-copy {
  position: relative;
}

/* Main wrap below hero */
body[data-page-kind="inspiration"] .insp-shell .insp-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 50px 32px 72px;
}

/* Make the header spacer visually blend into the hero */
body[data-page-kind="inspiration"] .header-spacer {
  background: #025fbc;
}

/* A11y helper */
body[data-page-kind="inspiration"] .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   HERO: Randomize + filters + search
========================================================= */

/* Shared button style (Randomize, Search, Pager) */
body[data-page-kind="inspiration"] .btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #0f172a;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  font-family: 'Poppins', sans-serif;
}

body[data-page-kind="inspiration"] .btn:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* Filters row under title (chips) */
body[data-page-kind="inspiration"] .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Chips (tags/themes) */
body[data-page-kind="inspiration"] .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  background-color: rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.3);
  color: #e0f2fe;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  font-family: 'Poppins', sans-serif;
}

body[data-page-kind="inspiration"] .chip:hover {
  background-color: rgba(15, 23, 42, 0.25);
  border-color: rgba(15, 23, 42, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

body[data-page-kind="inspiration"] .chip.is-active,
body[data-page-kind="inspiration"] .chip[aria-pressed="true"] {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* Search bar (sits on the blue hero, under chips) */
body[data-page-kind="inspiration"] .searchbar {
  margin-top: 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  padding: 8px 0 10px;
}

body[data-page-kind="inspiration"] .searchbar input[type="search"] {
  flex: 1 1 auto;
  min-width: 220px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

body[data-page-kind="inspiration"] .searchbar input::placeholder {
  color: #9ca3af;
}

body[data-page-kind="inspiration"] #btnSearch {
  border-radius: 999px;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #ffffff;
  color: #025fbc;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

body[data-page-kind="inspiration"] #btnSearch:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.32);
}

/* =========================================================
   RESULTS SHELL (under hero)
========================================================= */

body[data-page-kind="inspiration"] #results {
  margin-top: 32px;
}

/* Toolbar ("Inspiration gallery / Showing X themes") */
body[data-page-kind="inspiration"] .insp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: #0f172a;
}

body[data-page-kind="inspiration"] .insp-toolbar-title {
  font-size: 16px;
  font-weight: 600;
}

body[data-page-kind="inspiration"] .insp-results-count {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

/* =========================================================
   MOBILE TWEAKS
========================================================= */

@media (max-width: 768px) {
  /* Kill sideways scrolling on this page */
  body[data-page-kind="inspiration"] {
    overflow-x: hidden;
  }

  /* Search row: fully fluid */
  body[data-page-kind="inspiration"] .searchbar {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
  }

  body[data-page-kind="inspiration"] .searchbar input[type="search"] {
    width: 100%;
    min-width: 0;
  }

  /* Chips: horizontal scroll like deals */
  body[data-page-kind="inspiration"] .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-right: 4px;
  }

  body[data-page-kind="inspiration"] .filters::-webkit-scrollbar {
    display: none;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  body[data-page-kind="inspiration"] h1 {
    font-size: 1.35rem;
  }

  body[data-page-kind="inspiration"] .searchbar input[type="search"],
  body[data-page-kind="inspiration"] #btnSearch {
    font-size: 0.83rem;
  }
}

/* =========================================================
   Mobile Randomize FAB (bottom-right)
========================================================= */

body[data-page-kind="inspiration"] .insp-random-fab {
  position: fixed;
  right: 18px;
  bottom: 84px; /* above bottom nav */
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 0, #38bdf8, #020617);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.55);
  z-index: 60;
  cursor: pointer;
}

body[data-page-kind="inspiration"] .insp-random-icon {
  font-size: 26px;
  line-height: 1;
  transform: rotate(-12deg);
}

body[data-page-kind="inspiration"] .insp-random-fab:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

body[data-page-kind="inspiration"] .insp-random-fab:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.45);
}

/* Hide FAB on tablet/desktop; hero button handles random there */
@media (min-width: 768px) {
  body[data-page-kind="inspiration"] .insp-random-fab {
    display: none;
  }
}

/* Hide hero Randomize button text on very small widths if needed */
@media (max-width: 767px) {
  body[data-page-kind="inspiration"] #btnSurprise {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body[data-page-kind="inspiration"] .card,
  body[data-page-kind="inspiration"] .btn {
    transition: none;
  }
}
