* {
  font-family: 'Nunito', sans-serif;
  box-sizing: border-box;
}

.light-mode {
  background: linear-gradient(135deg, #E9D5FF 0%, #FBCFE8 50%, #FEF3C7 100%);
  color: #1F2937;
}

.dark-mode {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4C1D95 100%);
  color: #F3F4F6;
}

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

.dark-mode .glass-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-card-active {
  background: rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.5);
}

.idea-card {
  transform: rotate(-1deg);
  transition: all 0.3s ease;
}

.idea-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.idea-card.generating {
  transform: rotate(0deg);
  animation: shake 0.5s ease-in-out infinite;
}

.idea-card.breeding {
  transform: rotate(0deg);
  animation: pulse-glow 1s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
  border: 2px solid rgba(139, 92, 246, 0.6);
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
    transform: scale(1.02);
  }
}

.dna-spin {
  display: inline-block;
  animation: dna-rotate 1s linear infinite;
}

@keyframes dna-rotate {
  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); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  75% { transform: translateX(5px) rotate(1deg); }
}

.legendary-idea {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(245, 158, 11, 0.4));
  border: 2px solid rgba(251, 191, 36, 0.8);
  animation: legendary-glow 2s ease-in-out infinite;
}

@keyframes legendary-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
  50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.8); }
}

.title-bounce {
  background: linear-gradient(135deg, #8B5CF6, #EC4899, #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-float 3s ease-in-out infinite;
}

@keyframes title-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.vote-btn {
  padding: 1.5rem 2.5rem;
  border-radius: 1.5rem;
  font-weight: bold;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
}

.upvote-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.3));
  border-color: rgba(16, 185, 129, 0.6);
}

.upvote-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(52, 211, 153, 0.5));
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.upvote-btn:active {
  transform: scale(0.95);
}

.downvote-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(248, 113, 113, 0.3));
  border-color: rgba(239, 68, 68, 0.6);
}

.downvote-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(248, 113, 113, 0.5));
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.downvote-btn:active {
  transform: scale(0.95);
}

.generate-btn {
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.generate-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.generate-btn:active {
  transform: scale(0.98);
}

.generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.action-btn.favorited {
  background: rgba(236, 72, 153, 0.3);
  border-color: rgba(236, 72, 153, 0.6);
}

.component-chip {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.component-chip:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.object-chip {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
}

.modifier-chip {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: white;
}

.material-chip {
  background: linear-gradient(135deg, #EC4899, #DB2777);
  color: white;
}

.twist-chip {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #1F2937;
}

.chaos-active {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.dice-spin {
  display: inline-block;
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.idea-reveal {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tagline-fade {
  animation: taglineFade 0.5s ease-out;
}

@keyframes taglineFade {
  from { opacity: 0; }
  to { opacity: 0.6; }
}

.hover-bounce:hover {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  border-radius: 2px;
  animation: confetti-fall 1.5s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.7);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .title-bounce {
    font-size: 2rem !important;
  }
  
  .idea-card {
    padding: 1.5rem;
  }
  
  .idea-card p {
    font-size: 1.25rem !important;
  }
}