/* ═══════════════════════════════════════════════════════════════════════
   Custom theme · docs.zonasaridas.com.ar
   Paleta unificada con el resto del sistema (clave za-theme)
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --color-primary: #3b82f6;
    --color-primary-rgb: 59, 130, 246;
    --color-accent: #3b82f6;
    --color-link: #3b82f6;
    --font-family-sans: 'Outfit', sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}

/* ── Headings ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-weight: 800; }

/* ── Links ────────────────────────────────────────────────────────────── */
a { color: #3b82f6; }
a:hover { color: #1d4ed8; }

/* ── Code ─────────────────────────────────────────────────────────────── */
code, pre, kbd, samp {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.88em;
}

pre {
    border-radius: 8px;
    padding: 1rem 1.2rem;
    line-height: 1.55;
}

code {
    padding: 0.1em 0.4em;
    border-radius: 5px;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ── Tables ───────────────────────────────────────────────────────────── */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    font-size: 0.92em;
}

th, td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid rgba(127, 127, 127, 0.15);
}

th {
    font-weight: 700;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ── Callouts (notice shortcode) ──────────────────────────────────────── */
.notices {
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    border-left: 4px solid;
}
.notices.info-style    { border-color: #38bdf8; background: rgba(56, 189, 248, 0.08); }
.notices.tip-style     { border-color: #22c55e; background: rgba(34, 197, 94, 0.08); }
.notices.warning-style { border-color: #f59e0b; background: rgba(245, 158, 11, 0.08); }
.notices.note-style    { border-color: #a855f7; background: rgba(168, 85, 247, 0.08); }

/* ── Sidebar / TOC ────────────────────────────────────────────────────── */
#sidebar {
    background: linear-gradient(180deg, #141b2d 0%, #0b1120 100%);
}

#sidebar h2,
#sidebar h3 {
    color: #f8fafc;
}

#sidebar a {
    color: #cbd5e1;
    transition: all 0.15s ease;
}

#sidebar a:hover,
#sidebar a:focus {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
}

#sidebar ul.topics > li.active > a {
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

/* ── Header brand ─────────────────────────────────────────────────────── */
#sidebar #header-wrapper {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 1.2rem 1rem;
}

#sidebar #header h1 {
    color: #ffffff;
    font-weight: 800;
}

/* ── Tags (taxonomy) ──────────────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
}

/* ── Mermaid diagrams ─────────────────────────────────────────────────── */
.mermaid {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(127, 127, 127, 0.05);
    border-radius: 8px;
}

/* ── Print-friendly ───────────────────────────────────────────────────── */
@media print {
    #sidebar, #top-bar, .nav-pages { display: none !important; }
    #body { margin-left: 0 !important; }
    a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ── Reduce motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
