html { scroll-behavior: smooth; }

/* Design system variables - Gaming-inspired light theme */
:root {
    /* Gaming-inspired light theme with vibrant accents */
    --background: 0 0% 98%;
    --foreground: 220 25% 15%;

    --card: 0 0% 100%;
    --card-foreground: 220 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 220 25% 15%;

    /* Gaming gold primary */
    --primary: 45 100% 50%;
    --primary-foreground: 0 0% 98%;

    /* Gaming purple secondary */
    --secondary: 270 80% 55%;
    --secondary-foreground: 0 0% 98%;

    --muted: 220 15% 95%;
    --muted-foreground: 215 25% 45%;

    /* Gaming orange accent */
    --accent: 15 100% 55%;
    --accent-foreground: 0 0% 98%;

    --destructive: 0 62% 50%;
    --destructive-foreground: 0 0% 98%;

    --border: 220 15% 85%;
    --input: 0 0% 100%;
    --ring: 45 100% 50%;

    --radius: 0.75rem;

    /* Gaming color palette */
    --game-gold: 45 100% 60%;
    --game-purple: 270 80% 60%;
    --game-orange: 15 100% 65%;
    --game-blue: 210 100% 65%;
    --game-green: 150 75% 55%;
    --game-red: 0 85% 60%;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(45 100% 60%), hsl(15 100% 65%));
    --gradient-secondary: linear-gradient(135deg, hsl(270 80% 60%), hsl(210 100% 65%));
    --gradient-gaming: linear-gradient(45deg, hsl(45 100% 60%), hsl(270 80% 60%), hsl(15 100% 65%));
  /*  --gradient-dark: linear-gradient(180deg, hsl(220 25% 5%), hsl(220 25% 2%));*/

    /* Glows and shadows */
    --glow-primary: 0 0 40px hsl(45 100% 60% / 0.3);
    --glow-secondary: 0 0 30px hsl(270 80% 60% / 0.4);
    --shadow-game: 0 10px 40px hsl(45 100% 60% / 0.2);

    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Configure Tailwind variables */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base styles */
body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: system-ui, -apple-system, sans-serif;
}

/* Card component */
.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-content {
    padding: 1.5rem;
}

/* Input component */
.input {
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--input));
    color: hsl(var(--foreground));
    padding: 0.75rem;
    transition: var(--transition-smooth);
}

.input:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Label component */
.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

/* Checkbox component */
.checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--input));
    accent-color: hsl(var(--primary));
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-hero {
    background: hsl(var(--background) / 0.1);
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--foreground) / 0.2);
}

.btn-hero:hover {
    background: hsl(var(--foreground) / 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    border: none;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--game-gold));
    border: 1px solid hsl(var(--game-gold));
}

.btn-outline:hover {
    background: hsl(var(--game-gold));
    color: hsl(var(--background));
}

/* Utility classes */
.bg-background { background-color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary\/80 { color: hsl(var(--primary) / 0.8); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-transparent {
    color: transparent;
}

.shadow-glow-primary {
    box-shadow: var(--glow-primary);
}

/* Spacing utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }

.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.h-12 { height: 3rem; }

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-sm { font-size: 0.875rem; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.text-center { text-align: center; }
.text-center { text-align: center; }

.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }

.flex { display: flex; }
.items-center { align-items: center; }

.underline { text-decoration: underline; }

.fixed { position: fixed; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.z-50 { z-index: 50; }

.min-h-screen { min-height: 100vh; }

.border-2 { border-width: 2px; }

/* Toast styles */
.toast {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 20rem;
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    border-color: hsl(var(--destructive));
    background-color: hsl(var(--destructive) / 0.1);
}

.toast.success {
    border-color: hsl(var(--game-green));
    background-color: hsl(var(--game-green) / 0.1);
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Additional utility classes */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-shadow-game { box-shadow: var(--shadow-game); }
.backdrop-blur { backdrop-filter: blur(16px); }

.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.-translate-y-1\/2 { --tw-translate-y: -50%; }
.left-1\/2 { left: 50%; }
.bottom-8 { bottom: 2rem; }
.left-3 { left: 0.75rem; }
.top-1\/2 { top: 50%; }
.pl-16 { padding-left: 4rem; }

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.duration-300 { transition-duration: 300ms; }
.transition-all { transition-property: all; }
.transition-transform { transition-property: transform; }
.transition-colors { transition-property: color, background-color, border-color, fill, stroke; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }
.gap-4 { gap: 1rem; }
.gap-2 { gap: 0.5rem; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-8 { margin-top: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }

.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.h-3 { height: 0.75rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-64 { height: 16rem; }
.w-1 { width: 0.25rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }

.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.3 !important; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.font-semibold { font-weight: 600; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-6 > * + * { padding-inline: 10px; }

.bg-gradient-secondary { background: var(--gradient-secondary); }
.bg-gradient-gaming { background: var(--gradient-gaming); }
.bg-gradient-dark { background: var(--gradient-dark); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }

.text-game-gold { color: hsl(var(--game-gold)); }
.text-game-purple { color: hsl(var(--game-purple)); }
.text-game-orange { color: hsl(var(--game-orange)); }
.text-game-blue { color: hsl(var(--game-blue)); }
.text-game-green { color: hsl(var(--game-green)); }
.text-game-red { color: hsl(var(--game-red)); }

.border-t { border-top-width: 1px; }
.border-border { border-color: hsl(var(--border)); }

.fill-current { fill: currentColor; }

/* Game category color backgrounds */
.bg-game-red\/10 { background-color: hsl(var(--game-red) / 0.1); }
.bg-game-blue\/10 { background-color: hsl(var(--game-blue) / 0.1); }
.bg-game-orange\/10 { background-color: hsl(var(--game-orange) / 0.1); }
.bg-game-purple\/10 { background-color: hsl(var(--game-purple) / 0.1); }
.bg-game-green\/10 { background-color: hsl(var(--game-green) / 0.1); }
.bg-game-gold\/10 { background-color: hsl(var(--game-gold) / 0.1); }

.border-game-red\/30 { border-color: hsl(var(--game-red) / 0.3); }
.border-game-blue\/30 { border-color: hsl(var(--game-blue) / 0.3); }
.border-game-orange\/30 { border-color: hsl(var(--game-orange) / 0.3); }
.border-game-purple\/30 { border-color: hsl(var(--game-purple) / 0.3); }
.border-game-green\/30 { border-color: hsl(var(--game-green) / 0.3); }
.border-game-gold\/30 { border-color: hsl(var(--game-gold) / 0.3); }

.bg-card\/30 { background-color: hsl(var(--card) / 0.3); }
.bg-card\/50 { background-color: hsl(var(--card) / 0.5); }
.border-primary\/10 { border-color: hsl(var(--primary) / 0.1); }
.border-primary\/50 { border-color: hsl(var(--primary) / 0.5); }
.border-muted\/50 { border-color: hsl(var(--muted) / 0.5); }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }

/* Accordion styles */
.accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid;
    border-color: inherit;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.accordion-trigger:hover {
    color: hsl(var(--primary));
}

.accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.accordion-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:space-y-0 > * + * { margin-top: 0; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1.3; }
    .md\:text-8xl { font-size: 6rem; line-height: 1; }
    .md\:h-80 { height: 20rem; }
    .md\:space-y-0 > * + * { margin-top: 0; }
    .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}