/* =========================================
   ELI10 — Clever Kid's Notebook Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@400;500&display=swap');

:root {
  --yellow: #FFD43B;
  --yellow-light: #FFF3BF;
  --coral: #FF6B6B;
  --coral-light: #FFE3E3;
  --blue: #4DABF7;
  --blue-dark: #1C7ED6;
  --blue-light: #D0EBFF;
  --green: #51CF66;
  --green-light: #D3F9D8;
  --purple: #CC5DE8;
  --purple-light: #F3D9FA;
  --ink: #1A1A2E;
  --ink-light: #495057;
  --paper: #FFFDF7;
  --paper-warm: #FFF9E6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
}

/* Notebook paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 31px,
    #e8e4dc 31px,
    #e8e4dc 32px
  );
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 { font-family: 'Fredoka', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { font-family: 'DM Sans', sans-serif; font-size: 1rem; color: var(--ink); }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================
   LAYOUT
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container--medium { max-width: 900px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

section { padding: 80px 0; }
@media (max-width: 640px) { section { padding: 60px 0; } }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 66px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
  margin-left: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__links a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.15s;
}

.nav__links a:hover, .nav__links a.active { background: var(--yellow-light); }

.nav__cta {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--coral);
  color: white;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 8px 20px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.15s;
  text-decoration: none;
}

.nav__cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
}

@media (max-width: 640px) {
  .nav__links { display: none; }
}

body { padding-top: 64px; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  border: 2px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn--lg { padding: 14px 32px; font-size: 1.1rem; border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.btn--lg:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.btn--md { padding: 10px 24px; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--md:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

.btn--sm { padding: 6px 16px; font-size: 0.85rem; border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); }
.btn--sm:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--coral { background: var(--coral); color: white; }
.btn--blue { background: var(--blue-dark); color: white; }
.btn--green { background: var(--green); color: var(--ink); }
.btn--ghost { background: white; color: var(--ink); }
.btn--ink { background: var(--ink); color: white; }

/* =========================================
   BADGES
   ========================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  text-decoration: none;
}

.badge:hover { text-decoration: none; }

/* =========================================
   CARDS
   ========================================= */
.card {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
}

.card__corner {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
}

.card__emoji { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.card__category { margin-bottom: 10px; }
.card__title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; line-height: 1.3; padding-right: 60px; }
.card__summary { font-size: 0.9rem; color: var(--ink-light); line-height: 1.5; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 100px 0 80px;
  background: var(--paper-warm);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  position: relative;
}

.hero__doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__doodle {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}
.hero__logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(4px 4px 0 rgba(26,26,46,0.12));
}
.hero__content-col {
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 6px 16px;
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0s both;
}

.hero h1 {
  margin-bottom: 16px;
  animation: fadeUp 0.6s ease 0.1s both;
  max-width: 700px;
}

.hero__subtitle {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-light);
  margin-bottom: 40px;
  max-width: 540px;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero__search {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease 0.3s both;
}

.hero__search input {
  flex: 1;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  border: 3px solid var(--ink);
  border-right: none;
  border-radius: 16px 0 0 16px;
  background: white;
  outline: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero__search button {
  padding: 14px 28px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--blue-dark);
  color: white;
  border: 3px solid var(--ink);
  border-radius: 0 16px 16px 0;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: all 0.15s;
}

.hero__search button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeUp 0.6s ease 0.4s both;
}

.hero__tag {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 16px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: all 0.15s;
  text-decoration: none;
  color: var(--ink);
}

.hero__tag:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow-light);
  text-decoration: none;
  color: var(--ink);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   HOW IT WORKS (dark section)
   ========================================= */
.how-it-works {
  background: var(--ink);
  color: white;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.how-it-works h2 { color: var(--yellow); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 28px;
}

.step__num {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 12px;
}

.step h3 { font-size: 1.1rem; color: white; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* =========================================
   CATEGORY TICKER
   ========================================= */
.ticker {
  background: var(--yellow);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 48px;
  color: var(--ink);
}

.ticker__sep { margin-right: 48px; color: var(--ink); opacity: 0.4; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================
   SECTION HEADINGS
   ========================================= */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 { font-size: 1.8rem; }

/* =========================================
   TOPIC PAGE
   ========================================= */
.topic-hero {
  background: var(--paper-warm);
  border-bottom: 3px solid var(--ink);
  padding: 60px 0 48px;
}

.topic-hero__emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
}

.topic-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.topic-hero h1 { margin-bottom: 16px; }

.topic-hero__summary {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-light);
  max-width: 620px;
  margin-bottom: 24px;
}

.reading-level {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.reading-level__dots {
  display: flex;
  gap: 5px;
}

.reading-level__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
}

.reading-level__dot--filled { background: var(--green); }

.reading-level__label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-light);
}

