/* ==========================================================================
   IOZITCG brand layer — dark + gold, Poppins.
   The reference build inlines its palette into Tailwind utility classes, so the
   theme is re-pointed class by class here. Palette: data/brand.json
   (captured from https://www.iozitcg.com/).
   ========================================================================== */

/* ---- surfaces ---------------------------------------------------------- */
.bg-surface            { background-color: #0d1f27; }   /* page */
.bg-surface\/85        { background-color: rgba(2, 28, 37, 0.97); } /* sticky header: opaque enough that content never reads through */
.bg-surface-container  { background-color: #17323c; }
.bg-surface-container-low { background-color: #10262f; }
.bg-surface-container-lowest { background-color: #132932; }  /* cards */
.bg-surface-container-lowest\/90 { background-color: rgba(19, 41, 50, 0.9); }
.bg-surface-container-lowest\/80 { background-color: rgba(19, 41, 50, 0.8); }
.bg-outline-variant    { background-color: #1d3d48; }
.bg-outline-variant\/30 { background-color: rgba(255, 255, 255, 0.12); }
.bg-primary\/10        { background-color: rgba(245, 205, 98, 0.12); }
.bg-primary-fixed      { background-color: #dbb75a; }
.bg-ink                { background-color: #021c25; }
.bg-white              { background-color: #ffffff; }

/* ---- text -------------------------------------------------------------- */
.text-on-surface           { color: #ffffff; }
.text-on-surface-variant   { color: rgba(255, 255, 255, 0.78); }
.text-outline              { color: rgba(255, 255, 255, 0.55); }
.text-primary              { color: #f5cd62; }
.text-primary-container    { color: #dbb75a; }
.text-ink                  { color: #ffffff; }
.text-on-ink               { color: #ffffff; }
.text-on-ink-muted         { color: rgba(255, 255, 255, 0.72); }
.text-emerald-700          { color: #6ee7a0; }
.text-emerald-600          { color: #4ade80; }
.text-red-600, .text-red-700 { color: #fca5a5; }

/* ---- borders / hairlines ----------------------------------------------- */
.border-outline          { border-color: rgba(255, 255, 255, 0.4); }
.border-outline-variant  { border-color: rgba(255, 255, 255, 0.16); }
.border-outline-variant\/30 { border-color: rgba(255, 255, 255, 0.12); }
.border-outline-variant\/60 { border-color: rgba(255, 255, 255, 0.2); }
.surface-hairline        { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* ---- product plate stays light (iozi photographs products on white) ----- */
.card > div:first-child,
[class*="holo-ring"] > div:first-child {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* the reference build's holographic ring + foil sheen read as artefacts on a dark
   store: switch them off so product photos sit on a clean white plate */
.holo-ring::after, .foil-sheen::after { display: none !important; animation: none !important; }
.holo-ring, .foil-sheen { animation: none !important; }

/* chips sit on that light plate, so their text stays dark */
.type-chip { color: #0b1a20 !important; }
.set-code {
  color: #0b1a20 !important;
  background: rgba(11, 26, 32, 0.06) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---- typography -------------------------------------------------------- */
html, body { font-family: "Poppins", Arial, Helvetica, sans-serif; }
h1, h2, h3, h4, .font-headline {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  letter-spacing: -0.015em;
}

/* ---- form controls on dark -------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
input::placeholder { color: rgba(255, 255, 255, 0.55); }
table, th, td { border-color: rgba(255, 255, 255, 0.14); }

/* ---- accents ----------------------------------------------------------- */
::selection { background: #f5cd62; color: #021c25; }
a:hover { color: #f5cd62; }

/* ---- components that hard-code the reference blue/orange --------------- */
.card { background-color: #132932; }
.flame-text {
  background: linear-gradient(92deg, #fbbc34 0%, #f5cd62 45%, #dbb75a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-flame {
  background: linear-gradient(92deg, #f5cd62 0%, #dbb75a 100%) !important;
  color: #0b1a20 !important;
  box-shadow: 0 10px 24px -12px rgba(245, 205, 98, 0.45);
}
.btn-flame:hover { filter: brightness(1.05); }
.ember-field { opacity: 0.35; }
.ink-stage { background: radial-gradient(120% 90% at 50% 0%, #12333f 0%, #0d1f27 55%, #021c25 100%); }
.eyebrow { color: #f5cd62; }
.eyebrow-light { color: #f5cd62; }
.eyebrow::before { background: #f5cd62 !important; }
header nav a { white-space: nowrap; }
.footer-jag, footer svg polygon { fill: #021c25; }

/* header: 6 nav items + search + auth must fit from 1024 up */
@media (max-width: 1279px) {
  header a[data-hide-below-xl] { display: none; }
}

/* ---- global fixes reported by T10 (apply to every page) ----------------- */

/* 1. card chips ran into the rounded corner: absolute top-3 had no right edge,
      so the pill's right cap was clipped by the card's overflow:hidden. */
.card > div.top-3 { right: 0.75rem; width: auto; }
.card .type-chip { max-width: 100%; }

/* 2. the set-code pill blurred the product photo behind it into a grey smear */
.set-code {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.88) !important;
}
.card .set-code .truncate {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 3. the jagged divider and the footer band were two different colours */
footer .ink-stage {
  background-color: #021c25;
  background-image: none;
}

/* 4. the white product plate needed a real edge on a dark card */
.card > div:first-child,
[class*="holo-ring"] > div:first-child {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 34px -24px rgba(0, 0, 0, 0.85) !important;
}


/* ---- product cards: one baseline for the bottom rows -------------------
   Titles wrap to one or two lines; without this the price/arrow row sits a
   line higher on short titles, which is what made the rail look ragged. */
.card__title { min-height: 2.7em; }
a[href*="/products/"] > div > .card__title + p { min-height: 1.3em; }
a[href*="/products/"]:has(.card__title) { display: flex; flex-direction: column; }
a[href*="/products/"]:has(.card__title) > div:last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
a[href*="/products/"]:has(.card__title) > div:last-child > div:last-child { margin-top: auto; }
