/* Custom styles for Free Token For You */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Link styles */
a {
  text-decoration: none;
}

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

#servicesGrid > div {
  animation: fadeIn 0.3s ease-out forwards;
}

#servicesGrid > div:nth-child(1) { animation-delay: 0.05s; }
#servicesGrid > div:nth-child(2) { animation-delay: 0.1s; }
#servicesGrid > div:nth-child(3) { animation-delay: 0.15s; }
#servicesGrid > div:nth-child(4) { animation-delay: 0.2s; }
#servicesGrid > div:nth-child(5) { animation-delay: 0.25s; }
#servicesGrid > div:nth-child(6) { animation-delay: 0.3s; }

/* Category tag colors */
.category-tag[data-category="API"] {
  background-color: #dbeafe;
  color: #1e40af;
}

.category-tag[data-category="Chat"] {
  background-color: #dcfce7;
  color: #166534;
}

.category-tag[data-category="Coding Tool"] {
  background-color: #f3e8ff;
  color: #6b21a8;
}

.category-tag[data-category="CLI"] {
  background-color: #fed7aa;
  color: #9a3412;
}

.category-tag[data-category="IDE"] {
  background-color: #e0e7ff;
  color: #3730a3;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .privacy-banner .flex {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print styles */
@media print {
  header, footer, .privacy-banner {
    display: none;
  }
  
  #servicesGrid {
    display: block;
  }
  
  #servicesGrid > div {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}
