@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Space+Mono:wght@400;700&display=swap');

:root {
  --neon-pink: #ff006e;
  --neon-green: #39ff14;
  --neon-yellow: #ffe600;
  --neon-cyan: #00f0ff;
  --deep-bg: #0a0a1a;
  --card-bg: #12122a;
  --mid-bg: #1a1a3e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--deep-bg);
  color: #e0e0e0;
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background noise */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255, 0, 110, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(57, 255, 20, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-4px) rotate(-1deg); }
  20% { transform: translateX(4px) rotate(1deg); }
  30% { transform: translateX(-4px) rotate(0deg); }
  40% { transform: translateX(4px) rotate(1deg); }
  50% { transform: translateX(-2px) rotate(-1deg); }
  60% { transform: translateX(2px) rotate(0deg); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-1px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(57, 255, 20, 0.4), 0 0 40px rgba(57, 255, 20, 0.1); }
  50% { box-shadow: 0 0 30px rgba(57, 255, 20, 0.6), 0 0 60px rgba(57, 255, 20, 0.2); }
}

@keyframes cook-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 110, 0.4), 0 0 40px rgba(255, 0, 110, 0.1); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 110, 0.7), 0 0 60px rgba(255, 0, 110, 0.3); }
}

@keyframes float-in {
  0% { opacity: 0; transform: translateY(30px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bounce-in {
  0% { opacity: 0; transform: scale(0.3) rotate(-5deg); }
  50% { transform: scale(1.05) rotate(1deg); }
  70% { transform: scale(0.95) rotate(-0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-1px, 2px); }
  98% { transform: translate(2px, -2px); }
}

@keyframes text-glow-pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 0, 110, 0.5), 0 0 30px rgba(255, 0, 110, 0.2); }
  50% { text-shadow: 0 0 20px rgba(255, 0, 110, 0.8), 0 0 50px rgba(255, 0, 110, 0.4), 0 0 80px rgba(255, 0, 110, 0.1); }
}

@keyframes loading-dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
  80%, 100% { content: '....'; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.btn-spin:hover {
  animation: shake 0.5s ease-in-out;
}

.btn-spin {
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-cook {
  animation: cook-pulse 2s ease-in-out infinite;
}

.btn-cook:hover {
  animation: shake 0.4s ease-in-out;
}

.hashtag-display {
  animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation-fill-mode: both;
}

.meme-card {
  animation: float-in 0.5s ease-out;
  animation-fill-mode: both;
}

.header-title {
  animation: glitch 4s ease-in-out infinite;
}

.spinner-emoji {
  animation: spin-slow 1s linear infinite;
  display: inline-block;
}

.input-wonky {
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease;
}

.input-wonky:focus {
  transform: rotate(0deg) scale(1.02);
}

.gallery-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.08) rotate(1deg);
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

/* Meme text overlay style */
.meme-text-overlay {
  font-family: Impact, 'Arial Black', sans-serif;
  color: white;
  -webkit-text-stroke: 2px black;
  text-shadow: 
    3px 3px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    2px 2px 4px rgba(0,0,0,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--deep-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-pink);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-green);
}

/* Scanline effect overlay */
.scanlines::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}