/* components.css
   Shared across every page and every layout variant: buttons, badges, game
   tiles, bonus cards, footer, and the plain utility header used on /app/,
   /login/ and 404 (those pages don't need the home page's structural
   divergence — see scaffold notes). Class names take the site's tq. */

/* ---- eyebrow / brand ---- */
.tq-eyebrow {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--accent-2);
}

.tq-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-1);
}
.tq-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.tq-brand__mark svg { width: 100%; height: 100%; display: block; }
/* app/login/404 use the same shared utility header markup but don't carry
   the inline crown SVG (out of this pass's scope) — keep the old solid
   gradient chip as a fallback so that header doesn't go visually blank. */
.tq-brand__mark:empty {
  background: var(--grad-accent);
  border-radius: var(--r-chip);
}
.tq-brand__word {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-tight);
}

/* ---- buttons ---- */
.tq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: var(--btn-h);
  padding-inline: var(--sp-5);
  border-radius: var(--r-pill);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.tq-btn--sm { height: var(--btn-h-sm); padding-inline: var(--sp-4); }
.tq-btn--lg { height: var(--btn-h-lg); padding-inline: var(--sp-6); font-size: var(--fs-body); }
.tq-btn--primary {
  background: var(--grad-accent);
  color: var(--accent-ink);
  box-shadow: var(--glow-cta);
}
.tq-btn--primary:hover { box-shadow: var(--glow-cta-hover); color: var(--accent-ink); }
.tq-btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-1);
}
.tq-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- navtoggle (burger), shared shape across variants ---- */
.tq-navtoggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.tq-navtoggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-1);
  margin-inline: auto;
}
@media (max-width: 900px) {
  .tq-navtoggle { display: flex; }
}

/* ---- badge ---- */
.tq-badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  background: var(--badge-hot);
  color: var(--badge-hot-ink);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  padding: 2px var(--sp-2);
  border-radius: var(--r-chip);
}

/* ---- game tile ---- */
.tq-games__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 560px) { .tq-games__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tq-games__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .tq-games__grid { grid-template-columns: repeat(6, 1fr); } }

.tq-tile { position: relative; display: block; color: var(--text-1); }
.tq-tile__media {
  aspect-ratio: var(--ar-tile-portrait);
  border-radius: var(--r-card);
  background: var(--grad-surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--inset-hairline);
}
.tq-tile__meta { padding-top: var(--sp-2); }
.tq-tile__name { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.tq-tile__provider { display: block; font-size: var(--fs-xs); color: var(--text-3); }

/* ---- bonus card ---- */
.tq-bonuses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 768px) { .tq-bonuses__grid { grid-template-columns: repeat(3, 1fr); } }

.tq-bonus-card {
  background: var(--grad-surface);
  border-radius: var(--r-hero);
  box-shadow: var(--inset-hairline), var(--shadow-card);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.tq-bonus-card__amount { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-black); color: var(--accent); }
.tq-bonus-card__title { font-size: var(--fs-lg); }
.tq-bonus-card__desc { color: var(--text-2); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.tq-bonus-card .tq-btn { margin-top: auto; align-self: flex-start; }

/* ---- article ---- */
.tq-article__section { padding-block: var(--sp-6); border-top: 1px solid var(--line); }
.tq-article__section:first-child { border-top: 0; }
.tq-article__section h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.tq-article__section p { color: var(--text-2); line-height: var(--lh-body); margin-bottom: var(--sp-3); }
.tq-article__section p:last-child { margin-bottom: 0; }

/* ---- utility header/main used on /app/, /login/, 404 ---- */
.tq-utilhead { border-bottom: 1px solid var(--line); }
.tq-utilhead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}
.tq-utilnav { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.tq-utilnav a { color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.tq-utilnav a:hover, .tq-utilnav a[aria-current="page"] { color: var(--accent); }
.tq-utilmain { padding-block: var(--sp-10) var(--sp-16); max-width: 760px; }
.tq-utilmain h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-4); }
.tq-utilmain__intro { color: var(--text-2); font-size: var(--fs-lg); line-height: var(--lh-body); margin-bottom: var(--sp-6); }
.tq-utilmain .tq-btn { margin-top: var(--sp-6); }

/* ---- footer (shared shape, every variant/page) ---- */
/* .tq-footer is always the direct parent of .footer__cols /
   .footer__disclaimer / .footer__copy — no wrapping .container div, on any
   variant or utility page — so padding-block lives here exactly once. */
.tq-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: var(--sp-16); padding-block: var(--sp-10); }
.tq-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-inline: var(--gutter-mobile);
  max-width: var(--container-max);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .tq-footer__cols { grid-template-columns: repeat(3, 1fr); padding-inline: var(--gutter-desktop); }
}
.tq-footer__col h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-3); margin-bottom: var(--sp-3); }
.tq-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.tq-footer__col a { color: var(--text-2); font-size: var(--fs-sm); }
.tq-footer__col a:hover { color: var(--accent); }
.tq-footer__disclaimer,
.tq-footer__copy {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  margin-top: var(--sp-4);
}
@media (min-width: 768px) {
  .tq-footer__disclaimer, .tq-footer__copy { padding-inline: var(--gutter-desktop); }
}
