/**
 * auras.css — The Unhacked Sovereign Aura System
 * Hypnotic ambient effects: pulsing glows, orbital rings,
 * floating particles, breathing gradients.
 *
 * Performance: GPU-only transforms + opacity only (no layout repaints)
 *
 * @package TheUnhacked
 * @version 3.0.0
 */

/* ═══════════════════════════════════════════════════════════════════════════
   KEYFRAME LIBRARY
═══════════════════════════════════════════════════════════════════════════ */

/* Breathing pulse — scale + opacity */
@keyframes tuh-breathe {
  0%, 100% { transform: scale(1);      opacity: 0.4; }
  50%       { transform: scale(1.08);  opacity: 0.7; }
}

/* Slow orbit rotation */
@keyframes tuh-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Reverse orbit */
@keyframes tuh-orbit-rev {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

/* Float drift — gentle vertical bob */
@keyframes tuh-float {
  0%, 100% { transform: translateY(0)    rotate(0deg);   }
  33%       { transform: translateY(-12px) rotate(2deg);  }
  66%       { transform: translateY(8px)  rotate(-1.5deg);}
}

/* Shimmer sweep — left-to-right light streak */
@keyframes tuh-shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateX(300%)  skewX(-15deg); opacity: 0; }
}

/* Ripple expand */
@keyframes tuh-ripple {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Glow pulse — box-shadow intensity */
@keyframes tuh-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.15), 0 0 60px rgba(201,168,76,0.05); }
  50%       { box-shadow: 0 0 40px rgba(201,168,76,0.35), 0 0 100px rgba(201,168,76,0.15); }
}

/* Particle float */
@keyframes tuh-particle {
  0%   { transform: translateY(0)   translateX(0)    scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-80px) translateX(20px) scale(0.6); opacity: 0; }
}

/* Aurora wave — horizontal colour blend */
@keyframes tuh-aurora {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* Scan line — top to bottom sweep */
@keyframes tuh-scan {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO AURA — orbiting gradient orbs behind headline
═══════════════════════════════════════════════════════════════════════════ */

.tuh-hero {
  isolation: isolate;
}

/* Orb 1 — large gold */
.tuh-hero__orb-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  margin: -300px 0 0 -300px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(201,168,76,0.12) 0%,
    rgba(201,168,76,0.04) 40%,
    transparent 70%);
  animation: tuh-breathe 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

/* Orb 2 — cyan, offset, counter-rotation */
.tuh-hero__orb-2 {
  position: absolute;
  width: 800px;
  height: 400px;
  top: 30%;
  left: 50%;
  margin-left: -400px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(80,216,244,0.07) 0%,
    rgba(80,216,244,0.02) 50%,
    transparent 70%);
  animation: tuh-breathe 9s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

/* Orb 3 — purple subtle */
.tuh-hero__orb-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(196,180,255,0.08) 0%,
    transparent 70%);
  animation: tuh-float 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Floating particles in hero */
.tuh-hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.tuh-particle {
  position: absolute;
  border-radius: 50%;
  animation: tuh-particle linear infinite;
  will-change: transform, opacity;
}

