/* ============================================================
   VIS-03 — Public Homepage Visual Integration
   ============================================================ */

/* Hero ------------------------------------------------------- */
.gc-home-hero__media,
.gc-home-hero__scrim{
  position:absolute;
  inset:0;
}
.gc-home-hero__media{
  z-index:0;
}
.gc-home-hero__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.gc-home-hero__scrim{
  z-index:1;
  background:
    linear-gradient(90deg,rgba(5,8,11,.96) 0%,rgba(5,8,11,.80) 42%,rgba(5,8,11,.30) 72%,rgba(5,8,11,.48) 100%),
    linear-gradient(180deg,rgba(5,8,11,.14),rgba(5,8,11,.64));
}
.gc-home-hero:has(.gc-home-hero__media){
  background:#070a0d;
}
.gc-home-hero:has(.gc-home-hero__media) .gc-home-hero__track{
  opacity:.28;
  z-index:1;
}
.gc-home-hero:has(.gc-home-hero__media) .gc-home-hero__copy{
  text-shadow:0 3px 24px rgba(0,0,0,.38);
}

/* Featured Track -------------------------------------------- */
.gc-home-track__visual.has-media{
  background:#090d11;
}
.gc-home-track__image{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.gc-home-track__scrim{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg,rgba(6,9,12,.18),rgba(6,9,12,.58)),
    linear-gradient(90deg,rgba(6,9,12,.34),transparent 62%);
}
.gc-home-track__visual.has-media .gc-track-label,
.gc-home-track__visual.has-media .gc-track-map{
  z-index:2;
}
.gc-home-track__visual.has-media .gc-track-label{
  color:#eef4f9;
  text-shadow:0 2px 10px rgba(0,0,0,.6);
}
.gc-home-track__visual.has-media .gc-track-map::before{
  background:linear-gradient(90deg,rgba(255,255,255,.12),#d7ecff,rgba(255,255,255,.12));
  box-shadow:0 0 28px rgba(150,210,255,.30),0 2px 10px rgba(0,0,0,.35);
}
.gc-home-track__visual.has-media .gc-track-zone{
  border-color:rgba(210,232,250,.75);
  background:rgba(8,14,20,.74);
  backdrop-filter:blur(5px);
  color:#f4f8fb;
  box-shadow:0 2px 10px rgba(0,0,0,.35);
}

/* Featured Mutants ------------------------------------------ */
.gc-mutant-feature__visual.has-media{
  background:#090d11;
}
.gc-mutant-feature__visual.has-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.gc-mutant-feature__scrim{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,transparent 48%,rgba(6,9,12,.68)),
    linear-gradient(90deg,rgba(5,8,11,.12),transparent 55%);
  pointer-events:none;
}
.gc-mutant-feature:has(.gc-mutant-feature__visual.has-media){
  transition:transform .22s ease,border-color .22s ease;
}
.gc-mutant-feature:has(.gc-mutant-feature__visual.has-media):hover{
  transform:translateY(-3px);
  border-color:#3b454f;
}

/* World ------------------------------------------------------ */
.gc-world-grid.has-media{
  grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);
}
.gc-world-visual{
  position:relative;
  min-height:440px;
  overflow:hidden;
  border:1px solid var(--gc-line);
  border-radius:var(--gc-radius-lg);
  background:#090d11;
}
.gc-world-visual img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.gc-world-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 56%,rgba(5,8,11,.68));
  pointer-events:none;
}
.gc-world-visual__label{
  position:absolute;
  z-index:2;
  left:1rem;
  bottom:1rem;
  color:#dce3e9;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.11em;
  text-shadow:0 2px 10px rgba(0,0,0,.55);
}

/* Ensure the homepage still works perfectly without media. */
.gc-home-hero__media[hidden],
.gc-world-visual[hidden]{
  display:none;
}

@media(max-width:900px){
  .gc-home-hero__scrim{
    background:
      linear-gradient(90deg,rgba(5,8,11,.94),rgba(5,8,11,.68)),
      linear-gradient(180deg,rgba(5,8,11,.15),rgba(5,8,11,.72));
  }
  .gc-world-grid.has-media{
    grid-template-columns:1fr;
  }
  .gc-world-visual{
    min-height:360px;
  }
}

@media(max-width:600px){
  .gc-home-hero__media img{
    object-position:center;
  }
  .gc-home-track__visual.has-media .gc-track-map{
    opacity:.92;
  }
  .gc-mutant-feature__visual.has-media{
    height:300px;
  }
  .gc-world-visual{
    min-height:300px;
  }
}

@media(prefers-reduced-motion:reduce){
  .gc-mutant-feature:has(.gc-mutant-feature__visual.has-media){
    transition:none;
  }
  .gc-mutant-feature:has(.gc-mutant-feature__visual.has-media):hover{
    transform:none;
  }
}
