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

:root {
  --background: 249, 250, 251;
  --foreground: 17, 24, 39;
  /* gray-900 */

  --accent-primary: #3b82f6;
  --accent-secondary: #6366f1;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-blur: blur(16px);
}

.dark {
  --background: 3, 7, 18;
  /* gray-950 */
  --foreground: 229, 231, 235;
  /* gray-200 */

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Ensure focus states are visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

body {
  color: rgb(var(--foreground));
  background: rgb(var(--background));
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.glass-card {
  @apply glass rounded-2xl p-4 md:p-6;
}

.nav-link-standard {
  @apply text-sm font-bold uppercase tracking-wider transition-colors flex items-center gap-2;
}

.btn-premium {
  @apply relative px-6 py-2.5 rounded-xl font-bold transition-all duration-300;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.dark .btn-premium {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-premium:hover {
  @apply scale-[1.02] -translate-y-0.5 shadow-blue-500/40;
}

.btn-premium:active {
  @apply scale-95;
}

/* Premium Typography System */
.heading-premium {
  @apply text-3xl md:text-4xl font-black tracking-tight leading-tight;
  background: linear-gradient(to bottom right, #111827, #374151);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .heading-premium {
  background: linear-gradient(to bottom right, #ffffff, #9ca3af);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  @apply text-xl md:text-2xl font-black tracking-tight flex items-center gap-3 text-gray-900 dark:text-white;
}

.text-description-premium {
  @apply text-sm md:text-base text-slate-500 dark:text-gray-400 font-medium;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
  background-clip: content-box;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}