/* CSS Variables */
:root {
  --font-sans: system-ui, -apple-system, sans-serif;
  --font-mono: "Courier New", monospace;

  /* Color Tokens */
  --color-background: oklch(0.12 0.01 280);
  --color-foreground: oklch(0.98 0.005 280);
  --color-card: oklch(0.15 0.01 280);
  --color-card-foreground: oklch(0.98 0.005 280);
  --color-popover: oklch(0.15 0.01 280);
  --color-popover-foreground: oklch(0.98 0.005 280);
  --color-primary: oklch(0.6 0.22 20);
  --color-primary-foreground: oklch(0.99 0 0);
  --color-secondary: oklch(0.2 0.01 280);
  --color-secondary-foreground: oklch(0.98 0.005 280);
  --color-muted: oklch(0.2 0.01 280);
  --color-muted-foreground: oklch(0.6 0.01 280);
  --color-accent: oklch(0.2 0.01 280);
  --color-accent-foreground: oklch(0.98 0.005 280);
  --color-destructive: oklch(0.58 0.24 15);
  --color-destructive-foreground: oklch(0.98 0.005 280);
  --color-border: oklch(0.25 0.01 280);
  --color-input: oklch(0.25 0.01 280);
  --color-ring: oklch(0.6 0.22 20);

  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
}

/* Background Colors */
.bg-background { background-color: var(--color-background); }
.bg-foreground { background-color: var(--color-foreground); }
.bg-card { background-color: var(--color-card); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-muted { background-color: var(--color-muted); }
.bg-accent { background-color: var(--color-accent); }
.bg-destructive { background-color: var(--color-destructive); }

/* Text Colors */
.text-foreground { color: var(--color-foreground); }
.text-primary { color: var(--color-primary); }
.text-primary-foreground { color: var(--color-primary-foreground); }
.text-secondary-foreground { color: var(--color-secondary-foreground); }
.text-muted-foreground { color: var(--color-muted-foreground); }
.text-accent-foreground { color: var(--color-accent-foreground); }
.text-destructive { color: var(--color-destructive); }
.text-white { color: white; }

/* Border Colors */
.border-border { border-color: var(--color-border); }
.border-input { border-color: var(--color-input); }
.border-primary { border-color: var(--color-primary); }

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Spacing */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-y-6 > * + * { margin-top: 1.5rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Sizing */
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-56 { width: 14rem; }
.w-64 { width: 16rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { width: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }

/* Borders */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l { border-left-width: 1px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.backdrop-blur { backdrop-filter: blur(8px); }
.overflow-hidden { overflow: hidden; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover States */
.hover\:bg-primary\/90:hover { background-color: color-mix(in srgb, var(--color-primary) 90%, transparent); }
.hover\:bg-accent:hover { background-color: var(--color-accent); }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-primary\/80:hover { color: color-mix(in srgb, var(--color-primary) 80%, transparent); }
.hover\:border-primary\/50:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }

/* Visibility */
.block { display: block; }
.hidden { display: none; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }

/* Group Hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }

/* Background Utilities */
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }

/* Responsive Design */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gaming Background Patterns */
.gaming-bg {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(142, 76, 36, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(142, 76, 36, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(142, 76, 36, 0.05) 0%, transparent 50%);
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(142, 76, 36, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(142, 76, 36, 0.15) 0%, transparent 50%),
    linear-gradient(45deg, rgba(142, 76, 36, 0.1) 0%, transparent 30%, rgba(142, 76, 36, 0.1) 70%);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg,
    hsl(var(--color-primary)) 0%,
    hsl(var(--color-primary) / 0.8) 50%,
    hsl(var(--color-primary) / 0.6) 100%);
}

.bg-gradient-orange {
  background: linear-gradient(135deg,
    rgba(251, 146, 60, 0.1) 0%,
    rgba(251, 146, 60, 0.05) 50%,
    rgba(251, 146, 60, 0.1) 100%);
}

.bg-gradient-blue {
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.05) 50%,
    rgba(59, 130, 246, 0.1) 100%);
}

.bg-gradient-hero {
  background: linear-gradient(135deg,
    rgba(142, 76, 36, 0.1) 0%,
    hsl(var(--color-background)) 50%,
    rgba(142, 76, 36, 0.05) 100%);
}

/* Background Images */
.bg-hero-default {
  background-image: url('/public/images/heroes/default.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-abstract-gaming {
  background-image: url('/public/images/abstract-gaming-pattern.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Enhanced Card Styles */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Gaming Theme Enhancements */
.gaming-border {
  border: 2px solid transparent;
  background: linear-gradient(hsl(var(--color-background)), hsl(var(--color-background))) padding-box,
              linear-gradient(45deg, hsl(var(--color-primary)), transparent, hsl(var(--color-primary))) border-box;
}

.neon-glow {
  box-shadow: 0 0 10px rgba(142, 76, 36, 0.3);
}

.neon-glow:hover {
  box-shadow: 0 0 20px rgba(142, 76, 36, 0.5);
}
