/* Docs shared styles — reuses the platform :root palette so the
   documentation pages feel like part of the same product. */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --bg-dark: #0f0f23;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text: #e0e0e0;
    --text-dim: #888;
    --accent: #00d4ff;
    --success: #00ff88;
    --error: #ff4757;
    --border: rgba(255, 255, 255, 0.1);
    --code-bg: rgba(0, 0, 0, 0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}
body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1; z-index: -1;
}

/* Layout */
.docs-wrap { max-width: 880px; margin: 0 auto; padding: 0 24px 80px; }
.docs-header {
    padding: 24px 0; margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
}
.docs-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.docs-logo .logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.docs-logo-text {
    font-size: 1.1rem; font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.docs-nav { display: flex; gap: 18px; font-size: 0.95rem; }
.docs-nav a {
    color: var(--text-dim); text-decoration: none; padding: 4px 0;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.docs-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.docs-nav a.active { color: var(--text); border-bottom-color: var(--primary); }

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; margin-bottom: 16px; }
h1 { font-size: 2.1rem; font-weight: 700; margin-bottom: 8px; }
h2 {
    font-size: 1.5rem; font-weight: 600; margin-top: 48px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 28px; color: var(--accent); }
h4 { font-size: 1rem; font-weight: 600; margin-top: 20px; color: var(--text-dim); }
p, ul, ol { margin-bottom: 16px; color: var(--text); }
ul, ol { padding-left: 24px; }
li { margin-bottom: 6px; }
.lead { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 32px; }
.eyebrow {
    display: inline-block; padding: 4px 12px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 999px; color: var(--primary);
    font-size: 0.8rem; margin-bottom: 16px; letter-spacing: 0.5px;
}

/* Code */
code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    background: var(--code-bg);
    padding: 2px 6px; border-radius: 4px;
    color: var(--accent);
}
pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    overflow-x: auto;
    margin: 12px 0 20px;
}
pre code {
    background: none; padding: 0; color: var(--text);
    font-size: 0.88rem; line-height: 1.6;
}
pre .comment { color: var(--text-dim); }
pre .key { color: var(--accent); }
pre .str { color: var(--success); }

/* Cards / callouts */
.callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 20px 0;
}
.callout.warn { border-left-color: #ffb800; }
.callout.tip  { border-left-color: var(--success); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent); }

/* Tables */
table {
    width: 100%; border-collapse: collapse;
    margin: 16px 0 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden;
}
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: rgba(102, 126, 234, 0.1); color: var(--accent); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td code { white-space: nowrap; }

/* Step list */
.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps > li {
    counter-increment: step;
    position: relative; padding: 18px 20px 18px 60px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; margin-bottom: 14px;
}
.steps > li::before {
    content: counter(step);
    position: absolute; left: 16px; top: 18px;
    width: 32px; height: 32px; line-height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%; text-align: center;
    font-weight: 600; font-size: 0.9rem;
}

/* Inline tag */
.tag {
    display: inline-block; padding: 2px 8px;
    border-radius: 4px; font-size: 0.75rem;
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent); border: 1px solid var(--accent);
    margin-left: 6px; vertical-align: middle;
}

/* Skill cards (/skills) */
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.skill-card:hover { border-color: rgba(102, 126, 234, 0.4); }
.skill-card-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.skill-card h3 {
    margin: 0; font-size: 1.15rem; color: var(--accent);
    font-family: 'Fira Code', 'Consolas', monospace;
}
.skill-desc {
    color: var(--text-dim); font-size: 0.95rem; line-height: 1.6;
    margin-bottom: 12px;
}
.skill-meta {
    display: flex; gap: 10px; flex-wrap: wrap;
    color: var(--text-dim); font-size: 0.85rem;
}
.skill-meta code {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2px 8px;
}
.btn-download {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

footer {
    text-align: center; padding: 30px 0; color: var(--text-dim);
    font-size: 0.85rem; border-top: 1px solid var(--border);
    margin-top: 60px;
}

@media (max-width: 600px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.3rem; }
    .docs-header { flex-direction: column; align-items: flex-start; }
}
