/* =============================================================================
   DESPAIR BOT — Base CSS
   CSS variables, reset, typography, and global styles.
   ============================================================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
    --bg-primary: #0c0c0f;
    --bg-secondary: #13131a;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222e;
    --bg-input: #15151f;
    --border: #2a2a3a;
    --border-hover: #3a3a4a;
    --accent-cyan: #00d4ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.15);
    --accent-cyan-glow: rgba(0, 212, 255, 0.3);
    --accent-amber: #ffb800;
    --accent-amber-dim: rgba(255, 184, 0, 0.15);
    --accent-danger: #ff3860;
    --accent-danger-dim: rgba(255, 56, 96, 0.15);
    --accent-success: #00e676;
    --accent-success-dim: rgba(0, 230, 118, 0.15);
    --text-primary: #e8e8f0;
    --text-secondary: #888899;
    --text-tertiary: #555566;
    --text-mono: 'Space Mono', monospace;
    --text-display: 'Syne', sans-serif;
    --sidebar-width: 240px;
    --border-radius: 6px;
    --border-radius-lg: 12px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-cyan: 0 0 20px rgba(0, 212, 255, 0.1);
}

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

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

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

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

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* --- Selection --- */
::selection {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}

/* --- Utility Classes --- */
.mono { font-family: var(--text-mono); }
.display { font-family: var(--text-display); }
.text-cyan { color: var(--accent-cyan); }
.text-amber { color: var(--accent-amber); }
.text-danger { color: var(--accent-danger); }
.text-success { color: var(--accent-success); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Screen reader only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
