/*
Theme Name: GiantLive Blueprint
Theme URI: https://giantlive.fr/
Author: GiantLive
Description: Canevas WordPress réutilisable pour les sites de webcast GiantLive.
Version: 0.1.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: giantlive-blueprint
*/

:root {
  --gl-bg: #070814;
  --gl-panel: #101225;
  --gl-panel-soft: rgba(255, 255, 255, 0.07);
  --gl-text: #f8f9ff;
  --gl-muted: #adb3ca;
  --gl-accent: #7c5cff;
  --gl-accent-2: #20d8ff;
  --gl-border: rgba(255, 255, 255, 0.12);
  --gl-radius: 24px;
  --gl-max: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--gl-text);
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--gl-accent-2) 20%, transparent), transparent 30%),
    radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--gl-accent) 24%, transparent), transparent 34%),
    linear-gradient(145deg, #050611 0%, var(--gl-bg) 48%, #0b0c1e 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

body::after {
  width: 48vw;
  height: 48vw;
  top: 45vh;
  right: -25vw;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.012);
}

a { color: inherit; }
.gl-shell { width: min(var(--gl-max), calc(100% - 64px)); margin: 0 auto; }
.gl-header { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; }
.gl-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.gl-mark { width: 38px; height: 38px; filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--gl-accent) 36%, transparent)); }
.gl-wordmark { display: grid; line-height: 1; }
.gl-wordmark strong { font-size: 15px; letter-spacing: .19em; }
.gl-wordmark span { margin-top: 6px; color: var(--gl-muted); font-size: 10px; font-weight: 700; letter-spacing: .26em; }
.gl-status { display: inline-flex; align-items: center; gap: 9px; color: var(--gl-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gl-status::before { width: 8px; height: 8px; border-radius: 50%; background: #56f7a7; box-shadow: 0 0 20px #56f7a7; content: ""; }

.gl-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; padding: 54px 0 58px; }
.gl-eyebrow { margin: 0 0 20px; color: var(--gl-accent-2); font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.gl-hero h1 { max-width: 980px; margin: 0; font-size: clamp(52px, 7vw, 110px); line-height: .92; letter-spacing: -.06em; }
.gl-hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.gl-lead { max-width: 720px; margin: 28px 0 0; color: var(--gl-muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.55; }
.gl-badge { min-width: 164px; padding: 18px 20px; border: 1px solid var(--gl-border); border-radius: 18px; background: rgba(255,255,255,.045); backdrop-filter: blur(18px); }
.gl-badge span { display: block; color: var(--gl-muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.gl-badge strong { display: block; margin-top: 10px; font-size: 18px; }

.gl-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 430px); gap: 22px; align-items: stretch; }
.gl-card { overflow: hidden; border: 1px solid var(--gl-border); border-radius: var(--gl-radius); background: rgba(16,18,37,.78); box-shadow: 0 30px 100px rgba(0,0,0,.28); backdrop-filter: blur(22px); }
.gl-player-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #020207; }
.gl-player-frame iframe { width: 100%; height: 100%; border: 0; }
.gl-player-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(124,92,255,.18), transparent 44%), #020207; }
.gl-player-empty svg { width: 70px; height: 70px; opacity: .88; }
.gl-player-empty strong { display: block; margin-top: 20px; font-size: 20px; }
.gl-player-empty span { display: block; margin-top: 8px; color: var(--gl-muted); font-size: 13px; }
.gl-player-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 24px; }
.gl-player-meta h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.gl-player-meta p { margin: 7px 0 0; color: var(--gl-muted); font-size: 13px; }
.gl-live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(86,247,167,.24); border-radius: 999px; color: #86ffc0; background: rgba(86,247,167,.08); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.gl-live-pill::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }

.gl-qa { display: flex; min-height: 100%; flex-direction: column; background: #fff; color: #101225; }
.gl-qa-head { padding: 28px 28px 18px; }
.gl-qa-kicker { color: #7557ff; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.gl-qa h2 { margin: 9px 0 7px; font-size: 30px; letter-spacing: -.04em; }
.gl-qa p { margin: 0; color: #697087; font-size: 14px; line-height: 1.5; }
.gl-qa-frame { flex: 1; min-height: 390px; border-top: 1px solid #e8e9f0; }
.gl-qa-frame iframe { width: 100%; height: 100%; min-height: 390px; border: 0; background: #fff; }
.gl-module-empty { display: grid; min-height: 390px; place-items: center; padding: 32px; text-align: center; }
.gl-module-empty b { display: block; font-size: 18px; }
.gl-module-empty span { display: block; margin-top: 8px; color: #777e92; line-height: 1.5; }

.gl-footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px 0 44px; color: #7f859b; font-size: 12px; }
.gl-footer strong { color: #dfe2ef; }

@media (max-width: 980px) {
  .gl-shell { width: min(100% - 36px, var(--gl-max)); }
  .gl-hero { grid-template-columns: 1fr; padding: 30px 0 42px; }
  .gl-badge { width: fit-content; }
  .gl-live-grid { grid-template-columns: 1fr; }
  .gl-qa-frame, .gl-qa-frame iframe, .gl-module-empty { min-height: 430px; }
}

@media (max-width: 620px) {
  .gl-shell { width: min(100% - 24px, var(--gl-max)); }
  .gl-header { padding: 20px 0; }
  .gl-status { display: none; }
  .gl-hero { gap: 26px; padding: 30px 0 34px; }
  .gl-hero h1 { font-size: clamp(44px, 15vw, 68px); }
  .gl-lead { margin-top: 20px; font-size: 17px; }
  .gl-player-meta { align-items: flex-start; flex-direction: column; }
  .gl-qa-head { padding: 24px 22px 16px; }
  .gl-footer { flex-direction: column; }
}
