/* ====== Fan Guide 2026 — components.css ====== */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: .82rem 1.4rem; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(135deg, var(--sky-500), var(--sky-700)); color: #fff; box-shadow: 0 8px 20px rgba(15,116,224,.35); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,116,224,.42); }
.btn--maple { background: linear-gradient(135deg, var(--maple-400), var(--maple-600)); color: #fff; box-shadow: 0 8px 20px rgba(196,15,26,.32); }
.btn--maple:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(196,15,26,.4); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--sky-500); color: var(--sky-700); background: var(--sky-50); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Pills / tags */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .35rem .7rem; border-radius: 999px;
  background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-100);
}
.tag--maple { background: #fff0f0; color: var(--maple-600); border-color: #ffd9da; }

/* Cards */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sky-300); }
.card__media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media--gen { display: grid; place-items: center; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__body h3 { font-size: 1.22rem; }
.card__body h3 a { color: var(--ink); }
.card__body h3 a:hover { color: var(--maple-600); }
.card__meta { font-size: .82rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.card__more { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--sky-700); display: inline-flex; align-items: center; gap: .4rem; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* Generative media backgrounds (no broken images) */
.gen { position: relative; }
.gen--pitch {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 28px, rgba(0,0,0,.05) 28px 56px),
    linear-gradient(140deg, var(--sky-600), var(--sky-900));
}
.gen--maple {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 45%),
    linear-gradient(140deg, var(--maple-400), var(--maple-700));
}
.gen--sky { background: linear-gradient(140deg, var(--sky-300), var(--sky-700)); }
.gen--night {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(31,143,255,.4), transparent 60%),
    linear-gradient(160deg, #0c2b52, var(--sky-900));
}
.gen__icon { width: 64px; height: 64px; color: rgba(255,255,255,.92); filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.gen__label {
  position: absolute; left: 16px; bottom: 14px; color: #fff;
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4); font-size: 1.1rem;
}
.gen__num {
  position: absolute; right: 14px; top: 12px; font-family: var(--font-head);
  font-weight: 800; font-size: 2.4rem; color: rgba(255,255,255,.22); line-height: 1;
}

/* Feature / stat tiles */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon {
  width: 50px; height: 50px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-100);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h4 { margin-bottom: .25rem; }
.feature p { font-size: .96rem; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 22px 14px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem,4vw,2.6rem); color: #fff; line-height: 1; }
.stat__label { font-size: .85rem; color: rgba(255,255,255,.74); margin-top: 8px; }

/* Info / callout box */
.callout {
  border-left: 4px solid var(--maple-500);
  background: linear-gradient(90deg, #fff5f5, transparent 80%);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 28px 0;
}
.callout--sky { border-left-color: var(--sky-500); background: linear-gradient(90deg, var(--sky-50), transparent 80%); }
.callout p:last-child { margin-bottom: 0; }

/* Pretty list with check/flag markers */
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin: .7rem 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 22px; height: 22px;
  border-radius: 7px; background: var(--sky-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f74e0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
  border: 1px solid var(--sky-100);
}

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
table.tbl th, table.tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.tbl thead th { background: var(--paper-3); font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
table.tbl tbody tr:hover { background: var(--sky-50); }
table.tbl td:first-child { font-weight: 700; color: var(--ink); }

/* Group cards (schedule page) */
.group-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.group-card__head { padding: 14px 18px; background: linear-gradient(135deg, var(--sky-600), var(--sky-900)); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.group-card__head h3 { color: #fff; font-size: 1.1rem; }
.group-card ol { list-style: none; padding: 0; margin: 0; }
.group-card li { padding: 11px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .7rem; }
.group-card li:last-child { border-bottom: 0; }
.group-card li:hover { background: var(--sky-50); }
.flag {
  width: 26px; height: 18px; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); background-size: cover;
}

/* Timeline (history longread) */
.timeline { position: relative; margin: 2rem 0; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--sky-500), var(--maple-500)); }
.timeline__item { position: relative; padding: 0 0 26px 0; }
.timeline__item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--sky-500); box-shadow: var(--shadow-sm); }
.timeline__item:nth-child(even)::before { border-color: var(--maple-500); }
.timeline__year { font-family: var(--font-head); font-weight: 800; color: var(--sky-700); font-size: 1.05rem; }

/* Photo with caption */
.figure { margin: 32px 0; }
.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover; }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; padding-left: 4px; border-left: 3px solid var(--sky-300); padding-block: 2px; }

/* Quote */
.pullquote { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem,2.6vw,1.8rem); line-height: 1.3; color: var(--ink); border: 0; margin: 36px 0; padding-left: 22px; border-left: 5px solid var(--maple-500); letter-spacing: -.02em; }

/* Author / TOC aside */
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper-2); margin-bottom: 22px; }
.aside-card h4 { text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--muted); margin-bottom: 12px; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin: .5rem 0; }
.toc a { font-size: .94rem; font-weight: 600; color: var(--ink-soft); }
.toc a:hover { color: var(--sky-700); }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 720px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.cookie.is-visible { transform: translateY(0); }
.cookie p { font-size: .9rem; margin: 0; flex: 1 1 280px; }
.cookie__actions { display: flex; gap: .6rem; }
.cookie .btn { padding: .6rem 1.1rem; font-size: .9rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Section heads */
.sec-head { max-width: 60ch; margin-bottom: 38px; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin: .5rem 0 .6rem; }

/* Mini countdown */
.countdown { display: flex; gap: 14px; flex-wrap: wrap; }
.cd-cell { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 18px; text-align: center; min-width: 84px; }
.cd-cell b { display: block; font-family: var(--font-head); font-size: 2rem; color: #fff; line-height: 1; }
.cd-cell span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); }
