@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --bg-1: #f6efe3;
  --bg-2: #d6ecf5;
  --bg-3: #f7d9cd;
  --panel: rgba(255, 252, 247, 0.78);
  --panel-strong: rgba(255, 252, 247, 0.92);
  --ink: #1d2433;
  --muted: #5f6777;
  --line: rgba(29, 36, 51, 0.12);
  --accent: #0d7c66;
  --accent-strong: #075748;
  --danger: #a22020;
  --shadow: 0 20px 70px rgba(56, 72, 98, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

.aurora-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(13, 124, 102, 0.18), transparent 22%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.shell-narrow {
  width: min(640px, calc(100% - 32px));
}

.landing-shell {
  display: grid;
  min-height: 100vh;
  align-items: center;
}

.card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}

.hero-card {
  padding: 34px 30px;
}

.landing-card {
  padding: 48px 42px;
  text-align: center;
}

.landing-title {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.landing-subtitle {
  margin: 0 auto 28px;
  max-width: 28ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.landing-cta {
  display: inline-flex;
  justify-content: center;
  min-width: 220px;
}

.topbar-card,
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.compact-title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.lede {
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.6;
}

.stack-form {
  display: grid;
  gap: 22px;
}

.button-row {
  display: flex;
  gap: 12px;
}

.status-result {
  margin: 10px 0 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 124, 102, 0.1);
  color: var(--accent-strong);
  font-weight: 600;
}

.status-pill.is-sold-out {
  background: rgba(162, 32, 32, 0.12);
  color: var(--danger);
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-section-label {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.autocomplete-field {
  display: grid;
  gap: 8px;
  position: relative;
}

.autocomplete-shell {
  position: relative;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
}

input:focus {
  outline: 2px solid rgba(13, 124, 102, 0.18);
  border-color: rgba(13, 124, 102, 0.55);
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: 0 16px 40px rgba(56, 72, 98, 0.16);
  max-height: 280px;
  overflow-y: auto;
}

.autocomplete-list[hidden] {
  display: none;
}

.autocomplete-option {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.autocomplete-option:hover {
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.12), rgba(7, 87, 72, 0.08));
  color: var(--accent-strong);
}

.primary-button,
.ghost-button,
.ghost-link {
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  padding: 14px 18px;
  cursor: pointer;
}

.ghost-button,
.ghost-link {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  padding: 12px 16px;
  cursor: pointer;
}

.primary-button:hover,
.ghost-button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.section-heading {
  display: grid;
  gap: 6px;
}

.section-subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.3;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.hobby-pill {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.hobby-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hobby-pill span {
  margin: 0;
  width: 100%;
  padding: 16px 14px;
  text-align: center;
  font-weight: 500;
}

.hobby-pill input:checked + span {
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.18), rgba(7, 87, 72, 0.12));
  color: var(--accent-strong);
}

.status-banner {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
}

.events-grid {
  display: grid;
  gap: 18px;
}

.events-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.hobby-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.hobby-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.hobby-tab:hover {
  transform: translateY(-1px);
}

.hobby-tab.is-active {
  border-color: rgba(13, 124, 102, 0.32);
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.16), rgba(7, 87, 72, 0.08));
  color: var(--accent-strong);
}

.hobby-tab.has-error {
  border-color: rgba(162, 32, 32, 0.24);
  color: var(--danger);
}

.events-panel {
  min-width: 0;
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.day-tab {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 14px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.day-tab strong,
.day-tab small {
  display: block;
}

.day-tab small {
  color: var(--muted);
}

.day-tab.is-active {
  border-color: rgba(13, 124, 102, 0.32);
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.16), rgba(7, 87, 72, 0.08));
  color: var(--accent-strong);
}

.day-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  padding: 18px;
}

.day-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hobby-section {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hobby-section header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hobby-header-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.week-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.week-button {
  min-width: 48px;
  padding: 10px 0;
  font-size: 1.1rem;
  line-height: 1;
}

.week-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

.event-card.is-sold-out {
  opacity: 0.58;
  filter: grayscale(0.45);
}

.event-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(29, 36, 51, 0.06);
}

.event-image-placeholder {
  background:
    linear-gradient(135deg, rgba(13, 124, 102, 0.08), rgba(7, 87, 72, 0.12)),
    rgba(29, 36, 51, 0.04);
}

.event-card-body {
  min-width: 0;
}

.event-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.meta-line {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.5;
}

.event-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.event-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
}

.error-text {
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
}

@media (max-width: 720px) {
  .topbar-card,
  .section-heading-row,
  .hobby-section header {
    align-items: start;
    flex-direction: column;
  }

  .hobby-header-actions {
    justify-items: start;
  }

  .events-layout {
    grid-template-columns: 1fr;
  }

  .hobby-tabs {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .day-tabs {
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .day-panel-header {
    align-items: start;
    flex-direction: column;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
  }

  .ghost-link,
  .ghost-button,
  .primary-button {
    width: 100%;
    text-align: center;
  }

  .button-row {
    flex-direction: column;
  }
}
