/**
 * ShotWars Base Styles v23
 * Reset + Global Styles + Gradient Background
 */

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

/* ===================================
   ROOT
   =================================== */
html {
    font-size: 16px;
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--gray-900);
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Background color fallback */
    background-color: #0f0a1e;
}

/* Fixed background that works on mobile */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: var(--gradient-primary);
    background-size: cover;
}

/* ===================================
   LINKS
   =================================== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-hover);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===================================
   IMAGES
   =================================== */
img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===================================
   BUTTONS
   =================================== */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===================================
   INPUTS
   =================================== */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Remove number spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ===================================
   FOCUS VISIBLE
   =================================== */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===================================
   SELECTION
   =================================== */
::selection {
    background: var(--color-primary);
    color: var(--white);
}

/* ===================================
   SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--glass-black-10);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-white-30);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--glass-white-40);
}

/* ===================================
   UTILITIES
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

/* ===================================
   RESPONSIVE FONT SIZE
   =================================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
}
