/* Base layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #163047;
  background: linear-gradient(180deg, #e6f4ff 0%, #f2fbff 60%, #ffffff 100%);
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  text-align: center;
  padding: 16px 12px 8px;
}

.hero-title {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: 0.05em;
}

.hero-tagline {
  margin: 4px 0 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6c7c90;
}

.hero-text {
  margin: 16px auto 0;
  max-width: 26rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #30465b;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 18px 16px 14px;
  box-shadow: 0 14px 30px rgba(12, 61, 97, 0.08);
  backdrop-filter: blur(4px);
}

.section-accent {
  border-left: 4px solid rgba(255, 230, 154, 0.9);
  padding-left: 20px;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.section-accent:hover {
  border-left-color: #ffd666;
}

.section-accent.active-section {
  border-left-color: #ffcf55;
  background-color: rgba(255, 243, 196, 0.6);
  box-shadow: 0 18px 40px rgba(202, 170, 60, 0.18);
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

/* Outfit cards */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 22px rgba(12, 61, 97, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-show {
  margin: 0;
  font-size: 0.98rem;
}

.card-outfit {
  margin: 0;
  font-size: 0.95rem;
  color: #44596e;
}

/* Valentine’s Week layout */
.valentines-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.valentines-day {
  margin: 0;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a3147;
  background: rgba(255, 216, 224, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 11px 16px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.primary-btn {
  background: #ffe69a;
  color: #3b3010;
  box-shadow: 0 10px 20px rgba(202, 170, 60, 0.35);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: #ffdf7a;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(202, 170, 60, 0.45);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(202, 170, 60, 0.3);
}

/* Browse by Show pills */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 230, 154, 0.9);
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  color: #31455c;
  box-shadow: 0 8px 18px rgba(12, 61, 97, 0.06);
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.pill:hover,
.pill:focus-visible {
  background: #fff3c4;
  border-color: #ffd666;
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(202, 170, 60, 0.3);
}

.pill:active {
  transform: translateY(0);
  box-shadow: 0 7px 16px rgba(202, 170, 60, 0.18);
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: #6a7a8f;
  padding: 4px 10px 0;
}

.footer-handle {
  margin: 0 0 4px;
  font-weight: 600;
}

.footer-note {
  margin: 0;
  line-height: 1.4;
}

/* Love Island UK – All Stars: Browse by Islander */
.person-nav {
  margin-top: 8px;
  margin-bottom: 10px;
}

.person-sections {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.person-section {
  scroll-margin-top: 80px;
}

.person-title {
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #30465b;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  border-left: 4px solid rgba(255, 230, 154, 0.9);
}

.person-placeholder {
  margin: 0;
  font-size: 0.82rem;
  color: #6a7a8f;
}

/* Love Island All Stars group headers */
.islander-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(22, 48, 71, 0.08);
}

.islander-group:first-child {
  margin-top: 0;
  border-top: none;
}

/* Traitors group headers */
.traitor-groups {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.person-group {
  scroll-margin-top: 80px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(22, 48, 71, 0.08);
}

.person-group:first-child {
  margin-top: 0;
  border-top: none;
}

.person-name {
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #30465b;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border-left: 4px solid rgba(255, 230, 154, 0.9);
}

.cast-nav-title {
  margin: 4px 0 4px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #30465b;
}

.cast-nav-help {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: #6a7a8f;
}

.cast-nav {
  margin-bottom: 10px;
}

/* Traitors polish */
.cast-nav.pill-grid {
  gap: 8px;
}

.cast-nav .pill {
  padding-top: 8px;
  padding-bottom: 8px;
}

#the-traitors .person-group {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(22, 48, 71, 0.09);
}

#the-traitors .person-group:first-child {
  margin-top: 0;
  border-top: none;
}

#the-traitors .person-name {
  background: rgba(255, 255, 255, 0.96);
}

/* Amazon affiliate list */
.affiliate-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.affiliate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(22, 48, 71, 0.09);
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.affiliate-row:first-of-type {
  border-top: none;
}

.affiliate-row:hover {
  background-color: rgba(255, 243, 196, 0.4);
  box-shadow: 0 7px 20px rgba(202, 170, 60, 0.14);
}

.affiliate-row-main {
  font-size: 0.86rem;
  color: #30465b;
}

.affiliate-row-sub {
  font-size: 0.8rem;
  color: #6a7a8f;
}

/* Larger screens */
@media (min-width: 768px) {
  .page {
    padding: 32px 24px 40px;
    gap: 32px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .section {
    padding: 20px 20px 16px;
  }

  .valentines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 960px) {
  .valentines-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


