/* ============================================================
   GeekMythos — theme.css
   Dark cinematic brand styling. Loaded after Astra so these win.
   Palette: red #C8102E, blue #1F4EA1, bg #0D0D0D, surface #1A1A1A,
   surface-2 #242424, text #FFFFFF / #B0B0B0. Only these colors + rgba
   variants are used (a build hook enforces it).
   Fonts: Oswald (display headings) + Archivo (body — chosen over Inter
   for more poster/comic character).

   Shape system (keep consistent):
     - interactive (buttons, inputs) = 50px pill
     - containers (cards, bubble)     = 16px radius
   Motion: ease-out curves only (no bounce/elastic); 150-400ms.
   ============================================================ */

:root {
  /* Type scale */
  --gm-step-0: 0.875rem;
  --gm-step-1: 1rem;
  --gm-step-2: 1.25rem;
  --gm-step-3: clamp(1.75rem, 3.5vw, 2.5rem);   /* section h2 */
  --gm-step-hero: clamp(2.6rem, 7vw, 6rem);     /* hero h1 */
  /* Spacing rhythm */
  --gm-space-section: clamp(72px, 10vw, 132px);
  /* Shared easing */
  --gm-ease: cubic-bezier(0.23, 1, 0.32, 1);    /* ease-out-quint-ish */
  --gm-radius-card: 16px;
}

/* ---------- Base ---------- */
body.geekmythos {
  background-color: #0D0D0D;
  color: #FFFFFF;
  font-family: 'Archivo', sans-serif;
  margin: 0;
}

.geekmythos h1, .geekmythos h2, .geekmythos h3,
.geekmythos h4, .geekmythos h5, .geekmythos h6 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin: 0 0 0.5em;
}

.geekmythos a { color: #C8102E; text-decoration: none; }

.gm-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.gm-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* Force white text so Astra's global link color can never override it. */
  color: #FFFFFF !important;
  transition: transform 0.16s var(--gm-ease), filter 0.15s ease, box-shadow 0.2s var(--gm-ease);
}
.gm-btn:active { transform: translateY(0) scale(0.97); filter: brightness(0.96); }
.gm-btn-red { background-color: #C8102E; color: #FFFFFF !important; box-shadow: 0 8px 20px rgba(200,16,46,0.30); }
.gm-btn-outline { background: transparent; border: 2px solid #C8102E; color: #FFFFFF !important; }
.gm-btn-blue { background-color: #1F4EA1; color: #FFFFFF !important; box-shadow: 0 8px 20px rgba(31,78,161,0.30); }

@media (hover: hover) and (pointer: fine) {
  .gm-btn:hover { transform: translateY(-2px); }
  /* Red buttons shift to blue on hover (text stays white throughout). */
  .gm-btn-red:hover,
  .gm-btn-outline:hover {
    background-color: #1F4EA1;
    border-color: #1F4EA1;
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(31,78,161,0.38);
  }
  .gm-btn-blue:hover { filter: brightness(1.08); }
}

/* ---------- Header / nav ---------- */
.gm-header {
  background-color: #0D0D0D;
  border-bottom: 2px solid #C8102E;
  position: sticky;
  top: 0;
  z-index: 100;
}
.gm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
}
.gm-logo img { height: 54px; width: auto; display: block; }
.gm-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gm-nav a {
  color: #FFFFFF;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.16s var(--gm-ease);
}
.gm-nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.gm-nav-toggle span {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: #FFFFFF; border-radius: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .gm-nav a:hover { color: #C8102E; }
}

/* ---------- Scroll-video hero ---------- */
.gm-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background-color: #0D0D0D;
}
/* No-footage state: cinematic graded panel so the hero never looks empty. */
.gm-hero--static {
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(200,16,46,0.22) 0%, rgba(13,13,13,0) 55%),
    radial-gradient(120% 90% at 92% 8%, rgba(31,78,161,0.20) 0%, rgba(13,13,13,0) 52%),
    #0D0D0D;
}
.gm-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.gm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 28%, rgba(13,13,13,0) 0%, rgba(13,13,13,0.55) 70%, rgba(13,13,13,0.88) 100%),
    linear-gradient(180deg, rgba(13,13,13,0.30) 0%, rgba(13,13,13,0.55) 55%, rgba(13,13,13,0.92) 100%);
}
.gm-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 12vh;
}
.gm-hero__content h1 {
  font-size: var(--gm-step-hero);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 0.35em;
  max-width: 14ch;
  text-shadow: 0 6px 40px rgba(0,0,0,0.7);
}
.gm-hero__content p {
  font-family: 'Archivo', sans-serif;
  color: #FFFFFF;
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 0 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ---------- Section shells ---------- */
.gm-section { padding: var(--gm-space-section) 20px; }
.gm-section--surface { background-color: #1A1A1A; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.gm-section--bg { background-color: #0D0D0D; }
.gm-section__head { text-align: center; margin-bottom: 48px; }
.gm-section__head h2 { font-size: var(--gm-step-3); }
.gm-rule {
  border: none;
  height: 2px;
  max-width: 72px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, rgba(200,16,46,0) 0%, #C8102E 50%, rgba(200,16,46,0) 100%);
}

/* ---------- Platform strip ---------- */
.gm-platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  background-color: #111111;
  padding: 26px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(0,0,0,0.6);
}
.gm-platform-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  transition: transform 0.16s var(--gm-ease), filter 0.15s ease;
}
.gm-platform-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .gm-platform-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
}

