@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Orbitron:wght@500;700;800&display=swap");

:root{
  --bg:#0b0e14;
  --surface: rgba(20, 24, 34, .62);
  --surface2: rgba(255,255,255,.08);
  --text:#ffffff;
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.14);
  --accent:#ff3b3b;
  --max: 1120px;
  --title-font: "Orbitron", ui-sans-serif, system-ui;
  --body-font: "Inter", ui-sans-serif, system-ui;

  /* 🔁 Replace this with your “super techy minimal circuits” GIF */
  --echo-bg-gif: url("assets/techy-circuits-min.gif");
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden;
}

/* Animated gif background + minimal overlay */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--echo-bg-gif);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .22;
  filter: saturate(0.95) contrast(1.05);
  transform: translateZ(0);
}

/* Minimal dark glass overlay to keep text readable */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,59,59,.14), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(120,200,255,.12), transparent 60%),
    rgba(11,14,20,.86);
  backdrop-filter: blur(0px);
}

/* Links */
a{ color: var(--text); text-decoration: underline; }
a:hover{ opacity:.9; }

/* Titles = futuristic/retro; body stays Inter */
.title-font, h1, h2, h3, .brand{
  font-family: var(--title-font);
  letter-spacing: .35px;
}
h1{ font-weight: 800; }
h2, h3{ font-weight: 700; }

/* Header */
.topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(10,14,22,.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight: 900;
  text-decoration:none;
}
.brand small{
  display:block;
  font-family: var(--body-font);
  font-weight:700;
  letter-spacing:0;
  color: var(--muted);
  margin-top:4px;
  font-size: 12px;
}

/* Header actions */
.actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border:1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  text-decoration:none;
  font-weight: 800;
  font-family: var(--body-font);
  white-space: nowrap;
}
.dot{
  width:9px; height:9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255,59,59,.55);
}
.burger{
  font-size: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}

/* Hamburger menu */
.menu-inner{
  border: 1px solid var(--border);
  background: rgba(15,20,32,.72);
  border-radius: 18px;
  overflow:hidden;
}
.menu a{
  display:block;
  padding: 14px 14px;
  text-decoration:none;
  font-weight: 800;
  font-family: var(--body-font);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.menu a:last-child{ border-bottom:none; }
.menu a:hover{ background: rgba(255,255,255,.06); }

/* Layout */
.wrap{ max-width: var(--max); margin: 0 auto; padding: 28px 16px 60px; }

.hero{
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
h1{
  margin:0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.08;
}
.lead{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 90ch;
  font-family: var(--body-font);
}

.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  grid-column: span 6;
  border:1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px;
}
.card.full{ grid-column: span 12; }
.card h2{ margin:0 0 10px; font-size: 18px; }
.card p, .card li{
  color: var(--muted);
  line-height: 1.7;
  margin:0;
  font-size: 15px;
  font-family: var(--body-font);
}
.card p + p{ margin-top: 10px; }
ul{ margin: 10px 0 0; padding-left: 18px; }

hr.sep{
  border:0;
  border-top:1px solid rgba(255,255,255,.10);
  margin: 14px 0;
}

.footer{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-family: var(--body-font);
}

/* Custom HTML slots */
.custom-slot{
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
  font-family: var(--body-font);
  min-height: 96px;
}

.show-card{
  grid-column: span 12;
  border:1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px;
}
.show-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items: start;
}
.show-meta h3{
  margin:0 0 8px;
  font-size: 18px;
}
.show-meta p{ margin:0; }

.tagrow{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--body-font);
}
.tag .dot{ width:7px; height:7px; box-shadow:none; }

@media (max-width: 900px){
  .card{ grid-column: span 12; }
  .show-grid{ grid-template-columns: 1fr; }
  .actions .pill{ display:none; } /* keep header clean on small screens */
}
/* ===== Techy minimal scanline overlay (optional polish) ===== */
html::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1; /* above gif, below content */
  pointer-events: none;
  opacity: .18;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.035) 0px,
      rgba(255,255,255,.035) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 6px
    );
  mix-blend-mode: overlay;
}

/* subtle moving scan */
html::after{
  content:"";
  position: fixed;
  inset: -30% 0 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  background: linear-gradient(to bottom, rgba(255,59,59,0), rgba(255,59,59,.20), rgba(255,59,59,0));
  transform: translateY(-40%);
  animation: echo-scan 8s linear infinite;
}
@keyframes echo-scan{
  0%{ transform: translateY(-40%); }
  100%{ transform: translateY(140%); }
}

/* ===== Header auto-hide ===== */
.topbar{
  transition: transform .28s ease, background-color .28s ease, border-color .28s ease;
  will-change: transform;
}
.topbar.is-hidden{
  transform: translateY(-105%);
}

