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

:root {
  --fire-red: #ff2d2d;
  --fire-orange: #ff6b35;
  --fire-yellow: #ffc234;
  --hot-pink: #ff3cac;
  --deep-bg: #0a0a0f;
  --card-bg: #141420;
  --card-border: #1e1e30;
}

body {
  background: var(--deep-bg);
  color: #f0f0f0;
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(255, 60, 172, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 194, 52, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

@keyframes headerGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 20px rgba(255, 107, 53, 0.3)); }
  50% { filter: brightness(1.1) drop-shadow(0 0 40px rgba(255, 60, 172, 0.5)); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-3deg); }
  30% { transform: rotate(2.5deg); }
  45% { transform: rotate(-2deg); }
  60% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1deg); }
  90% { transform: rotate(0.5deg); }
}

@keyframes bananaRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3), 0 0 60px rgba(255, 60, 172, 0.1); }
  50% { box-shadow: 0 0 30px rgba(255, 107, 53, 0.5), 0 0 80px rgba(255, 60, 172, 0.2); }
}

@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.header-text {
  font-family: 'Bangers', cursive;
  background: linear-gradient(135deg, var(--hot-pink), var(--fire-orange), var(--fire-yellow), var(--fire-orange), var(--hot-pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: headerGlow 3s ease-in-out infinite, textShimmer 4s linear infinite;
  letter-spacing: 2px;
}

.fire-input {
  background: rgba(20, 20, 32, 0.9);
  border: 2px solid var(--fire-orange);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2), inset 0 0 15px rgba(255, 107, 53, 0.05);
  transition: all 0.3s ease;
}

.fire-input:focus {
  border-color: var(--hot-pink);
  box-shadow: 0 0 25px rgba(255, 60, 172, 0.3), inset 0 0 20px rgba(255, 60, 172, 0.08);
  outline: none;
}

.fire-input::placeholder {
  color: rgba(255, 107, 53, 0.4);
  font-style: italic;
}

.roast-btn {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-orange), var(--fire-yellow));
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.roast-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  width: 300%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.roast-btn:hover::before {
  left: 100%;
}

.roast-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.roast-btn:active {
  transform: scale(0.97);
  animation: wobble 0.5s ease;
}

.roast-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.style-chip {
  background: rgba(30, 30, 48, 0.8);
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.style-chip:hover {
  border-color: var(--fire-orange);
  background: rgba(255, 107, 53, 0.1);
  transform: translateY(-2px);
}

.style-chip.active {
  border-color: var(--hot-pink);
  background: linear-gradient(135deg, rgba(255, 60, 172, 0.15), rgba(255, 107, 53, 0.15));
  box-shadow: 0 0 15px rgba(255, 60, 172, 0.2);
}

.roast-card {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.95), rgba(30, 20, 40, 0.9));
  border: 1px solid rgba(255, 107, 53, 0.15);
  animation: fadeSlideUp 0.6s ease-out, pulseGlow 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.meme-text {
  font-family: 'Archivo Black', sans-serif;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  line-height: 1.4;
}

.history-card {
  background: rgba(20, 20, 35, 0.8);
  border: 1px solid rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.history-card:hover {
  border-color: rgba(255, 60, 172, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-btn {
  background: rgba(30, 30, 48, 0.8);
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: var(--fire-orange);
  transform: translateY(-2px);
}

.banana-spinner {
  display: inline-block;
  animation: bananaRotate 1s linear infinite;
  font-size: 2rem;
}

.loading-text {
  background: linear-gradient(90deg, var(--fire-orange), var(--hot-pink), var(--fire-yellow), var(--fire-orange));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 2s linear infinite;
}

.name-highlight {
  color: var(--fire-yellow);
  text-shadow: 0 0 10px rgba(255, 194, 52, 0.5);
}

.section-title {
  font-family: 'Bangers', cursive;
  background: linear-gradient(90deg, var(--fire-orange), var(--fire-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.copy-toast {
  animation: fadeSlideUp 0.3s ease-out;
}

@media (max-width: 640px) {
  .header-text {
    font-size: 2rem !important;
  }
}