/* ---------- Episode cards (single radius, full-bleed image) ---------- */
.gm-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.gm-ep-card {
  background-color: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--gm-radius-card);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s var(--gm-ease), transform 0.25s var(--gm-ease);
}
.gm-ep-card > a:first-child img,
.gm-ep-card img.gm-ep-card__thumb { width: 100%; display: block; }
.gm-ep-card__body { padding: 18px 20px 22px; }
.gm-ep-card__date { color: #B0B0B0; font-size: 0.8rem; font-family: 'Archivo', sans-serif; margin: 0 0 6px; }
.gm-ep-card__title { font-size: 1.05rem; margin: 0 0 10px; }
.gm-ep-card__excerpt { color: #B0B0B0; font-size: 0.9rem; font-family: 'Archivo', sans-serif; line-height: 1.6; margin: 0 0 14px; }
.gm-ep-embed { margin-top: 14px; }
.gm-ep-embed iframe { width: 100%; border: 0; border-radius: 10px; display: block; }
.gm-ep-embed--yt { position: relative; padding-bottom: 56.25%; height: 0; margin-top: 12px; }
.gm-ep-embed--yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) {
  .gm-ep-card:hover {
    border-color: rgba(200,16,46,0.55);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(200,16,46,0.25);
    transform: translateY(-4px);
  }
}

/* ---------- About strip ---------- */
.gm-about {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.gm-about__text { flex: 2; min-width: 280px; }
.gm-about__text p { color: #B0B0B0; font-family: 'Archivo', sans-serif; font-size: 1rem; line-height: 1.8; }
.gm-about__logo { flex: 1; min-width: 200px; text-align: center; }
.gm-about__logo img { max-width: 200px; width: 100%; border-radius: var(--gm-radius-card); }

/* ---------- Footer ---------- */
.gm-footer {
  background:
    linear-gradient(90deg, rgba(200,16,46,0) 0%, rgba(200,16,46,0.7) 50%, rgba(200,16,46,0) 100%) top/100% 1px no-repeat,
    #0D0D0D;
  padding: 56px 20px 28px;
}
.gm-footer__bubble {
  background-color: #1F4EA1;
  border-radius: 20px;
  padding: 38px 32px;
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.gm-footer__bubble h3 {
  color: #FFFFFF;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.gm-footer__bubble p { color: #FFFFFF; font-family: 'Archivo', sans-serif; margin: 0 0 20px; opacity: 0.92; }
.gm-footer__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gm-footer__form input[type="email"] {
  background: #FFFFFF;
  color: #1A1A1A;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  padding: 15px 22px;
  min-width: 240px;
  font-family: 'Archivo', sans-serif;
}
.gm-footer__form input::placeholder { color: #777777; }
.gm-footer__form button {
  background-color: #C8102E;
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 15px 26px;
  cursor: pointer;
  transition: transform 0.16s var(--gm-ease), filter 0.15s ease;
}
.gm-footer__form button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .gm-footer__form button:hover { filter: brightness(1.1); }
}
.gm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.gm-footer__nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.gm-footer__nav a { color: #FFFFFF; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; transition: color 0.16s var(--gm-ease); }
.gm-footer__social { display: flex; gap: 18px; align-items: center; }
.gm-footer__social a { color: #FFFFFF; display: inline-flex; transition: color 0.16s var(--gm-ease), transform 0.16s var(--gm-ease); }
.gm-footer__social svg { width: 22px; height: 22px; fill: currentColor; }
.gm-footer__copy { color: #B0B0B0; font-size: 0.8rem; font-family: 'Archivo', sans-serif; text-align: center; margin: 28px 0 0; }
@media (hover: hover) and (pointer: fine) {
  .gm-footer__nav a:hover { color: #C8102E; }
  .gm-footer__social a:hover { color: #C8102E; transform: translateY(-2px); }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .gm-hero__content { align-items: center; text-align: center; padding-bottom: 14vh; }
  .gm-hero__content h1 { max-width: 100%; }
  .gm-hero__content p { font-size: 1rem; }
  .gm-nav { display: none; }
  .gm-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0D0D0D;
    border-bottom: 2px solid #C8102E;
  }
  .gm-nav.is-open ul { flex-direction: column; gap: 0; padding: 8px 20px; }
  .gm-nav.is-open li { padding: 12px 0; border-bottom: 1px solid #242424; }
  .gm-nav-toggle { display: block; }
  .gm-about { flex-direction: column; }
}

/* ---------- Reduced motion: drop movement, keep color/opacity ---------- */
@media (prefers-reduced-motion: reduce) {
  .gm-btn, .gm-platform-btn, .gm-ep-card, .gm-footer__social a, .gm-footer__form button {
    transition: filter 0.15s ease, color 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .gm-btn:hover, .gm-platform-btn:hover, .gm-ep-card:hover,
  .gm-footer__social a:hover, .gm-btn:active, .gm-platform-btn:active {
    transform: none;
  }
}
