/*
 * Session 31 Step 4 — Empty state library
 *
 * Editorial empty states across saves, trips, inbox, perks, and search.
 * Each empty state pairs cinematic illustration or photography with a
 * Cormorant headline (warm, editorial), a Cormorant italic subtitle
 * (considered framing), and an optional gold-underline CTA.
 *
 * The copy library lives in /client/js/empty-states.js. This file is
 * presentation only.
 */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  max-width: 56ch;
  margin: 0 auto;
}

.empty-state__visual {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 5 / 3;
  margin-bottom: 2.5rem;
  background-color: var(--card2, #2A4368);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

/* Cream overlay on dark surfaces, dark overlay on cream — keeps photography
   considered rather than declarative. */
.empty-state__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,10,13,0) 60%, rgba(8,10,13,0.45) 100%);
}

.surface-cream .empty-state__visual::after {
  background: linear-gradient(180deg, rgba(245,240,232,0) 60%, rgba(245,240,232,0.55) 100%);
}

.empty-state__headline {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-weight: 300;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text, #E8E2D5);
  margin-bottom: 1rem;
}

.surface-cream .empty-state__headline {
  color: #1A2B4A;
}

.empty-state__subtitle {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-mid, #B0AEAB);
  margin-bottom: 2rem;
  max-width: 48ch;
}

.surface-cream .empty-state__subtitle {
  color: rgba(26, 43, 74, 0.7);
}

.empty-state__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: baseline;
}

.empty-state__cta {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-family: var(--font-body, 'Jost', sans-serif);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, #C4A052);
  cursor: pointer;
}

.empty-state__cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold, #C4A052);
  transition: width 300ms cubic-bezier(0.0, 0, 0.2, 1);
}

.empty-state__cta:hover::after {
  width: 100%;
}
