/* === DOCS PAGE STYLES === */

.docs-body {
    background: #f8fafc;
}

/* Navbar override for docs */
.navbar--docs {
    background: rgba(5, 17, 30, 0.96);
}

.navbar--docs .nav-links {
    gap: 18px;
}

.navbar--docs .nav-links a {
    font-size: 0.82em;
}

/* === DOCS HERO === */
.docs-hero {
    background: linear-gradient(135deg, #05111e 0%, #0d2137 50%, #0a1a2e 100%);
    padding: 140px 40px 64px;
    text-align: center;
    color: white;
    border-bottom: 2px solid var(--color-accent);
}

.docs-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.docs-badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.4);
    color: var(--color-accent);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.docs-hero h1 {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.docs-hero-sub {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.docs-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 28px;
    max-width: 600px;
    margin: 0 auto;
}

.docs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.docs-meta-label {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.docs-meta-value {
    font-size: 0.95em;
    font-weight: 700;
    color: white;
}

.docs-meta-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
}

/* === TABLE OF CONTENTS === */
.docs-toc-section {
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 48px 40px;
}

.docs-toc {
    max-width: 720px;
    margin: 0 auto;
}

.docs-toc-title {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 20px;
}

.docs-toc-list {
    list-style: none;
    counter-reset: toc;
    padding: 0;
}

.docs-toc-list > li {
    counter-increment: toc;
    margin-bottom: 10px;
}

.docs-toc-list > li > a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.docs-toc-list > li > a::before {
    content: counter(toc) ". ";
    color: var(--color-accent);
    font-weight: 800;
}

.docs-toc-list > li > a:hover,
.docs-toc-list > li > a.active {
    background: rgba(0, 180, 216, 0.08);
    color: var(--color-accent);
}

.docs-toc-list ol {
    list-style: none;
    padding-left: 32px;
    margin-top: 4px;
}

.docs-toc-list ol li a {
    display: block;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.88em;
    padding: 4px 16px;
    border-radius: 6px;
    transition: color 0.2s;
}

.docs-toc-list ol li a:hover {
    color: var(--color-accent);
}

/* === DOCS MAIN === */
.docs-main {
    padding: 0 40px 80px;
}

.docs-container {
    max-width: 960px;
    margin: 0 auto;
}

/* === DOCS SECTION === */
.docs-section {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.docs-section:last-of-type {
    border-bottom: none;
}

.docs-section-number {
    font-size: 4em;
    font-weight: 900;
    color: rgba(0, 180, 216, 0.08);
    line-height: 1;
    margin-bottom: -16px;
}

.docs-section > h2 {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    line-height: 1.25;
}

.docs-section h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-text);
    margin: 36px 0 16px;
    padding-top: 8px;
}

.docs-section h4 {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--color-text);
    margin: 20px 0 10px;
}

.docs-section p {
    font-size: 0.95em;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.docs-section ul,
.docs-section ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.docs-section li {
    font-size: 0.93em;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 6px;
}

.docs-section li strong {
    color: var(--color-text);
}

/* === INFO GRID (passport) === */
.docs-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.docs-info-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px 24px;
}

.docs-info-label {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.docs-info-value {
    font-size: 1em;
    font-weight: 700;
    color: var(--color-text);
}

/* === ROLES GRID === */
.docs-roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.docs-role-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
}

.docs-role-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.docs-role-name {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--color-text);
    margin-bottom: 8px;
}

