/* components.css — buttons, cards, badges, banners */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--ff-display); font-weight: 600; font-size: .96rem;
  padding: 14px 24px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px var(--red); }
.btn-primary:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); }

/* Badge / chip */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .76rem; font-weight: 600; font-family: var(--ff-display);
  padding: 6px 13px; border-radius: 999px; letter-spacing: .04em;
  background: rgba(26,54,184,.1); color: var(--blue);
}
.chip.red { background: rgba(214,35,59,.1); color: var(--red); }
.chip.ink { background: var(--ink); color: #fff; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { height: 168px; position: relative; overflow: hidden; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--red); }
.card-body p { font-size: .96rem; color: var(--muted); }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); padding-top: 6px; }
.card-link { font-family: var(--ff-display); font-weight: 600; font-size: .9rem; color: var(--red); display: inline-flex; gap: .4em; }
.card-link:hover { gap: .7em; color: var(--red-deep); }

/* Generated visuals (no broken images) */
.viz { position: absolute; inset: 0; }
.viz-pitch { background:
  repeating-linear-gradient(90deg, #1f8a4c 0 26px, #1a7a43 26px 52px);
}
.viz-checker { background:
  repeating-conic-gradient(var(--red) 0 25%, #fff 0 50%) 0 0/40px 40px;
}
.viz-blue { background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright)); }
.viz-red { background: linear-gradient(135deg, var(--red-deep), var(--red)); }
.viz-mix { background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 45%, var(--red) 100%); }
.viz-grain::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 22% 30%, rgba(255,255,255,.28), transparent 38%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,.16), transparent 40%);
}
.viz-num {
  position: absolute; right: 14px; bottom: -16px; font-family: var(--ff-display);
  font-size: 6rem; font-weight: 700; color: rgba(255,255,255,.16); line-height: 1;
}

/* Cookie banner */
.cookie {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 200;
  max-width: 560px; margin-inline: auto;
  background: var(--ink); color: #e8eafc; border-radius: var(--r-md);
  padding: 20px 22px; box-shadow: var(--shadow);
  display: none; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.cookie.show { display: flex; animation: cookieUp .4s ease; }
@keyframes cookieUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie p { color: #c3c9ee; font-size: .9rem; flex: 1 1 280px; margin: 0; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie .btn { padding: 10px 18px; font-size: .85rem; }
.cookie .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cookie .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Pill list / facts */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.fact b { font-family: var(--ff-display); font-size: 2.1rem; color: var(--blue); display: block; line-height: 1; }
.fact span { font-size: .86rem; color: var(--muted); display: block; margin-top: 8px; }

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

/* Real photos */
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .viz-num { z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,16,36,.05) 0%, rgba(12,16,36,.45) 100%);
}

.figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero photo background under dark scrim */
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-visual.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(13,27,110,.55) 0%, rgba(12,16,36,.65) 100%);
}
.hero-visual .pin, .hero-visual .label { z-index: 2; }
