/*
Theme Name: GenAI Futurecast
Theme URI: https://genaifuturecast.com
Author: GenAI Futurecast
Description: Mission-control block theme for GenAI Futurecast — a futuristic podcast broadcast station hosted by a child prodigy. Deep-space dark, neon cyan and violet glow, monitor-style episode cards. Full-site editing.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: genai-futurecast
Tags: block-theme, full-site-editing, podcast, education
*/

/* ---------------------------------------------------------
   GenAI Futurecast v3 — MISSION CONTROL
   Space #0A0E1C · Panel #131C38 · Neon Cyan #22D3EE
   Violet #8B5CF6 · Starlight #EAF2FF
   Display: Space Grotesk · Body: Inter · HUD: Orbitron
--------------------------------------------------------- */

:root {
  --gaf-space: #0a0e1c;
  --gaf-panel: #131c38;
  --gaf-cyan: #22d3ee;
  --gaf-violet: #8b5cf6;
  --gaf-star: #eaf2ff;
  --gaf-slate: #8a96b8;
  --gaf-glow-cyan: rgba(34, 211, 238, 0.45);
  --gaf-glow-violet: rgba(139, 92, 246, 0.4);
}

/* Starfield backdrop across the whole site */
body {
  background-color: var(--gaf-space);
  background-image:
    radial-gradient(rgba(234, 242, 255, 0.14) 1px, transparent 1.5px),
    radial-gradient(rgba(139, 92, 246, 0.12) 1px, transparent 1.5px),
    radial-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1.5px);
  background-size: 190px 190px, 260px 260px, 330px 330px;
  background-position: 0 0, 80px 120px, 150px 40px;
  background-attachment: fixed;
}

/* HUD eyebrow labels */
.gaf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gaf-cyan);
  text-shadow: 0 0 12px var(--gaf-glow-cyan);
}
.gaf-eyebrow::before,
.gaf-eyebrow::after {
  content: "";
  height: 1px;
  width: 26px;
  background: linear-gradient(90deg, transparent, var(--gaf-cyan));
  box-shadow: 0 0 8px var(--gaf-glow-cyan);
}
.gaf-eyebrow::after {
  background: linear-gradient(90deg, var(--gaf-violet), transparent);
  box-shadow: 0 0 8px var(--gaf-glow-violet);
}

/* Hero: glow horizon + scanline grid */
.gaf-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.gaf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 50% 115%, var(--gaf-glow-violet), transparent 65%),
    radial-gradient(ellipse 65% 45% at 82% -15%, var(--gaf-glow-cyan), transparent 62%);
}
.gaf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}

/* Gradient-glow treatment for the highlighted words in hero headings */
.gaf-hero h1 .has-inline-color,
.gaf-hero h2 .has-inline-color {
  background: linear-gradient(100deg, var(--gaf-cyan) 15%, var(--gaf-violet) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 0 18px var(--gaf-glow-cyan));
}

/* LIVE ticker with pulsing signal dot */
.gaf-ticker {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
}
.gaf-ticker p::before {
  content: "●";
  color: #ff4d6d;
  margin-right: 0.7em;
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.9);
  animation: gaf-pulse 1.6s ease-in-out infinite;
}
@keyframes gaf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.gaf-ticker a { text-decoration: none; }
.gaf-ticker a:hover { color: #ffffff; }

/* Buttons: neon control switches */
.wp-block-button__link {
  box-shadow: 0 0 18px var(--gaf-glow-cyan), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px var(--gaf-glow-violet), 0 0 14px var(--gaf-glow-cyan);
}
.is-style-outline .wp-block-button__link {
  background: rgba(19, 28, 56, 0.6);
  color: var(--gaf-star) !important;
  border: 1px solid var(--gaf-cyan) !important;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.25), inset 0 0 12px rgba(34, 211, 238, 0.08);
}
.is-style-outline .wp-block-button__link:hover {
  border-color: var(--gaf-violet) !important;
  box-shadow: 0 0 26px var(--gaf-glow-violet);
}

/* Monitor cards: gradient neon frame */
.gaf-card {
  position: relative;
  border-radius: 14px;
  background:
    linear-gradient(var(--gaf-panel), var(--gaf-panel)) padding-box,
    linear-gradient(135deg, var(--gaf-cyan), var(--gaf-violet)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.12), 0 14px 34px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.gaf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 36px var(--gaf-glow-cyan), 0 18px 44px rgba(0, 0, 0, 0.55);
}
.gaf-card .wp-block-embed { margin: 0; }
.gaf-card figure iframe { display: block; }
.gaf-card h3 { color: var(--gaf-star); }

/* Panel sections get a faint frame */
.gaf-panel-frame {
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 18px;
  box-shadow: inset 0 0 40px rgba(19, 28, 56, 0.6);
}

/* Video embeds keep 16:9 */
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%;
}
.wp-block-embed.is-type-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Images: subtle neon frame */
main .wp-block-image img {
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}

/* Navigation glow on hover */
.wp-block-navigation a:hover {
  color: var(--gaf-cyan);
  text-shadow: 0 0 10px var(--gaf-glow-cyan);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--gaf-cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .gaf-ticker p::before { animation: none; }
  .wp-block-button__link, .gaf-card { transition: none; }
}
