/* FOID — Custom Animations & Neon Utilities */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Bebas+Neue&family=Anton&family=Space+Mono:wght@400;700&display=swap');

/* ── Neon Border Utilities ── */
.neon-border-0 { color: #FF0022; box-shadow: 0 0 10px #FF0022, 0 0 25px #FF002266; border-color: #FF0022; }
.neon-border-1 { color: #39FF14; box-shadow: 0 0 10px #39FF14, 0 0 25px #39FF1466; border-color: #39FF14; }
.neon-border-2 { color: #00BFFF; box-shadow: 0 0 10px #00BFFF, 0 0 25px #00BFFF66; border-color: #00BFFF; }
.neon-border-3 { color: #BF00FF; box-shadow: 0 0 10px #BF00FF, 0 0 25px #BF00FF66; border-color: #BF00FF; }
.neon-border-4 { color: #39FF14; box-shadow: 0 0 10px #39FF14, 0 0 25px #39FF1466; border-color: #39FF14; }
.neon-border-5 { color: #FF6B00; box-shadow: 0 0 10px #FF6B00, 0 0 25px #FF6B0066; border-color: #FF6B00; }
.neon-border-6 { color: #FFFF00; box-shadow: 0 0 10px #FFFF00, 0 0 25px #FFFF0066; border-color: #FFFF00; }
.neon-border-7 { color: #00BFFF; box-shadow: 0 0 10px #00BFFF, 0 0 25px #00BFFF66; border-color: #00BFFF; }

.neon-border-0:hover { box-shadow: 0 0 20px #FF0022, 0 0 50px #FF0022cc, 0 0 80px #FF002244; transform: translateY(-5px); }
.neon-border-1:hover { box-shadow: 0 0 20px #39FF14, 0 0 50px #39FF14cc, 0 0 80px #39FF1444; transform: translateY(-5px); }
.neon-border-2:hover { box-shadow: 0 0 20px #00BFFF, 0 0 50px #00BFFFcc, 0 0 80px #00BFFF44; transform: translateY(-5px); }
.neon-border-3:hover { box-shadow: 0 0 20px #BF00FF, 0 0 50px #BF00FFcc, 0 0 80px #BF00FF44; transform: translateY(-5px); }
.neon-border-4:hover { box-shadow: 0 0 20px #39FF14, 0 0 50px #39FF14cc, 0 0 80px #39FF1444; transform: translateY(-5px); }
.neon-border-5:hover { box-shadow: 0 0 20px #FF6B00, 0 0 50px #FF6B00cc, 0 0 80px #FF6B0044; transform: translateY(-5px); }
.neon-border-6:hover { box-shadow: 0 0 20px #FFFF00, 0 0 50px #FFFFOOcc, 0 0 80px #FFFF0044; transform: translateY(-5px); }
.neon-border-7:hover { box-shadow: 0 0 20px #00BFFF, 0 0 50px #00BFFFcc, 0 0 80px #00BFFF44; transform: translateY(-5px); }

/* ── Glitch ── */
@keyframes glitch {
  0%   { text-shadow: 2px 0 #FF0022, -2px 0 #00BFFF; transform: translate(0); }
  10%  { text-shadow: -2px 0 #FF0022, 2px 0 #00BFFF; transform: translate(-2px, 1px); }
  20%  { text-shadow: 2px 0 #39FF14, -2px 0 #BF00FF; transform: translate(2px, -1px); }
  30%  { text-shadow: -2px 0 #FF0022, 2px 0 #FFFF00; transform: translate(0); }
  40%  { text-shadow: 2px 0 #00BFFF, -2px 0 #FF6B00; transform: translate(1px, 2px); }
  50%  { text-shadow: -2px 0 #BF00FF, 2px 0 #39FF14; transform: translate(-1px, -2px); }
  60%  { text-shadow: 2px 0 #FF0022, -2px 0 #00BFFF; transform: translate(2px, 0); }
  70%  { text-shadow: -2px 0 #39FF14, 2px 0 #FF0022; transform: translate(-2px, 1px); }
  80%  { text-shadow: 2px 0 #FFFF00, -2px 0 #BF00FF; transform: translate(1px, -1px); }
  90%  { text-shadow: -2px 0 #FF6B00, 2px 0 #39FF14; transform: translate(-1px, 2px); }
  100% { text-shadow: 2px 0 #FF0022, -2px 0 #00BFFF; transform: translate(0); }
}
.glitch { animation: glitch 0.15s infinite; font-family: 'Orbitron', monospace; }
.glitch-slow { animation: glitch 3s infinite; }

/* ── Psychedelic Background ── */
@keyframes psychedelic {
  0%   { filter: hue-rotate(0deg)   brightness(0.4); }
  25%  { filter: hue-rotate(90deg)  brightness(0.5); }
  50%  { filter: hue-rotate(180deg) brightness(0.4); }
  75%  { filter: hue-rotate(270deg) brightness(0.5); }
  100% { filter: hue-rotate(360deg) brightness(0.4); }
}

.psychedelic-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, #4d0088aa 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, #001166aa 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, #005500aa 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, #880044aa 0%, transparent 40%),
    radial-gradient(ellipse at 30% 70%, #441100aa 0%, transparent 40%);
  animation: psychedelic 10s linear infinite;
  pointer-events: none;
}

/* ── Sacred Canvas ── */
#sacred-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; }

/* ── MLG Smoke ── */
@keyframes smokeRise {
  0%   { transform: translateY(0)    scale(0.5) rotate(0deg);   opacity: 0.7; }
  30%  { transform: translateY(-20px) scale(0.9) rotate(10deg);  opacity: 0.5; }
  60%  { transform: translateY(-45px) scale(1.4) rotate(-8deg);  opacity: 0.3; }
  100% { transform: translateY(-80px) scale(2)   rotate(15deg);  opacity: 0; }
}

.smoke-puff {
  position: absolute; pointer-events: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,180,180,0.5) 0%, rgba(120,120,120,0.2) 60%, transparent 100%);
  animation: smokeRise 2s ease-out infinite;
  filter: blur(6px);
}

/* ── MLG Glasses Drop ── */
@keyframes mlgGlassesDrop {
  0%   { transform: translateY(-120px) rotate(-5deg); opacity: 0; }
  55%  { transform: translateY(8px)    rotate(2deg);  opacity: 1; }
  65%  { transform: translateY(-4px)   rotate(-1deg); }
  75%  { transform: translateY(2px)    rotate(0deg); }
  85%  { transform: translateY(0)      rotate(0deg);  opacity: 1; }
  100% { transform: translateY(0)      rotate(0deg);  opacity: 1; }
}
.mlg-glasses-drop { animation: mlgGlassesDrop 1.2s cubic-bezier(.22,1,.36,1) forwards; }

/* ── MLG Deal With It text ── */
@keyframes dealWithIt {
  0%   { opacity: 0; transform: translateX(-30px); }
  20%  { opacity: 1; transform: translateX(0); }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}
.deal-with-it { animation: dealWithIt 2.5s ease forwards; animation-delay: 1s; }

/* ── Character Bob/Float ── */
@keyframes charFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  25%       { transform: translateY(-12px) rotate(2deg); }
  75%       { transform: translateY(-6px)  rotate(-2deg); }
}
@keyframes charBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-14px) scale(1.04); }
}
@keyframes charCry {
  0%, 85%, 100% { transform: translateX(0); }
  87% { transform: translateX(-3px) rotate(-1deg); }
  89% { transform: translateX(3px)  rotate(1deg); }
  91% { transform: translateX(0); }
}
.char-float { animation: charFloat 5s ease-in-out infinite; }
.char-bob   { animation: charBob   4s ease-in-out infinite; }
.char-cry   { animation: charCry   7s ease-in-out infinite; }

/* ── Mascot bounce on load ── */
@keyframes mascotBounce {
  0%   { transform: translateY(60px) scale(0.7); opacity: 0; }
  60%  { transform: translateY(-10px) scale(1.05); opacity: 1; }
  80%  { transform: translateY(4px) scale(0.98); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.mascot-bounce { animation: mascotBounce 0.9s cubic-bezier(.22,1,.36,1) forwards; }

/* ── Dorito fly ── */
@keyframes doritoFly {
  0%   { transform: translateX(-100px) translateY(0)    rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(110vw)  translateY(-80px) rotate(720deg); opacity: 0; }
}
.dorito-fly { animation: doritoFly 8s linear infinite; }
.dorito-fly-2 { animation: doritoFly 11s linear infinite 3s; }

/* ── UFO Flying ── */
@keyframes ufoFly {
  0%   { transform: translateX(-150px) translateY(0px)   rotate(-3deg); opacity: 0; }
  5%   { opacity: 1; }
  45%  { transform: translateX(45vw)   translateY(-30px)  rotate(3deg); }
  55%  { transform: translateX(55vw)   translateY(10px)   rotate(-3deg); }
  95%  { opacity: 1; }
  100% { transform: translateX(110vw)  translateY(-20px)  rotate(5deg); opacity: 0; }
}
@keyframes ufoFlyReverse {
  0%   { transform: translateX(110vw)  translateY(0px)   rotate(5deg);  opacity: 0; }
  5%   { opacity: 1; }
  50%  { transform: translateX(50vw)   translateY(-25px) rotate(-3deg); }
  95%  { opacity: 1; }
  100% { transform: translateX(-150px) translateY(10px)  rotate(-5deg); opacity: 0; }
}
@keyframes ufoHover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ufo-fly     { animation: ufoFly         9s linear infinite; }
.ufo-fly-2   { animation: ufoFly         9s linear infinite 4.5s; }
.ufo-fly-rev { animation: ufoFlyReverse 10s linear infinite; }
.ufo-fly-rev2{ animation: ufoFlyReverse 10s linear infinite 5s; }
.ufo-hover   { animation: ufoHover 2.2s ease-in-out infinite; }

/* ── Eye Blink / Glow ── */
@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95%            { transform: scaleY(0.05); }
}
@keyframes eyeGlow {
  0%, 100% { filter: drop-shadow(0 0 8px #FFD700) drop-shadow(0 0 20px #FFD70066); }
  50%      { filter: drop-shadow(0 0 25px #FFD700) drop-shadow(0 0 60px #FFD700aa); }
}
.eye-blink { animation: eyeBlink 5s ease-in-out infinite; }
.eye-glow  { animation: eyeGlow  3s ease-in-out infinite; }

/* ── Pyramid ── */
@keyframes pyramidGlow {
  0%, 100% { filter: drop-shadow(0 0 5px  #FFD700) drop-shadow(0 0 15px #FFD70044); }
  50%      { filter: drop-shadow(0 0 20px #FFD700) drop-shadow(0 0 50px #FFD700aa); }
}
@keyframes pyramidRays { 0% { opacity:0.3; transform:rotate(0deg); } 50% { opacity:0.7; } 100% { opacity:0.3; transform:rotate(360deg); } }
.pyramid-glow { animation: pyramidGlow 4s ease-in-out infinite; }
.pyramid-rays { animation: pyramidRays 8s linear infinite; }

/* ── Mandala ── */
@keyframes mandalaSpin    { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes mandalaSpinRev { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }
.mandala-spin      { animation: mandalaSpin    12s linear infinite; }
.mandala-spin-rev  { animation: mandalaSpinRev  8s linear infinite; }
.mandala-spin-slow { animation: mandalaSpin    20s linear infinite; }

/* ── Fractal Pulse ── */
@keyframes fractalScale {
  0%, 100% { transform: scale(1)   rotate(0deg);   opacity: 0.5; }
  50%       { transform: scale(1.3) rotate(180deg); opacity: 0.9; }
}
.fractal-pulse { animation: fractalScale 6s ease-in-out infinite; }

/* ── Tinfoil Wobble ── */
@keyframes tinfoilWobble {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  25%      { transform: rotate(5deg)  translateY(-3px); }
  75%      { transform: rotate(-3deg) translateY(2px); }
}
.tinfoil-wobble { animation: tinfoilWobble 3s ease-in-out infinite; }

/* ── Rainbow MLG border ── */
@keyframes rainbowBorder {
  0%   { border-color: #FF0022; box-shadow: 0 0 15px #FF0022; }
  16%  { border-color: #FF6B00; box-shadow: 0 0 15px #FF6B00; }
  33%  { border-color: #FFFF00; box-shadow: 0 0 15px #FFFF00; }
  50%  { border-color: #39FF14; box-shadow: 0 0 15px #39FF14; }
  66%  { border-color: #00BFFF; box-shadow: 0 0 15px #00BFFF; }
  83%  { border-color: #BF00FF; box-shadow: 0 0 15px #BF00FF; }
  100% { border-color: #FF0022; box-shadow: 0 0 15px #FF0022; }
}
.rainbow-border { animation: rainbowBorder 3s linear infinite; border: 2px solid; }

/* ── MLG Crosshair pulse ── */
@keyframes crosshairPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}
.crosshair-pulse { animation: crosshairPulse 1s ease-in-out infinite; }

/* ── Ticker ── */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 18s linear infinite; will-change: transform; }
.ticker-track:hover { animation-play-state: paused; }

/* ── Float (hero particles) ── */
@keyframes float {
  0%   { transform: translateY(0px)   rotate(0deg);   opacity: 1; }
  50%  { transform: translateY(-40px) rotate(180deg); opacity: 0.7; }
  100% { transform: translateY(-80px) rotate(360deg); opacity: 0; }
}
.floater { position: absolute; pointer-events: none; animation: float linear forwards; font-size: 1.5rem; user-select: none; }

/* ── Neon Text Glow ── */
.neon-text-red    { color: #FF0022; text-shadow: 0 0 12px #FF0022, 0 0 35px #FF002288; }
.neon-text-green  { color: #39FF14; text-shadow: 0 0 12px #39FF14, 0 0 35px #39FF1488; }
.neon-text-blue   { color: #00BFFF; text-shadow: 0 0 12px #00BFFF, 0 0 35px #00BFFF88; }
.neon-text-purple { color: #BF00FF; text-shadow: 0 0 12px #BF00FF, 0 0 35px #BF00FF88; }
.neon-text-orange { color: #FF6B00; text-shadow: 0 0 12px #FF6B00, 0 0 35px #FF6B0088; }
.neon-text-yellow { color: #FFFF00; text-shadow: 0 0 12px #FFFF00, 0 0 35px #FFFF0088; }
.neon-text-gold   { color: #FFD700; text-shadow: 0 0 12px #FFD700, 0 0 35px #FFD70088; }
.neon-text-dew    { color: #80FF00; text-shadow: 0 0 12px #80FF00, 0 0 35px #80FF0088; }

/* ── Scan Lines ── */
.scanlines::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none; z-index: 1;
}

/* ── Product Card ── */
.product-card {
  background: #0d0d14; border: 1px solid; border-radius: 4px;
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.product-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ── Size / Color Selector ── */
.size-btn, .color-btn {
  border: 1px solid #333; background: #111; color: #fff; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: 'Space Mono', monospace; font-size: 0.75rem; padding: 0.25rem 0.6rem;
}
.size-btn.selected, .color-btn.selected { border-color: #39FF14; color: #39FF14; box-shadow: 0 0 6px #39FF1466; }

/* ── Active Filter ── */
.active-filter { background: #39FF14 !important; color: #000 !important; box-shadow: 0 0 12px #39FF14; }

/* ── Toast ── */
@keyframes toastIn  { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; background: #111;
  border: 1px solid #39FF14; color: #39FF14; font-family: 'Space Mono', monospace;
  font-size: 0.8rem; padding: 0.75rem 1.25rem; border-radius: 4px; z-index: 9999;
  box-shadow: 0 0 20px #39FF1466; animation: toastIn 0.3s ease forwards; max-width: 280px;
}
.toast.out { animation: toastOut 0.3s ease forwards; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080810; }
::-webkit-scrollbar-thumb { background: linear-gradient(#39FF14, #BF00FF); border-radius: 3px; }

/* ── ASCII Art ── */
.ascii-art { font-family: 'Space Mono', monospace; font-size: 0.6rem; line-height: 1.2; white-space: pre; color: #39FF14; text-shadow: 0 0 6px #39FF1466; }

/* ── Checkout Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.88); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; }

/* ── Nav ── */
.nav-link { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: #bbb; text-decoration: none; transition: color 0.15s; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-link:hover { color: #39FF14; text-shadow: 0 0 8px #39FF14; }
.nav-link.active { color: #39FF14; }

/* ── MOG pulse ── */
@keyframes mogPulse {
  0%, 100% { text-shadow: 0 0 20px #FF0022, 0 0 60px #FF002266; }
  50%       { text-shadow: 0 0 40px #FF0022, 0 0 100px #FF0022aa, 0 0 140px #FF002244; }
}
.mog-text { animation: mogPulse 2s ease-in-out infinite; }

/* ── Neon divider ── */
@keyframes lineGlow { 0%,100%{box-shadow:0 0 4px #BF00FF,0 0 12px #BF00FF44;} 50%{box-shadow:0 0 10px #BF00FF,0 0 30px #BF00FF88;} }
.neon-divider { height: 1px; background: #BF00FF; animation: lineGlow 3s ease-in-out infinite; }

/* ── Deco char container ── */
.deco-char { position: absolute; pointer-events: none; user-select: none; z-index: 2; }

/* ── Section bg ── */
.kaleido-bg {
  background: radial-gradient(circle at 50% 50%, #2a0044aa 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, #220000aa 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, #001133aa 0%, transparent 40%);
}

/* ── MLG section ── */
.mlg-bg {
  background: linear-gradient(135deg, #0a1a00 0%, #001100 30%, #001a0a 60%, #0a0a00 100%);
  border-top: 1px solid #39FF1444;
  border-bottom: 1px solid #39FF1444;
}

/* ── Mascot glow ── */
@keyframes mascotGlow {
  0%,100% { filter: drop-shadow(0 0 12px #39FF1466) drop-shadow(0 0 30px #39FF1422); }
  50%     { filter: drop-shadow(0 0 24px #39FF14aa) drop-shadow(0 0 60px #39FF1444); }
}
.mascot-glow { animation: mascotGlow 3s ease-in-out infinite; }

/* ── Beam pulse ── */
@keyframes beamPulse { 0%,100%{opacity:0.15;} 50%{opacity:0.5;} }
.beam-pulse { animation: beamPulse 1.5s ease-in-out infinite; }

/* ── Spiral ── */
@keyframes spiralRotate { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
.spiral-anim { animation: spiralRotate 15s linear infinite; }

@media (max-width: 640px) {
  .ascii-art { font-size: 0.4rem; }
  .glitch { animation: glitch 0.5s infinite; }
  .deco-char { transform: scale(0.6); }
}
