/* Main styles for ATOM AI website */

/* Tailwind Dark Mode Configuration */
:root {
  --color-primary: rgb(126, 34, 206); /* purple-700 */
  --color-secondary: rgb(219, 39, 119); /* pink-600 */
  --color-bg-light: rgb(249, 250, 251); /* gray-50 */
  --color-bg-dark: rgb(17, 24, 39); /* gray-900 */
  --color-text-light: rgb(31, 41, 55); /* gray-800 */
  --color-text-dark: rgb(243, 244, 246); /* gray-100 */
}

html.dark {
  color-scheme: dark;
  --color-primary: rgb(192, 132, 252); /* purple-400 */
  --color-secondary: rgb(244, 114, 182); /* pink-400 */
}

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

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

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

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

html.dark ::-webkit-scrollbar-track {
  background: #2d3748;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #4a5568;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Smooth Transitions */
.transition-theme {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Add dark mode */
html.dark {
  color-scheme: dark;
}

/* Custom focus styles */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5);
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html.dark .card-hover:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Gradient text */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #8b5cf6, #ec4899);
}

html.dark .gradient-text {
  background-image: linear-gradient(to right, #c4b5fd, #f9a8d4);
}
