/* ============================================================
   CRIMZIN • GTA6 THEME V1.4
   SITEWIDE TEXT CONTRAST + LEGACY COLOR PURGE
   Loads last on every public page.
   ============================================================ */

body[data-crimzin-theme="gta6-v1"] main :is(
  h1,h2,h3,h4,h5,h6,
  .section-title,.section-heading,
  .hero-title,.page-title,
  .card-title,.game-title,.event-title,
  .aboutv3-title,.aboutv3-heading,
  .shopv2-title,
  .recruitment-title,
  .phase2-title,
  .cortex-home-title,.cortex-live-title,.cortex-section-title
){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  background-image:none!important;
  -webkit-background-clip:border-box!important;
  background-clip:border-box!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:0 2px 0 rgba(0,0,0,.30),0 0 20px rgba(255,59,152,.10)!important;
}

/* Card / dynamic titles that were still inheriting old black fills. */
body[data-crimzin-theme="gta6-v1"] main :is(
  .game-tile h2,.game-tile h3,
  .event-card h2,.event-card h3,
  .phase2-card h2,.phase2-card h3,
  .aboutv3-principle h2,.aboutv3-principle h3,
  .aboutv3-card h2,.aboutv3-card h3,
  .shopv2-product h2,.shopv2-product h3,
  .recruitment-card h2,.recruitment-card h3,
  [class*="card"] h2,[class*="card"] h3,
  [class*="tile"] h2,[class*="tile"] h3
){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  background-image:none!important;
  -webkit-background-clip:border-box!important;
  background-clip:border-box!important;
  opacity:1!important;
  filter:none!important;
}

/* Dynamic home/event/game headings */
body[data-crimzin-theme="gta6-v1"] main :is(
  [class*="cortex-home"] h1,[class*="cortex-home"] h2,[class*="cortex-home"] h3,
  [class*="cortex-live"] h1,[class*="cortex-live"] h2,[class*="cortex-live"] h3,
  [class*="cortex-event"] h1,[class*="cortex-event"] h2,[class*="cortex-event"] h3,
  [class*="cortex-game"] h1,[class*="cortex-game"] h2,[class*="cortex-game"] h3,
  [class*="schedule"] h1,[class*="schedule"] h2,[class*="schedule"] h3
){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  background-image:none!important;
  opacity:1!important;
  filter:none!important;
}

/* One GTA6 accent family for labels instead of the old gold/red/brown. */
body[data-crimzin-theme="gta6-v1"] main :is(
  .eyebrow,[class$="-eyebrow"],[class*="-eyebrow "],
  .kicker,[class$="-kicker"],[class*="-kicker "],
  .section-label,.card-label,.meta-label,
  .game-number,.game-search-label,
  .cortex-game-pulse-kicker,
  [class*="category"],[class*="genre"]
){
  color:#ff78b7!important;
  -webkit-text-fill-color:#ff78b7!important;
  background:none!important;
  background-image:none!important;
  opacity:1!important;
  filter:none!important;
}

/* Secondary/status accent */
body[data-crimzin-theme="gta6-v1"] main :is(
  .cortex-game-pulse-status,
  [class*="live-data"],
  [class*="updated"]
){
  color:#52e8ff!important;
  -webkit-text-fill-color:#52e8ff!important;
}

/* Body copy must remain readable but not pure white. */
body[data-crimzin-theme="gta6-v1"] main :is(
  p,.description,.subtitle,.game-description,
  .aboutv3-copy,.aboutv3-hero-copy,
  .shopv2-copy
){
  color:#ddd5e8!important;
  -webkit-text-fill-color:#ddd5e8!important;
  opacity:1!important;
  filter:none!important;
}

/* Preserve intentional GTA6 pink emphasis in the hero/shop. */
body[data-crimzin-theme="gta6-v1"] .gta6-home-hero-title span,
body[data-crimzin-theme="gta6-v1"] .shopv2-hero h1 span{
  color:#ff78b7!important;
  -webkit-text-fill-color:#ff78b7!important;
}

/* Kill any leftover legacy dark/transparent title fill nested in sections. */
body[data-crimzin-theme="gta6-v1"] main section :is(h1,h2,h3,h4) *,
body[data-crimzin-theme="gta6-v1"] main article :is(h1,h2,h3,h4) *{
  opacity:1!important;
  filter:none!important;
}

/* Legacy gold/brown border purge. */
body[data-crimzin-theme="gta6-v1"] main :is(
  .game-tile,.event-card,.phase2-card,
  .aboutv3-principle,.aboutv3-card,
  .shopv2-product,.recruitment-card,
  .cortex-game-pulse-item
){
  border-color:rgba(255,255,255,.12)!important;
}

/* Make sure the common CTA text never goes dark. */
body[data-crimzin-theme="gta6-v1"] :is(
  .button,.btn,[class$="-button"],[class*="-button "],
  .cta,.cta-link
){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-decoration:none!important;
}

/* Nav remains crisp white/cyan. */
body[data-crimzin-theme="gta6-v1"] :is(
  .nav-links a,.site-nav a,.shop-site-nav a,header nav a
){
  color:#f8f3fb!important;
  -webkit-text-fill-color:#f8f3fb!important;
}

body[data-crimzin-theme="gta6-v1"] :is(
  .nav-links a:hover,.site-nav a:hover,.shop-site-nav a:hover,header nav a:hover
){
  color:#52e8ff!important;
  -webkit-text-fill-color:#52e8ff!important;
}
