/* ============================================================
   OptoGantt Quick-Start Guide — Spring Boot
   Minimal, clean documentation styling.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c-dark:     #3d2b1f;
    --c-teal:     #4a9b8e;
    --c-teal-dk:  #357a6e;
    --c-muted:    #7a6355;
    --c-border:   #e0d5c8;
    --c-bg:       #f7f3ee;
    --c-white:    #ffffff;
    --c-code-bg:  #f0ece7;
    --c-step-bg:  #faf7f4;
    --font-body:  "Source Sans 3", "Segoe UI", sans-serif;
    --font-mono:  "JetBrains Mono", "Fira Code", "Consolas", monospace;
    --radius:     6px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--c-dark);
    background: var(--c-bg);
    line-height: 1.7;
}

/* ── Top bar ───────────────────────────────────────────────── */
.top-bar {
    background: var(--c-dark);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar .brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.top-bar .brand span { color: var(--c-teal); }

.top-bar .home-link {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 5px 14px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.top-bar .home-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* ── Page wrapper ──────────────────────────────────────────── */
.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

/* ── Guide header ──────────────────────────────────────────── */
.guide-header {
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 2px solid var(--c-border);
}

.guide-header .eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--c-teal);
    margin-bottom: 10px;
}

.guide-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-dark);
    line-height: 1.25;
    margin-bottom: 14px;
}

.guide-header .intro {
    font-size: 1.05rem;
    color: var(--c-muted);
    max-width: 680px;
    line-height: 1.65;
}

/* ── Live preview section ──────────────────────────────────── */
.preview-section {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 48px;
}

/* Match the 12px gap used between filter pane and chart on gantt.nz demo */
.preview-section #ganttFilterZone {
    margin-bottom: 12px;
}

.preview-section .preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-teal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-section .preview-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

.preview-note {
    font-size: 0.82rem;
    color: var(--c-muted);
    margin-top: 14px;
    font-style: italic;
}

/* ── Section headings ──────────────────────────────────────── */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--c-dark);
    margin: 48px 0 6px;
    padding-top: 8px;
    border-top: 2px solid var(--c-border);
}

.section-intro {
    color: var(--c-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* ── Steps ─────────────────────────────────────────────────── */
.step {
    background: var(--c-step-bg);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-teal);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 16px;
}

.step-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.step-number {
    background: var(--c-teal);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-dark);
}

.step p {
    font-size: 0.95rem;
    color: var(--c-muted);
    margin-bottom: 12px;
    line-height: 1.65;
}

.step p:last-child { margin-bottom: 0; }

.step ul {
    margin: 8px 0 12px 20px;
    font-size: 0.95rem;
    color: var(--c-muted);
}

.step ul li { margin-bottom: 4px; }

/* ── Optional step variant ─────────────────────────────────── */
.step.optional {
    border-left-color: var(--c-muted);
    background: var(--c-bg);
}

.step.optional .step-number {
    background: var(--c-muted);
}

.optional-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    padding: 1px 7px;
    border-radius: 3px;
    margin-left: 6px;
}

/* ── Stop marker ────────────────────────────────────────────── */
.stop-here {
    background: #edf7f5;
    border: 1px solid #b0d9d2;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 0.9rem;
    color: var(--c-teal-dk);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.stop-here::before {
    content: '✓';
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Code blocks ───────────────────────────────────────────── */
.code-block {
    position: relative;
    margin: 14px 0;
}

.code-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--c-muted);
    background: var(--c-code-bg);
    border: 1px solid var(--c-border);
    border-bottom: none;
    padding: 5px 14px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: inline-block;
}

pre {
    background: var(--c-code-bg);
    border: 1px solid var(--c-border);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    padding: 18px 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--c-dark);
    margin: 0;
}

pre.rounded { border-radius: var(--radius); }

.copy-btn {
    position: absolute;
    top: 32px;
    right: 10px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-family: var(--font-body);
    color: var(--c-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.copy-btn:hover {
    background: var(--c-teal);
    color: #fff;
    border-color: var(--c-teal);
}

/* ── Inline code ───────────────────────────────────────────── */
code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--c-code-bg);
    border: 1px solid var(--c-border);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--c-dark);
}

/* ── Note boxes ─────────────────────────────────────────────── */
.note {
    background: #fffbf0;
    border: 1px solid #f0d98a;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #6b5a1a;
    margin: 12px 0;
}

.note strong { color: #4a3d0a; }

/* ── Footer ─────────────────────────────────────────────────── */
.guide-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
    font-size: 0.85rem;
    color: var(--c-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.guide-footer a {
    color: var(--c-teal);
    text-decoration: none;
}

.guide-footer a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .page { padding: 28px 16px 60px; }
    .top-bar { padding: 12px 16px; }
    .guide-header h1 { font-size: 1.5rem; }
    pre { font-size: 0.76rem; }
}
