/* Milestone 3 — site multipage et mode Live */

body.multi-page {
  padding-top: 88px;
}

.page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(42px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7,9,13,.96), rgba(7,9,13,.52)),
    var(--page-hero-image, url("../hero.jpg")) center/cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4.4rem, 10vw, 9rem);
  line-height: .82;
  text-transform: uppercase;
}

.page-hero h1 span {
  color: var(--red-bright);
}

.page-hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d4dae2;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.page-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 110px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.editorial-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent),
    var(--panel);
}

.editorial-card > span {
  color: var(--red-bright);
  font-family: "Barlow Condensed", sans-serif;
  font-size: .75rem;
  letter-spacing: .15em;
}

.editorial-card h2,
.editorial-card h3 {
  margin: 22px 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.editorial-card p {
  color: var(--muted);
  line-height: 1.75;
}

.header-live {
  min-width: 145px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.header-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7d8793;
}

.header-live-dot.online {
  background: #54d691;
  box-shadow: 0 0 14px rgba(84,214,145,.7);
}

.header-live-dot.offline {
  background: #e55361;
  box-shadow: 0 0 14px rgba(229,83,97,.45);
}

.header-live strong,
.header-live small {
  display: block;
  line-height: 1.2;
}

.header-live strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: .73rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.header-live small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .62rem;
}

.live-showcase {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, .5fr);
  gap: 12px;
  margin-top: 34px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(8,11,16,.78);
  backdrop-filter: blur(15px);
}

.live-showcase-main,
.live-showcase-stat {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.live-showcase-main {
  gap: 12px;
}

.live-showcase-stat {
  flex-direction: column;
  justify-content: center;
}

.live-showcase-stat strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
}

.live-showcase-stat small,
.live-showcase-main small {
  color: var(--muted);
}

.news-placeholder,
.team-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 32px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1200px) {
  .header-live {
    display: none;
  }
}

@media (max-width: 850px) {
  body.multi-page {
    padding-top: 74px;
  }

  .page-hero {
    min-height: 440px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .live-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .live-showcase-main {
    grid-column: 1 / -1;
  }
}
