/* ==============================================================
   AICommandTool-Docs.css – Additional styles for the documentation page
   Extends AICommandTool-Landing.css
   ============================================================== */

/* Table of Contents */
.toc-panel {
    animation-delay: 0s !important;
}

.toc-list {
    margin: 0;
    padding-left: 22px;
    columns: 2;
    column-gap: 32px;
    color: var(--ink-soft);
}

.toc-list li {
    padding: 4px 0;
    break-inside: avoid;
}

.toc-list a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc-list a:hover {
    color: var(--brand);
}

/* Documentation sections */
.doc-section {
    scroll-margin-top: 24px;
}

.doc-section h3 {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.doc-section h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 22px;
    margin-bottom: 10px;
}

/* Links inside doc sections — visible on dark backgrounds */
.doc-section a,
.faq-item a {
    color: var(--brand-2);
    text-decoration: underline;
    text-decoration-color: rgba(255, 154, 86, 0.35);
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.doc-section a:hover,
.faq-item a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.doc-section h5 {
    font-size: 0.98rem;
    color: var(--brand-2);
    margin-top: 16px;
    margin-bottom: 8px;
    font-family: "Space Grotesk", Segoe UI, Tahoma, sans-serif;
}

.doc-section p {
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.doc-section ol,
.doc-section ul {
    color: var(--ink-soft);
    padding-left: 22px;
    margin: 8px 0 14px;
    display: grid;
    gap: 6px;
}

.doc-section li::marker {
    color: var(--brand);
}

.doc-section li ul,
.doc-section li ol {
    margin-top: 6px;
    margin-bottom: 0;
}

/* Tables */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 18px;
    font-size: 0.93rem;
}

.doc-table thead {
    border-bottom: 2px solid rgba(255, 121, 46, 0.2);
}

.doc-table th {
    text-align: left;
    padding: 10px 14px;
    color: #fff;
    font-family: "Space Grotesk", Segoe UI, Tahoma, sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-table td {
    padding: 9px 14px;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.doc-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.doc-table code {
    font-size: 0.88em;
}

/* Comparison table specific */
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
    text-align: center;
    min-width: 100px;
}

/* Callout boxes */
.callout {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    border-left: 4px solid;
}

.callout strong {
    color: #fff;
}

.callout-info {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: #3b82f6;
    color: var(--ink-soft);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: #f59e0b;
    color: var(--ink-soft);
}

/* Code blocks */
.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: var(--ink);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-label {
    font-size: 0.82rem;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 6px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pro badge */
.pro-badge {
    display: inline-block;
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff !important;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px !important;
}

/* FAQ items */
.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #fff;
    font-size: 1.02rem;
    margin-bottom: 6px;
    margin-top: 0;
}

.faq-item p {
    margin-bottom: 0;
}

/* Keyboard shortcuts */
kbd {
    display: inline-block;
    padding: 3px 8px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.85em;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* ================================================================
   Documentation Screenshots
   ================================================================ */
.doc-screenshot {
    margin: 16px 0 20px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-screenshot:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 121, 46, 0.12);
}

.doc-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-caption {
    display: block;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--ink-soft);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--line);
    font-style: italic;
    letter-spacing: 0.01em;
}

/* Responsive TOC */
@media (max-width: 680px) {
    .toc-list {
        columns: 1;
    }
}
