/* ==========================================================================
   HostCS.ro — Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--topbar-h) + var(--header-h) + 72px) 0 88px;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero:not(.hero-media) {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(245, 180, 0, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(245, 180, 0, 0.08), transparent 60%),
    var(--bg);
}

.hero:not(.hero-media)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 90%);
  pointer-events: none;
  animation: grid-drift 14s linear infinite;
}

/* Per-game hero: real key art as background, dark scrim for legibility */
.hero-media {
  background-size: cover;
  background-position: center 20%;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -12px;
  background-image: inherit;
  background-size: cover;
  background-position: inherit;
  filter: blur(4px);
  transform: scale(1.06);
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 6, 8, 0.98) 0%, rgba(6, 6, 8, 0.92) 42%, rgba(6, 6, 8, 0.5) 70%, rgba(6, 6, 8, 0.62) 100%),
    linear-gradient(0deg, rgba(6, 6, 8, 0.95) 0%, transparent 34%);
}

.hero-media.hero-cs16 { background-color: var(--game-cs16-2); }
.hero-media.hero-cs2  { background-color: var(--game-cs2-2); }
.hero-media.hero-csgo { background-color: var(--game-csgo-2); }

.hero-media .hero-inner { max-width: 620px; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 10px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  animation: fade-in-up 0.6s cubic-bezier(.2,.7,.2,1) both;
}

.hero-title { animation: fade-in-up 0.6s 0.08s cubic-bezier(.2,.7,.2,1) both; }
.hero-sub { animation: fade-in-up 0.6s 0.16s cubic-bezier(.2,.7,.2,1) both; }
.hero-cta { animation: fade-in-up 0.6s 0.24s cubic-bezier(.2,.7,.2,1) both; }
.hero-facts, .hero-stats { animation: fade-in-up 0.6s 0.32s cubic-bezier(.2,.7,.2,1) both; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-inner.center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(34px, 5.4vw, 60px);
  text-transform: uppercase;
  line-height: 1.04;
}

.hero-title .accent { color: var(--accent); }

.hero-sub {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-media .hero-sub,
.hero-media .hero-fact {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-inner.center .hero-sub { margin-left: auto; margin-right: auto; }

.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-inner.center .hero-cta { justify-content: center; }

.hero-facts {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.hero-inner.center .hero-facts { justify-content: center; }

.hero-fact {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.hero-fact strong {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 36px;
}

.hero-inner.center .hero-stats {
  grid-template-columns: repeat(4, 1fr);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stat {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.hero-inner.center .hero-stat { text-align: left; }

.hero-stat .num {
  font-size: 27px;
  font-weight: 800;
  color: var(--text);
}

.hero-stat .label {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Corner-bracket frame accent — reused on hero media panels and package art */
.corner-frame { position: relative; }

.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.corner-frame::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.corner-frame::after { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

@media (max-width: 720px) {
  .hero { padding: calc(var(--topbar-h) + var(--header-h) + 44px) 0 56px; }
  .hero-media { min-height: 460px; background-position: 65% center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}
