/* =====================================================================
   LUNARIA ESPORT - OFFICIAL DESIGN SYSTEM & STYLESHEET
   Beyond The Moon - EST. 2026
===================================================================== */

:root {
    --crimson: #ff1e44;
    --crimson-hover: #ff3356;
    --crimson-dark: #b80c2a;
    --crimson-glow: rgba(255, 30, 68, 0.45);
    --dark: #07080c;
    --dark-alt: #0d0f17;
    --dark-card: rgba(14, 16, 24, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-crimson: rgba(255, 30, 68, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-body: 'Space Grotesk', -apple-system, sans-serif;
    --font-handwriting: 'Caveat', cursive;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    background-color: var(--dark);
}

body {
    background-color: var(--dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ================= TYPOGRAPHY & UTILS ================= */
.font-orbitron {
    font-family: var(--font-heading);
}

.font-sans {
    font-family: var(--font-body);
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.font-handwriting {
    font-family: var(--font-handwriting);
}

.text-crimson {
    color: var(--crimson);
}

.bg-crimson {
    background-color: var(--crimson);
}

.bg-dark {
    background-color: var(--dark);
}

.bg-dark-alt {
    background-color: var(--dark-alt);
}

.text-stroke-crimson {
    -webkit-text-stroke: 1.5px var(--crimson);
    color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #07080c;
}
::-webkit-scrollbar-thumb {
    background: #1f2330;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--crimson);
}

/* ================= TAILWIND-LIKE UTILITY EXTENSIONS ================= */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.left-6 { left: 1.5rem; }
.top-1\.5 { top: 0.375rem; }
.top-3 { top: 0.75rem; }
.right-3 { right: 0.75rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-28 { width: 7rem; }
.h-28 { height: 7rem; }
.h-44 { height: 11rem; }

.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-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-28 { padding-top: 7rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.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; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pr-4 { padding-right: 1rem; }

.m-0 { margin: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-auto { margin-top: auto; }
.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-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-auto { margin-left: auto; }
.ml-4 { margin-left: 1rem; }
.-left-\[35px\] { left: -35px; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }

.object-cover { object-fit: cover; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.whitespace-nowrap { white-space: nowrap; }

/* Font Sizes */
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }

/* Colors */
.text-white { color: #ffffff; }
.text-zinc-200 { color: #e4e4e7; }
.text-zinc-300 { color: #d4d4d8; }
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }

.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/\[0\.02\] { background-color: rgba(255, 255, 255, 0.02); }
.bg-white\/\[0\.03\] { background-color: rgba(255, 255, 255, 0.03); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-crimson\/10 { background-color: rgba(255, 30, 68, 0.1); }
.bg-crimson\/15 { background-color: rgba(255, 30, 68, 0.15); }
.bg-crimson\/20 { background-color: rgba(255, 30, 68, 0.2); }

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }

.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/40 { border-color: rgba(255, 255, 255, 0.4); }
.border-crimson { border-color: var(--crimson); }
.border-crimson\/30 { border-color: rgba(255, 30, 68, 0.3); }
.border-crimson\/40 { border-color: rgba(255, 30, 68, 0.4); }
.border-crimson\/50 { border-color: rgba(255, 30, 68, 0.5); }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.blur-\[100px\] { filter: blur(100px); }
.blur-\[160px\] { filter: blur(160px); }
.blur-\[180px\] { filter: blur(180px); }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ================= RESPONSIVE QUERIES ================= */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:p-12 { padding: 3rem; }
    .sm\:p-14 { padding: 3.5rem; }
    .sm\:pl-10 { padding-left: 2.5rem; }
    .sm\:ml-8 { margin-left: 2rem; }
    .sm\:-left-\[51px\] { left: -51px; }
    .sm\:gap-4 { gap: 1rem; }
    .sm\:gap-8 { gap: 2rem; }
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-end { align-items: flex-end; }
    .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\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:ml-32 { margin-left: 8rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:mt-0 { margin-top: 0; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:flex-row { flex-direction: row; }
}

/* ================= BESPOKE ESPORTS COMPONENTS ================= */

/* Glass Cards */
.glass-card {
    background: linear-gradient(135deg, rgba(16, 18, 27, 0.75) 0%, rgba(10, 11, 18, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 30, 68, 0.3), transparent);
    opacity: 0.6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff1e44 0%, #d61435 100%);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff3356 0%, #ff1e44 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 30, 68, 0.6);
}

.btn-secondary {
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 30, 68, 0.1);
    color: #ffffff;
    border-color: rgba(255, 30, 68, 0.5);
    transform: translateY(-2px);
}

/* Tab button state */
.roster-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    cursor: pointer;
}

.roster-tab-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 30, 68, 0.4);
}

.roster-tab-btn.active {
    background: var(--crimson);
    color: #ffffff;
    border-color: var(--crimson);
    box-shadow: 0 0 20px rgba(255, 30, 68, 0.4);
}

/* Nav links */
.nav-link, .mobile-nav-link {
    text-decoration: none;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--crimson);
    box-shadow: 0 0 10px var(--crimson);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

.animate-pulse {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-bounce {
    animation: bounceSlow 2.5s infinite ease-in-out;
}

/* Form Styles */
input, textarea, select {
    color: #ffffff;
}
input::placeholder, textarea::placeholder {
    color: #71717a;
}
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(255, 30, 68, 0.25);
}
