* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: #000;
  color: #e7e9ea;
}

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

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

.generate-btn {
  background: linear-gradient(135deg, #1d9bf0, #7c3aed, #ec4899, #1d9bf0);
  background-size: 300% 300%;
  animation: gradient-shift 3s ease infinite;
}

.generate-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(29, 155, 240, 0.4);
}

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

.heart-pop {
  animation: heart-pop 0.3s ease;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.ratio-shake {
  animation: shake 0.5s ease;
}

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

.glitch-text {
  animation: glitch 0.3s ease infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.post-card {
  animation: fadeIn 0.3s ease;
}

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

/* Staggered animation for posts */
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }

/* Mobile optimization */
@media (max-width: 640px) {
  .generate-btn {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
  
  footer {
    padding: 0.5rem;
  }
  
  footer > div {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  footer span:not(:last-child)::after {
    content: '';
  }
}

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

::-webkit-scrollbar-track {
  background: #16181c;
}

::-webkit-scrollbar-thumb {
  background: #2f3336;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #404449;
}

/* Selection color */
::selection {
  background: #1d9bf0;
  color: white;
}