/*
  Shared visual flourish styles for kewlmermaid.com articles.
  Loaded after article-base.css. Provides hero backgrounds, SVG animations,
  gradient cards, and other "shiny" UI bits.
*/

/* Animated wave hero background — pure CSS gradient animation */
.wave-hero{
  position:relative;
  padding:48px 24px 56px;
  margin:0 -24px 36px;
  border-radius:16px;
  overflow:hidden;
  background:
    radial-gradient(1200px 300px at 20% 0%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(800px 240px at 80% 100%, rgba(168,85,247,.12), transparent 60%),
    linear-gradient(145deg,#0c1322 0%, #1a2538 50%, #0f172a 100%);
  border:1px solid #1e293b;
}
.wave-hero::before{
  content:"";position:absolute;inset:0;
  background-image:
    repeating-linear-gradient(100deg, transparent 0 18px, rgba(56,189,248,.04) 18px 19px),
    repeating-linear-gradient(80deg, transparent 0 22px, rgba(168,85,247,.03) 22px 23px);
  pointer-events:none;
}
.wave-hero > *{position:relative;z-index:1}
.wave-hero h1{margin-bottom:12px}
.wave-hero .subtitle{color:#cbd5e1;font-size:18px;font-style:italic;margin-bottom:18px}
.wave-hero .byline{color:#64748b;font-size:13px}

/* Decorative SVG frame for inline diagrams */
figure.svg-figure{
  margin:28px 0;padding:0;
  background:linear-gradient(145deg,#0c1322,#1a2538);
  border:1px solid #334155;border-radius:12px;
  overflow:hidden;
}
figure.svg-figure svg{display:block;width:100%;height:auto;background:transparent}
figure.svg-figure figcaption{
  padding:12px 18px;background:rgba(0,0,0,.2);
  color:#94a3b8;font-size:13px;font-style:italic;text-align:center;
  border-top:1px solid #1e293b;
}

/* Photograph / screenshot frame — same visual language as SVG figures */
figure.photo{
  margin:28px 0;padding:0;
  background:#0c1322;
  border:1px solid #334155;border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 32px rgba(0,0,0,.3);
}
figure.photo img{display:block;width:100%;height:auto;background:transparent}
figure.photo figcaption{
  padding:12px 18px;background:rgba(0,0,0,.25);
  color:#94a3b8;font-size:13px;font-style:italic;text-align:center;
  border-top:1px solid #1e293b;
}
/* Hero photo — full-width showcase, subtle glow */
figure.photo.hero{
  margin:0 0 36px;
  background:linear-gradient(145deg,#0c1322,#1a2538);
  border:1px solid #1e293b;
  box-shadow:0 12px 48px rgba(56,189,248,.08), 0 2px 12px rgba(0,0,0,.4);
}
figure.photo.hero img{
  border-bottom:1px solid rgba(56,189,248,.15);
}
/* Gallery grid for multiple photos on one page */
.photo-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:16px;margin:28px 0;
}
.photo-grid figure.photo{margin:0}

/* Stat callout strip */
.stat-strip{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:2px;background:#334155;border-radius:12px;overflow:hidden;
  margin:24px 0;
}
.stat-strip .stat{
  background:linear-gradient(145deg,#1a2538,#0f172a);
  padding:18px 20px;text-align:center;
}
.stat-strip .stat .val{
  display:block;font-size:26px;font-weight:900;color:#38bdf8;
  font-variant-numeric:tabular-nums;line-height:1.1;
}
.stat-strip .stat .label{
  display:block;font-size:11px;color:#94a3b8;
  text-transform:uppercase;letter-spacing:1px;margin-top:6px;
}

/* Section dividers */
.section-divider{
  display:flex;align-items:center;gap:16px;margin:48px 0 28px;
}
.section-divider::before,
.section-divider::after{
  content:"";flex:1;height:1px;
  background:linear-gradient(90deg,transparent,#334155,transparent);
}
.section-divider span{
  color:#38bdf8;font-size:12px;letter-spacing:2px;text-transform:uppercase;
  font-weight:700;
}

/* Pulsing live indicator */
.live-pulse{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;background:rgba(74,222,128,.12);
  border:1px solid rgba(74,222,128,.3);border-radius:20px;
  font-size:12px;color:#4ade80;font-weight:700;letter-spacing:.5px;
}
.live-pulse::before{
  content:"";width:6px;height:6px;border-radius:50%;background:#4ade80;
  animation:livePulse 2s ease-in-out infinite;
}
@keyframes livePulse{0%,100%{opacity:1}50%{opacity:.3}}

/* SVG wave-path shared keyframes */
@keyframes waveFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}
@keyframes dashPulse{
  to{stroke-dashoffset:-40}
}

/* Pretty inline-code */
.article code.val{color:#4ade80;background:rgba(74,222,128,.08)}
.article code.warn{color:#fb923c;background:rgba(251,146,60,.08)}

/* Gradient key-term highlight */
.article .keyterm{
  background:linear-gradient(90deg,rgba(56,189,248,.15),rgba(168,85,247,.15));
  color:#f8fafc;padding:1px 6px;border-radius:4px;font-weight:600;
}

/* Tip pill */
.tip{
  display:flex;gap:14px;align-items:flex-start;
  background:rgba(251,191,36,.05);border:1px solid rgba(251,191,36,.25);
  border-left:3px solid #fbbf24;border-radius:8px;
  padding:14px 18px;margin:18px 0;
}
.tip::before{
  content:"💡";font-size:20px;line-height:1;flex-shrink:0;
}
.tip p{margin:0;color:#e2e8f0;font-size:14.5px}
.tip strong{color:#fbbf24}

/* Warning pill */
.warn{
  display:flex;gap:14px;align-items:flex-start;
  background:rgba(251,146,60,.05);border:1px solid rgba(251,146,60,.25);
  border-left:3px solid #fb923c;border-radius:8px;
  padding:14px 18px;margin:18px 0;
}
.warn::before{content:"⚠";font-size:20px;line-height:1;flex-shrink:0;color:#fb923c}
.warn p{margin:0;color:#e2e8f0;font-size:14.5px}

/* Quote pill (big featured quote) */
.bigquote{
  position:relative;
  font-size:22px;line-height:1.4;color:#f8fafc;
  padding:28px 32px 28px 48px;margin:32px 0;
  background:linear-gradient(145deg,#1a2538,#0f172a);
  border:1px solid #334155;border-radius:12px;
  font-style:italic;
}
.bigquote::before{
  content:"“";position:absolute;left:14px;top:8px;
  font-size:56px;color:#38bdf8;font-family:Georgia,serif;line-height:1;
}
.bigquote cite{
  display:block;margin-top:12px;font-size:14px;font-style:normal;
  color:#94a3b8;
}
