/* ================================================================
   GAMER WORLD — Lightweight Tailwind Replacement Utility CSS
   Replaces cdn.tailwindcss.com (~400KB JS) with ~8KB of static CSS
   Only includes utility classes actually used in the HTML files
   ================================================================ */

/* --- Custom Color Variables (from tailwind.config) --- */
:root {
    --tw-primary: #2563EB;
    --tw-primary-dark: #1D4ED8;
    --tw-accent: #F97316;
    --tw-accent-dark: #EA580C;
    --tw-dark: #0F172A;
    --tw-surface: #F8FAFC;
}

/* ================================================================
   GRID
   ================================================================ */
.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)); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@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)); }
}
@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)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* --- Column Span --- */
.lg\:col-span-1 { grid-column: span 1 / span 1; }
.lg\:col-span-2 { grid-column: span 2 / span 2; }
.lg\:col-span-3 { grid-column: span 3 / span 3; }
.lg\:col-span-4 { grid-column: span 4 / span 4; }
.lg\:col-span-5 { grid-column: span 5 / span 5; }
.lg\:col-span-7 { grid-column: span 7 / span 7; }
.lg\:col-span-8 { grid-column: span 8 / span 8; }
.lg\:col-span-9 { grid-column: span 9 / span 9; }

/* ================================================================
   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; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
}

/* ================================================================
   GAP
   ================================================================ */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-10 { row-gap: 2.5rem; }

/* --- Space Between (vertical) --- */
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ================================================================
   PADDING
   ================================================================ */
.p-3 { padding: 0.75rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-0 { padding-top: 0; }
.pt-32 { padding-top: 8rem; }
.pt-36 { padding-top: 9rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
}
@media (min-width: 768px) {
    .md\:p-12 { padding: 3rem; }
}
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ================================================================
   MARGIN
   ================================================================ */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.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-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-auto { margin-top: auto; }
.mr-4 { margin-right: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ================================================================
   WIDTH / MAX-WIDTH
   ================================================================ */
.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }
.max-w-none { max-width: none; }
.max-h-full { max-height: 100%; }
.min-h-\[400px\] { min-height: 400px; }

@media (min-width: 768px) {
    .md\:max-w-xl { max-width: 36rem; }
    .md\:p-12 { padding: 3rem; }
}

/* ================================================================
   TEXT
   ================================================================ */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.text-\[11px\] { font-size: 11px; }
.text-\[clamp\(1\.5rem\,3vw\,2\.5rem\)\] { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.text-\[clamp\(1\.3rem\,2vw\,1\.8rem\)\] { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.text-\[clamp\(2\.2rem\,5vw\,4rem\)\] { font-size: clamp(2.2rem, 5vw, 4rem); }

@media (min-width: 768px) {
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* --- Font Weight --- */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* --- Text Transform / Tracking / Leading --- */
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }

/* --- Line Clamp --- */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ================================================================
   TEXT COLOR
   ================================================================ */
.text-dark { color: var(--tw-dark); }
.text-accent { color: var(--tw-accent); }
.text-white { color: #ffffff; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-900 { color: #111827; }

/* ================================================================
   BACKGROUND COLOR
   ================================================================ */
.bg-white { background-color: #ffffff; }
.bg-accent { background-color: var(--tw-accent); }
.bg-orange-50 { background-color: #FFF7ED; }
.bg-light { background-color: #F8FAFC; }

/* ================================================================
   BORDERS
   ================================================================ */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-slate-100 { border-color: #F1F5F9; }

/* --- Border Radius --- */
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ================================================================
   SHADOW
   ================================================================ */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* ================================================================
   DISPLAY / POSITION / Z-INDEX
   ================================================================ */
.block { display: block; }
.hidden { display: none; }
/* Repeated here so .flex overrides .block when both classes are on same element */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* ================================================================
   OBJECT FIT
   ================================================================ */
.object-contain { object-fit: contain; }

/* ================================================================
   ASPECT RATIO
   ================================================================ */
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-square { aspect-ratio: 1 / 1; }

/* ================================================================
   TRANSITIONS
   ================================================================ */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.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; }

/* ================================================================
   HOVER / STATE VARIANTS
   ================================================================ */
.hover\:text-accent:hover { color: var(--tw-accent); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-orange-600:hover { background-color: #EA580C; }
.group:hover .group-hover\:text-accent { color: var(--tw-accent); }

/* ================================================================
   GROUP (for group-hover)
   ================================================================ */
.group { position: relative; }

/* ================================================================
   FONT DISPLAY — Force swap for all web fonts (Lighthouse fix)
   Overrides Font Awesome CDN @font-face which lacks font-display
   ================================================================ */
@font-face {
    font-family: 'FontAwesome';
    src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),
         url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