/* Particle sizes + positions */
.tuh-particle:nth-child(1)  { width:3px; height:3px; background:#C9A84C; left:15%; bottom:20%; animation-duration:8s;  animation-delay:0s;  }
.tuh-particle:nth-child(2)  { width:2px; height:2px; background:#50D8F4; left:25%; bottom:35%; animation-duration:11s; animation-delay:1s;  }
.tuh-particle:nth-child(3)  { width:4px; height:4px; background:#C9A84C; left:40%; bottom:15%; animation-duration:9s;  animation-delay:2s;  }
.tuh-particle:nth-child(4)  { width:2px; height:2px; background:#fff;    left:55%; bottom:40%; animation-duration:13s; animation-delay:0.5s;}
.tuh-particle:nth-child(5)  { width:3px; height:3px; background:#50D8F4; left:70%; bottom:25%; animation-duration:10s; animation-delay:3s;  }
.tuh-particle:nth-child(6)  { width:2px; height:2px; background:#C9A84C; left:80%; bottom:50%; animation-duration:7s;  animation-delay:1.5s;}
.tuh-particle:nth-child(7)  { width:3px; height:3px; background:#fff;    left:90%; bottom:30%; animation-duration:12s; animation-delay:4s;  }
.tuh-particle:nth-child(8)  { width:4px; height:4px; background:#C4B4FF; left:10%; bottom:60%; animation-duration:14s; animation-delay:2.5s;}
.tuh-particle:nth-child(9)  { width:2px; height:2px; background:#C9A84C; left:35%; bottom:70%; animation-duration:8s;  animation-delay:0s;  }
.tuh-particle:nth-child(10) { width:3px; height:3px; background:#50D8F4; left:60%; bottom:10%; animation-duration:11s; animation-delay:3.5s;}
.tuh-particle:nth-child(11) { width:2px; height:2px; background:#3DDCA0; left:48%; bottom:55%; animation-duration:9s;  animation-delay:1s;  }
.tuh-particle:nth-child(12) { width:3px; height:3px; background:#C9A84C; left:75%; bottom:65%; animation-duration:15s; animation-delay:4.5s;}

/* ═══════════════════════════════════════════════════════════════════════════
   PILLAR CARD AURAS — hover orbital ring + glow
═══════════════════════════════════════════════════════════════════════════ */

.tuh-pillar-card {
  position: relative;
}

/* Orbital ring on hover */
.tuh-pillar-card__aura {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
              linear-gradient(135deg,
                var(--pillar-color, #C9A84C) 0%,
                transparent 50%,
                var(--pillar-color, #C9A84C) 100%) border-box;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  animation: tuh-orbit 4s linear infinite paused;
  border-radius: var(--radius-xl);
}

.tuh-pillar-card:hover .tuh-pillar-card__aura {
  opacity: 1;
  animation-play-state: running;
}

/* Bottom glow spill */
.tuh-pillar-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse at center,
    var(--pillar-color, #C9A84C) 0%,
    transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.tuh-pillar-card:hover::after {
  opacity: 0.25;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA BUTTON AURA — pulsing ring around gold buttons
═══════════════════════════════════════════════════════════════════════════ */

.tuh-btn--gold {
  position: relative;
  isolation: isolate;
}

.tuh-btn--gold::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201,168,76,0.4);
  animation: tuh-ripple 2.5s ease-out infinite;
  pointer-events: none;
}

.tuh-btn--gold::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201,168,76,0.2);
  animation: tuh-ripple 2.5s ease-out infinite 0.8s;
  pointer-events: none;
}

/* Shimmer sweep on hover */
.tuh-btn--gold .tuh-btn-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.tuh-btn--gold .tuh-btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent);
  transform: translateX(-100%) skewX(-15deg);
}

.tuh-btn--gold:hover .tuh-btn-shimmer::after {
  animation: tuh-shimmer 0.7s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BROADCAST STRIP AURA — aurora wave background
═══════════════════════════════════════════════════════════════════════════ */

.tuh-broadcast-strip {
  position: relative;
  overflow: hidden;
}

.tuh-broadcast-strip__aurora {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg,
    rgba(201,168,76,0.06),
    rgba(80,216,244,0.04),
    rgba(201,168,76,0.08),
    rgba(196,180,255,0.04),
    rgba(201,168,76,0.06));
  background-size: 400% 400%;
  animation: tuh-aurora 12s ease infinite;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION DIVIDER — gold scan line
═══════════════════════════════════════════════════════════════════════════ */

.tuh-section-scan {
  position: relative;
  overflow: hidden;
}

.tuh-section-scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201,168,76,0.6) 30%,
    rgba(201,168,76,0.6) 70%,
    transparent);
  animation: tuh-scan 6s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VERDICT RING AURA — glow on score rings
═══════════════════════════════════════════════════════════════════════════ */

.tuh-ring-arc {
  filter: drop-shadow(0 0 4px currentColor);
  transition: filter 0.3s ease;
}

.tuh-verdict-card:hover .tuh-ring-arc {
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOGO MARK AURA
═══════════════════════════════════════════════════════════════════════════ */

.tuh-logo__mark {
  position: relative;
  animation: tuh-glow-pulse 4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   READING PROGRESS — glowing bar
═══════════════════════════════════════════════════════════════════════════ */

#tuh-reading-progress__bar {
  box-shadow: 0 0 8px currentColor;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAGE NAV ACTIVE — glowing dot
═══════════════════════════════════════════════════════════════════════════ */

.tuh-stage-nav__item.is-active .tuh-stage-nav__icon {
  filter: drop-shadow(0 0 6px var(--pillar-color, #C9A84C));
  animation: tuh-breathe 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD THUMBNAIL AURA — glowing border on hover
═══════════════════════════════════════════════════════════════════════════ */

.tuh-card:hover .tuh-card__thumb {
  box-shadow: 0 0 0 1px rgba(201,168,76,0.2),
              0 4px 24px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MANIFESTO TEXT — cinematic gold shimmer
═══════════════════════════════════════════════════════════════════════════ */

.tuh-manifesto__line--gold {
  background: linear-gradient(90deg,
    #C9A84C 0%,
    #f0d070 30%,
    #C9A84C 50%,
    #a07830 70%,
    #C9A84C 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: tuh-aurora 4s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIGNAL CTA — icon orbit
═══════════════════════════════════════════════════════════════════════════ */

.tuh-signal-icon {
  display: block;
  animation: tuh-float 5s ease-in-out infinite;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER LOGO — subtle breathe
═══════════════════════════════════════════════════════════════════════════ */

.tuh-footer .tuh-logo__mark {
  animation: tuh-glow-pulse 6s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARE BUTTONS — hover platform glow
═══════════════════════════════════════════════════════════════════════════ */

.tuh-share--facebook:hover  { background:#1877F2 !important; border-color:#1877F2 !important; box-shadow:0 0 12px rgba(24,119,242,0.4); }
.tuh-share--instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888) !important; border-color:#dc2743 !important; box-shadow:0 0 12px rgba(220,39,67,0.4); color:#fff !important; }
.tuh-share--x:hover         { background:#000 !important; border-color:#000 !important; box-shadow:0 0 12px rgba(0,0,0,0.4); }
.tuh-share--telegram:hover  { background:#229ED9 !important; border-color:#229ED9 !important; box-shadow:0 0 12px rgba(34,158,217,0.4); }
.tuh-share--whatsapp:hover  { background:#25D366 !important; border-color:#25D366 !important; box-shadow:0 0 12px rgba(37,211,102,0.4); }
.tuh-share--signal:hover    { background:#3A76F0 !important; border-color:#3A76F0 !important; box-shadow:0 0 12px rgba(58,118,240,0.4); }
.tuh-share--email:hover     { background:var(--color-gold) !important; border-color:var(--color-gold) !important; box-shadow:0 0 12px rgba(201,168,76,0.4); color:#09090f !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION — respect user preference
═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .tuh-hero__orb-1,
  .tuh-hero__orb-2,
  .tuh-hero__orb-3,
  .tuh-particle,
  .tuh-pillar-card__aura,
  .tuh-broadcast-strip__aurora,
  .tuh-logo__mark,
  .tuh-signal-icon,
  .tuh-stage-nav__item.is-active .tuh-stage-nav__icon,
  .tuh-manifesto__line--gold,
  .tuh-btn--gold::before,
  .tuh-btn--gold::after {
    animation: none !important;
    transition: none !important;
  }
}
