/* ============================================================
   YoGamezXR Arena — shared components
   ZAS 2026 VR Gaming Tournament

   Campaign furniture that appears on more than one screen: the USSD bar in
   the navigation, the pill CTAs, the giveaways grid and the invite panel.
   Loaded after theme.css and before each page's own <style>, so a page can
   still override a detail locally.

   Contrast, measured against --bg (#1F293B):
     white on --econet-red   4.68:1   (AA)
     --econet-red fill vs bg 3.12:1   (UI boundary)
     --ink on --blue        12.17:1
   ============================================================ */

/* ── USSD bar ────────────────────────────────────────────────
   The single most important call to action on the stand: the short code
   people dial to subscribe. It sits in the top nav on every screen. */
.ussd-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(226,35,26,.16), rgba(62,184,213,.14));
  border: 1px solid rgba(226,35,26,.45);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.ussd-bar:hover { border-color: var(--econet-red-hi); background: linear-gradient(90deg, rgba(226,35,26,.26), rgba(62,184,213,.2)); }
.ussd-bar:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.ussd-code {
  font-family: var(--font);
  font-size: var(--fs-h3);
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: 1px;
  background: var(--econet-red);
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}
.ussd-tagline {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: .6px;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .ussd-bar { gap: 8px; padding: 7px 12px; width: 100%; }
  .ussd-code { font-size: var(--fs-body); padding: 3px 11px; }
  .ussd-tagline { font-size: var(--fs-micro); white-space: normal; text-align: center; }
}

/* ── Pill CTAs ───────────────────────────────────────────────
   One shape, three weights. `a.btn-pill` and `button.btn-pill` render
   identically so a link and an action button sit together in a row. */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-black);
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-pill:active:not(:disabled) { transform: scale(.985); }
.btn-pill:disabled { opacity: .55; cursor: not-allowed; }
.btn-pill:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-pill svg { flex-shrink: 0; }

.btn-red   { background: var(--econet-red); color: #fff; box-shadow: 0 4px 20px rgba(226,35,26,.38); }
.btn-red:hover:not(:disabled)  { background: var(--econet-red-hi); box-shadow: 0 6px 26px rgba(226,35,26,.5); }

.btn-cyan  { background: var(--blue); color: var(--ink); box-shadow: 0 4px 20px rgba(77,217,232,.32); }
.btn-cyan:hover:not(:disabled) { background: #6ee4f1; box-shadow: 0 6px 26px rgba(77,217,232,.45); }

.btn-gold  { background: var(--gold); color: var(--ink); box-shadow: 0 4px 20px rgba(255,213,74,.3); }
.btn-gold:hover:not(:disabled) { background: #ffe07a; }

.btn-ghost { background: transparent; color: var(--text); border: 2px solid rgba(255,255,255,.42); }
.btn-ghost:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }

/* Supporting line under a CTA — e.g. the "or dial *773#" alternative. */
.cta-note {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-label);
  font-weight: var(--fw-med);
  color: var(--text-2);
  text-align: center;
  line-height: 1.5;
}
.cta-note strong { color: var(--gold); font-weight: var(--fw-black); letter-spacing: .5px; }

/* ── Random giveaways ────────────────────────────────────────
   Sits beneath the daily airtime ladder, styled to match it. */
.giveaways {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.giveaway {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,213,74,.28);
}
.giveaway svg { flex-shrink: 0; }
.giveaway span {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1.25;
}

/* ── Invite panel ────────────────────────────────────────────*/
.invite-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  display: block;
  object-fit: contain;
}
.invite-caption {
  font-size: var(--fs-label);
  color: var(--text-body);
  line-height: 1.6;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 12px;
  word-break: break-word;
}
.invite-status {
  display: none;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  text-align: center;
}
.invite-status.ok  { display: block; background: rgba(91,255,61,.12); border: 1px solid rgba(91,255,61,.4); color: var(--green); }
.invite-status.err { display: block; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); color: var(--red); }

/* ── Inline links in body copy ───────────────────────────────*/
.link {
  color: var(--blue);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: #7fe6f2; }

@media (prefers-reduced-motion: reduce) {
  .btn-pill { transition: none; }
}
