/* ═══════════════════════════════════════════════════════════════
   BASE.CSS - Reset & Typography
   Max 300 Lines | GrowTycoon
   ═══════════════════════════════════════════════════════════════ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--gray-600);
    background-color: var(--dark-bg);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent pull-to-refresh */
body {
    overscroll-behavior-y: contain;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: white;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
}

/* ─── Links ─── */
a {
    color: var(--neon-green);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
    color: var(--neon-blue);
}

/* ─── Buttons ─── */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

button:focus-visible {
    outline: 2px solid var(--neon-green);
    outline-offset: 2px;
}

/* ─── Images ─── */
img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ─── Lists ─── */
ul, ol {
    list-style: none;
}

/* ─── Forms ─── */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ─── Selection ─── */
::selection {
    background-color: var(--neon-green);
    color: var(--dark-bg);
}

/* ─── Scrollbar (Webkit) ─── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* ─── Utility Classes ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-neon { color: var(--neon-green); }
.text-purple { color: var(--neon-purple); }
.text-blue { color: var(--neon-blue); }
.text-muted { color: var(--gray-400); }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