.docs-role-desc {
    font-size: 0.84em;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* === FEATURE LIST === */
.docs-feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.docs-feature {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.docs-feature:hover {
    border-color: var(--color-accent);
}

.docs-feature-marker {
    width: 4px;
    min-height: 100%;
    border-radius: 2px;
    background: var(--color-accent);
    flex-shrink: 0;
}

.docs-feature-marker--orange {
    background: #f59e0b;
}

.docs-feature-marker--green {
    background: #22c55e;
}

.docs-feature-marker--blue {
    background: #3b82f6;
}

.docs-feature strong {
    display: block;
    color: var(--color-text);
    font-size: 0.95em;
    margin-bottom: 6px;
}

.docs-feature p {
    font-size: 0.88em;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* === TABLE === */
.docs-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.docs-table thead {
    background: #f1f5f9;
}

.docs-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.88em;
    border-bottom: 2px solid var(--color-border);
    letter-spacing: 0.02em;
}

.docs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-table tbody tr:hover {
    background: rgba(0, 180, 216, 0.03);
}

.docs-table td strong {
    color: var(--color-text);
}

/* === FIGURE === */
.docs-figure {
    margin: 28px 0;
    text-align: center;
}

.docs-figure-img {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.docs-figure figcaption {
    margin-top: 12px;
    font-size: 0.84em;
    color: var(--color-text-muted);
    font-style: italic;
}

/* === ARCHITECTURE GRID === */
.docs-arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.docs-arch-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 24px;
    border-top: 3px solid var(--color-accent);
}

.docs-arch-title {
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.95em;
    margin-bottom: 8px;
}

.docs-arch-card p {
    font-size: 0.87em;
    margin-bottom: 0;
}

/* === STEPS === */
.docs-steps {
    position: relative;
    margin: 24px 0;
    padding-left: 40px;
}

.docs-steps::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.docs-step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
}

.docs-step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95em;
    position: relative;
    z-index: 1;
    margin-left: -40px;
}

.docs-step-content {
    flex: 1;
    padding-top: 6px;
}

.docs-step-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.docs-step-content ul {
    margin-bottom: 0;
}

/* === CHECKLIST === */
.docs-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--color-border);
}

.docs-check-item::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.docs-check-ok {
    color: #166534;
}

.docs-check-ok::before {
    background: #22c55e;
    content: '\2713';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 800;
}

/* === NOTE === */
.docs-note {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 0.9em;
    color: #0c4a6e;
    line-height: 1.7;
    margin: 24px 0;
}

.docs-note--accent {
    background: rgba(0, 180, 216, 0.06);
    border-color: rgba(0, 180, 216, 0.3);
    border-left-color: var(--color-accent);
    color: var(--color-text);
}

/* === SCENARIO STEPS === */
.docs-scenario-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.docs-scenario-step {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9em;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.docs-scenario-step strong {
    color: var(--color-text);
}

.docs-scenario-badge {
    flex-shrink: 0;
    font-size: 0.72em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.docs-scenario-badge--ai {
    background: rgba(0, 180, 216, 0.12);
    color: var(--color-accent);
}

.docs-scenario-badge--op {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.docs-scenario-badge--resp {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* === SUPPORT GRID === */
.docs-support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0 28px;
}

.docs-support-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
}

.docs-support-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.docs-support-title {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--color-text);
    margin-bottom: 6px;
}

.docs-support-desc {
    font-size: 0.82em;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* === PRIORITY BADGES === */
.docs-priority {
    display: inline-block;
    font-size: 0.82em;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.docs-priority--critical {
    background: #fef2f2;
    color: #dc2626;
}

.docs-priority--high {
    background: #fff7ed;
    color: #ea580c;
}

.docs-priority--medium {
    background: #fffbeb;
    color: #d97706;
}

.docs-priority--low {
    background: #f0fdf4;
    color: #16a34a;
}

/* === FOOTER NOTE === */
.docs-footer-note {
    margin-top: 60px;
    padding: 32px;
    background: #f1f5f9;
    border-radius: 12px;
    text-align: center;
}

.docs-footer-note p {
    font-size: 0.85em;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.docs-footer-copy {
    margin-top: 16px !important;
    font-size: 0.8em !important;
    color: #94a3b8 !important;
}

.docs-footer-copy a {
    color: var(--color-accent);
    text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .docs-hero {
        padding: 120px 24px 48px;
    }

    .docs-main {
        padding: 0 24px 60px;
    }

    .docs-toc-section {
        padding: 36px 24px;
    }

    .docs-info-grid,
    .docs-roles-grid,
    .docs-arch-grid {
        grid-template-columns: 1fr;
    }

    .docs-support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs-section-number {
        font-size: 2.5em;
    }

    .docs-section > h2 {
        font-size: 1.4em;
    }

    .docs-meta {
        flex-direction: column;
        gap: 12px;
    }

    .docs-meta-divider {
        width: 40px;
        height: 1px;
    }

    .navbar--docs .burger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .docs-support-grid {
        grid-template-columns: 1fr;
    }
}