/* ===== On Air indicator ===== */
.onair{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 900;
  font-family: var(--body-font);
  letter-spacing: .2px;
  white-space: nowrap;
}
.onair-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  box-shadow: none;
}
.onair.is-live .onair-dot{
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255,59,59,.65);
}
.onair-text{
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.onair.is-live .onair-text{
  color: rgba(255,255,255,.92);
}

/* ===== Hamburger menu animation (slide + fade) ===== */
.menu{
  display:block;            /* keep in flow under header */
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 12px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  transition: max-height .28s ease, opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.menu.open{
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Keep your previous “display:none” rule from v3.1 from breaking this */
.menu{ display:block !important; }

/* ===== Small screens: show listen pills inside menu too ===== */
@media (max-width: 900px){
  .onair{ display:none; }
  .menu .menu-inner a{
    font-weight: 800;
  }
}

/* Logo in header */
.brand img{
  height: 36px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 900px){
  .brand img{
    height: 30px;
  }
}

/* Play button in header */
.playbtn{
  min-width: 44px;
  justify-content: center;
}
.playbtn span[data-play-icon]{
  font-size: 14px;
  line-height: 1;
}
.playbtn.is-playing span[data-play-icon]{
  content: "⏸";
}

/* Hide the audio element */
audio[data-stream]{ display:none; }


/* ===== Custom top logo/banner (sleek size) ===== */
.custom-top{
  margin-top: 12px;
  margin-bottom: 18px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}
.custom-top img{
  width: clamp(320px, 55vw, 760px);
  height: auto;
  max-width: none;
  max-height: 220px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.10)) drop-shadow(0 0 30px rgba(255,59,59,.10));
  animation: echo-banner-glow 5.5s ease-in-out infinite;
  opacity: .96;
}
@keyframes echo-banner-glow{
  0%, 100%{ filter: drop-shadow(0 0 10px rgba(255,255,255,.08)) drop-shadow(0 0 22px rgba(255,59,59,.08)); }
  50%{ filter: drop-shadow(0 0 16px rgba(255,255,255,.13)) drop-shadow(0 0 34px rgba(255,59,59,.14)); }
}


/* =========================================================
   Echo Communications , Animated Broadcast Background
   (moving bars + bottom wave glow)
   ========================================================= */

#echo-bg-lines{
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;

  opacity: 0.22;
  mix-blend-mode: screen;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(73, 215, 255, 0.00) 0px,
      rgba(73, 215, 255, 0.00) 12px,
      rgba(73, 215, 255, 0.20) 14px,
      rgba(73, 215, 255, 0.00) 18px
    );

  transform: skewX(-12deg);
  animation: echoSiteBars 7.6s linear infinite;
}

@keyframes echoSiteBars{
  from { transform: translateX(0) skewX(-12deg); }
  to   { transform: translateX(-220px) skewX(-12deg); }
}

/* Soft animated “wave glow” near bottom */
#echo-bg-wave{
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -28%;
  height: 60vh;
  z-index: 0;
  pointer-events: none;

  opacity: 0.20;
  background:
    radial-gradient(closest-side, rgba(73,215,255,.38), transparent 70%),
    radial-gradient(closest-side, rgba(139,92,255,.28), transparent 70%);
  filter: blur(44px);
  animation: echoSiteWave 7.2s ease-in-out infinite;
}

@keyframes echoSiteWave{
  0%,100% { transform: translateY(0px) scale(1.05); }
  50%     { transform: translateY(-22px) scale(1.14); }
}

/* Keep real site content above the background layers */
body, .wrap, .topbar, .menu, .footer{
  position: relative;
  z-index: 2;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #echo-bg-lines, #echo-bg-wave{ animation: none !important; }
  #echo-bg-lines{ opacity: 0.14; }
  #echo-bg-wave{ opacity: 0.12; }
}


/* ===== Slots beside cards =====
   Hide the slot container when nothing is inside it, but keep the layout ready:
   - Add an <img> or any HTML into .custom-slot to make it appear.
*/
.custom-slot{
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}
.custom-slot:empty{
  display: none;
}

/* When there's no slot content, collapse the grid to 1 column */
.show-grid:has(.custom-slot:empty){
  grid-template-columns: 1fr !important;
}

/* When you add an image later, it will auto-style nicely */
.custom-slot img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}


/* ===== Topbar subtitle ===== */
.topbar-subtitle{
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  text-align: center;
  margin-bottom: 6px;
}


/* ===== Section disclaimer ===== */
.section-disclaimer{
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}


/* Active nav link (SPA) */
.menu-inner a.is-active{
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.08);
}


/* Safeguard: hide file uploads (Formspree premium) */
.apply-page input[type="file"],
.apply-page label:has(+ input[type="file"]){
  display: none !important;
}
