@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Bebas+Neue&display=swap');

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background: #0a0a0f;
  min-height: 100vh;
}

.app-container {
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
    #0a0a0f;
}

.header-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
  position: relative;
  overflow: hidden;
}

.header-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.mode-tab {
  font-family: 'Space Grotesk', sans-serif;
  border: 2px solid transparent;
}

.youtube-active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
  transform: scale(1.05);
}

.meme-active {
  background: linear-gradient(135deg, #f97316 0%, #eab308 25%, #22c55e 50%, #3b82f6 75%, #8b5cf6 100%);
  background-size: 200% 200%;
  animation: rainbow-shift 2s ease infinite;
  color: white;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  transform: scale(1.05);
}

@keyframes rainbow-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.inactive-tab {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.inactive-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.freaky-button {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
  background-size: 200% 200%;
  animation: gradient-pulse 3s ease infinite;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.freaky-button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(236, 72, 153, 0.5);
}

@keyframes gradient-pulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.freaky-prompt-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.style-chip {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.style-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.style-chip.active {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.generate-button {
  position: relative;
  overflow: hidden;
}

.generate-button.thumbnail-gen {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  box-shadow: 0 6px 30px rgba(220, 38, 38, 0.4);
}

.generate-button.meme-gen {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #22c55e 100%);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
  animation: subtle-shake 0.5s ease-in-out infinite;
}

@keyframes subtle-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.generate-button:hover:not(:disabled) {
  transform: scale(1.02);
  animation: pulse-glow 1s ease infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 30px rgba(236, 72, 153, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(236, 72, 153, 0.6); }
}

.generate-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

.preview-container {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.action-btn.special {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
  border-color: rgba(236, 72, 153, 0.5);
}

.action-btn.special:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5) 0%, rgba(236, 72, 153, 0.5) 100%);
}

.history-sidebar {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  animation: slide-in 0.3s ease;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.history-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Loading spinner banana */
.loading-banana {
  animation: spin-wobble 1s ease-in-out infinite;
}

@keyframes spin-wobble {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-gradient h1 {
    font-size: 2rem;
  }
  
  .mode-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .history-sidebar {
    width: 100%;
  }
}

/* Focus states for accessibility */
input:focus, 
textarea:focus, 
button:focus, 
select:focus {
  outline: none;
  ring: 2px;
  ring-color: #ec4899;
}

/* Selection color */
::selection {
  background: rgba(236, 72, 153, 0.4);
  color: white;
}