/* Topic body */
.topic-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  padding: 60px 0;
}

@media (max-width: 768px) {
  .topic-layout { grid-template-columns: 1fr; }
}

.topic-body h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.topic-body h2:first-child { margin-top: 0; }

.topic-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--ink);
}

.topic-body strong { font-weight: 700; }
.topic-body em { font-style: italic; }

.topic-body ul, .topic-body ol {
  margin: 0 0 20px 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.analogy-callout {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.analogy-callout p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}

/* Sidebar */
.topic-sidebar__card {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 24px;
}

.topic-sidebar__card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.related-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.1s;
}

.related-item:last-child { border-bottom: none; }
.related-item:hover { color: var(--blue-dark); text-decoration: none; }

.related-item__emoji { font-size: 1.4rem; line-height: 1; }

.related-item__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* =========================================
   CATEGORY PAGE
   ========================================= */
.category-hero {
  padding: 60px 0 40px;
  border-bottom: 3px solid var(--ink);
}

.category-hero__icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
}

/* =========================================
   SEARCH / FILTER BAR
   ========================================= */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: white;
  box-shadow: 2px 2px 0 var(--ink);
  outline: none;
}

.filter-bar select {
  padding: 10px 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: white;
  box-shadow: 2px 2px 0 var(--ink);
  outline: none;
  cursor: pointer;
}

/* =========================================
   SUBMIT PAGE
   ========================================= */
.form-card {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 5px 5px 0 var(--ink);
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-group textarea,
.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  outline: none;
  transition: box-shadow 0.15s;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
  box-shadow: 3px 3px 0 var(--ink);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-hint {
  font-size: 0.83rem;
  color: var(--ink-light);
  margin-top: 6px;
}

.form-error {
  background: var(--coral-light);
  border: 2px solid var(--coral);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #C92A2A;
  margin-bottom: 20px;
}

.success-box {
  background: var(--green-light);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.success-box .emoji { font-size: 3rem; display: block; margin-bottom: 16px; }
.success-box h2 { margin-bottom: 8px; }

/* =========================================
   ABOUT PAGE
   ========================================= */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.rule-card {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 4px 4px 0 var(--ink);
}

.rule-card__num {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--coral);
  margin-bottom: 8px;
}

.rule-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.rule-card p { font-size: 0.9rem; color: var(--ink-light); }

/* =========================================
   ADMIN
   ========================================= */
.admin-nav {
  background: var(--ink);
  padding: 12px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-nav a {
  color: rgba(255,255,255,0.8);
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.admin-nav a:hover, .admin-nav a.active { color: var(--yellow); }
.admin-nav__brand { color: var(--yellow) !important; font-weight: 700; font-size: 1rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}

.admin-table th {
  background: var(--ink);
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 16px;
  text-align: left;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--paper-warm); }

.status-badge {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 2px solid var(--ink);
}

.status-badge--published { background: var(--green-light); color: #2B8A3E; }
.status-badge--draft { background: var(--yellow-light); color: #E67700; }

.char-counter {
  font-size: 0.8rem;
  color: var(--ink-light);
  text-align: right;
  margin-top: 4px;
}

.char-counter.over { color: var(--coral); font-weight: 600; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--ink);
  color: white;
  padding: 48px 0 32px;
  border-top: 3px solid var(--ink);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer__brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--yellow);
  margin-bottom: 8px;
}

.footer__tagline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer__links a {
  color: rgba(255,255,255,0.7);
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer__links a:hover { color: var(--yellow); }

.footer__bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero__logo-col {
    order: -1;
  }
  .hero__logo-img {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.reveal--d1 { transition-delay: 0.05s; }
.reveal--d2 { transition-delay: 0.1s; }
.reveal--d3 { transition-delay: 0.15s; }
.reveal--d4 { transition-delay: 0.2s; }
.reveal--d5 { transition-delay: 0.25s; }
.reveal--d6 { transition-delay: 0.3s; }

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-light);
}
.empty-state .emoji { font-size: 3rem; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
