/* 30th Birthday Invitation — page-specific styles */

/* Max-width bump for card breathing room */
body.long-form main {
  max-width: 600px;
}

/* ── Hero section ── */
.hero {
  text-align: center;
  position: relative;
  padding: 2rem 0 1.5rem;
  overflow: hidden;
}

.hero-number {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.hero h1 {
  position: relative;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--font-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.hero-date {
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ── Accent line ── */
.accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  border: none;
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* ── Welcome paragraphs ── */
.welcome {
  text-align: center;
  font-style: italic;
  color: var(--font-muted);
}

/* ── Info bar ── */
.info-bar {
  display: flex;
  gap: 1px;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2rem;
}

.info-bar .info-item {
  flex: 1;
  background: var(--element-bg);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.info-bar .info-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.info-bar .info-value {
  font-size: 1.05rem;
}

.info-bar .info-detail {
  font-size: 0.9rem;
  color: var(--font-muted);
  margin-top: 0.3rem;
}

/* ── Card sections ── */
.card {
  background: var(--element-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid transparent;
  transition: border-color 0.25s;
}

.card:hover {
  border-color: var(--element-bg-pop);
}

.card h2 {
  margin-bottom: 0.75rem;
}

/* ── Vertical timeline ── */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  z-index: 1;
}

/* Reset shared styles for schedule inside timeline */
.timeline .schedule dt {
  margin-top: 0;
}

.timeline .schedule dd {
  padding-left: 0;
  border-left: none;
}

/* ── Game cards ── */
.example-games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}

.example-games li {
  margin-bottom: 0;
}

.example-games li::before {
  display: none;
}

.game-card {
  display: block;
  background: var(--element-bg-pop);
  border-radius: 8px;
  padding: 1.25rem;
  height: 100%;
  border: 1px solid transparent;
  transition: transform 0.2s, border-color 0.25s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card-title {
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.game-card-desc {
  font-size: 0.9rem;
  color: var(--font-muted);
  line-height: 1.5;
}

/* ── Back link footer ── */
.back-link {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--element-bg-pop);
}

/* ── Entrance animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.accent-line,
.welcome,
.info-bar,
.card,
.back-link {
  animation: fadeInUp 0.6s ease both;
}

.hero             { animation-delay: 0s; }
.accent-line      { animation-delay: 0.08s; }
.welcome:first-of-type  { animation-delay: 0.12s; }
.welcome:nth-of-type(2) { animation-delay: 0.16s; }
.info-bar         { animation-delay: 0.2s; }
.card:nth-of-type(1) { animation-delay: 0.28s; }
.card:nth-of-type(2) { animation-delay: 0.36s; }
.card:nth-of-type(3) { animation-delay: 0.44s; }
.card:nth-of-type(4) { animation-delay: 0.52s; }
.back-link        { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .hero,
  .accent-line,
  .welcome,
  .info-bar,
  .card,
  .back-link {
    animation: none;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .info-bar {
    flex-direction: column;
  }

  .example-games {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }
}
