@tailwind base;
@tailwind components;
@tailwind utilities;

/* ManaDeck Theme CSS Variables */
:root {
  /* Primary colors - ManaDeck Purple */
  --color-primary: #7C3AED;
  --color-primary-hover: #8B5CF6;
  --color-primary-glow: rgba(124, 58, 237, 0.3);

  /* Text colors */
  --color-text-primary: #f9fafb;
  --color-text-secondary: #d1d5db;
  --color-text-muted: #6b7280;

  /* Background colors */
  --color-background-page: #0f0a1a;
  --color-background-card: #1a1625;
  --color-background-card-hover: #2d2640;

  /* Border colors */
  --color-border: #3d3555;
  --color-border-hover: #4d4570;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--color-background-page);
  color: var(--color-text-primary);
  line-height: 1.6;
}

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

::-webkit-scrollbar-track {
  background: var(--color-background-card);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-hover);
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: white;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Button styles */
.btn-primary {
  @apply inline-flex items-center justify-center px-6 py-3 bg-primary text-white font-semibold rounded-lg transition-all duration-200;
  @apply hover:bg-primary-hover hover:shadow-lg hover:shadow-primary-glow;
}

.btn-secondary {
  @apply inline-flex items-center justify-center px-6 py-3 border border-border text-text-primary font-semibold rounded-lg transition-all duration-200;
  @apply hover:border-border-hover hover:bg-background-card;
}
