/*
 * GP Pattern Hero — Guardian Posse shared hero + card pattern system
 * Replaces photo-based heroes with animated canvas + CSS pattern backgrounds.
 * Import once in base.html or per-page. Works with gp-network-canvas.js.
 */

/* ── Hero wrapper ── */
.gp-pattern-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #08080f;
}
.gp-pattern-hero.hero-sm { min-height: 320px; }
.gp-pattern-hero.hero-lg { min-height: 600px; }

/* Canvas fills the hero area */
.gp-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Gradient overlays on top of canvas */
.gp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,15,0.82) 0%,
    rgba(8,8,15,0.55) 50%,
    rgba(8,8,15,0.75) 100%
  );
  pointer-events: none;
}
.gp-hero-overlay-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,8,15,0.88) 0%, transparent 65%);
  pointer-events: none;
}
.gp-hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, #08080f 0%, transparent 100%);
  pointer-events: none;
}
.gp-hero-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ffc8, #3b9bff, #7c6bff, #ff9640, #00ffc8);
  background-size: 200% 100%;
  animation: gp-bar-shimmer 4s linear infinite;
}

/* Hero content sits above canvas */
.gp-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 3rem 0;
}

/* ── Pattern card — replaces photo feature cards ── */
.gp-pattern-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(8,8,15,0.85);
  transition: border-color 0.25s, transform 0.25s;
}
.gp-pattern-card:hover {
  border-color: rgba(0,255,200,0.25);
  transform: translateY(-3px);
}

/* Mini pattern inside a card (replaces a feature card photo) */
.gp-card-pattern {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #08080f;
  border-radius: 12px 12px 0 0;
}
.gp-card-pattern canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gp-card-pattern-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,8,15,0.95) 100%);
}
.gp-card-pattern-icon {
  position: absolute;
  bottom: 12px; left: 16px;
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px currentColor);
  z-index: 2;
}

/* ── Pill / eyebrow badge consistent with site ── */
.gp-eyebrow-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(0,255,200,0.25);
  background: rgba(0,255,200,0.06);
  color: #00ffc8;
  margin-bottom: 0.75rem;
}
.gp-eyebrow-pill.orange {
  border-color: rgba(255,150,64,0.25);
  background: rgba(255,150,64,0.06);
  color: #ff9640;
}
.gp-eyebrow-pill.purple {
  border-color: rgba(124,107,255,0.25);
  background: rgba(124,107,255,0.06);
  color: #7c6bff;
}

/* ── Stat block used in hero sidecars ── */
.gp-stat-block {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,255,200,0.15);
}
.gp-stat-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Space Mono', monospace;
}
.gp-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

/* ── Animations ── */
@keyframes gp-bar-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes gp-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gp-fade-up { animation: gp-fade-up 0.6s ease forwards; }
.gp-fade-up-d1 { animation-delay: 0.1s; opacity: 0; }
.gp-fade-up-d2 { animation-delay: 0.2s; opacity: 0; }
.gp-fade-up-d3 { animation-delay: 0.3s; opacity: 0; }

@media (max-width: 768px) {
  .gp-pattern-hero { min-height: 360px; }
  .gp-pattern-hero.hero-lg { min-height: 420px; }
}
