/* Agents First Repo Docs — base.css
   Variables, reset, tipografía y estilos globales de body.
   ======================================================= */

:root {
    --bg-primary: #f7f7f4;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f1ee;
    --surface: #ffffff;
    --surface-muted: #f7f8f6;
    --surface-raised: #ffffff;
    --border-color: #e2e4df;
    --border-strong: #c9cec6;
    --text-primary: #202123;
    --text-secondary: #5f6368;
    --text-muted: #8a8f95;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: #eaf1ff;
    --success: #15803d;
    --warning: #b45309;
    --code-bg: #0f172a;
    --code-text: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
    --sidebar-width: 292px;
    --sidebar-collapsed-width: 76px;
    --radius: 8px;
    --font-primary: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
    --bg-primary: #101114;
    --bg-secondary: #17181c;
    --bg-tertiary: #202126;
    --surface: #17181c;
    --surface-muted: #1f2025;
    --surface-raised: #1b1c21;
    --border-color: #2d3036;
    --border-strong: #3e424b;
    --text-primary: #ececf1;
    --text-secondary: #b7bbc3;
    --text-muted: #858b96;
    --accent: #7aa2ff;
    --accent-strong: #a7c0ff;
    --accent-soft: rgba(122, 162, 255, 0.14);
    --code-bg: #0b0c10;
    --code-text: #eef2ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.26);
    --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.28);
}

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

*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
    --active-sidebar-width: var(--sidebar-width);
}

body.sidebar-collapsed {
    --active-sidebar-width: var(--sidebar-collapsed-width);
}

button,
input,
select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

pre,
code {
    font-family: var(--font-mono);
}

.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;
}

:where(a, button, input, select, [tabindex]):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
