/* ==========================================================================
   SIGTEKX API — RESEARCHER API DEEP DIVE
   ========================================================================== */

.sigtekx-api-page {
    padding: 4rem 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* --- Hero --- */
.api-hero {
    margin-bottom: 5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 3rem;
}

.api-hero .breadcrumb {
    font-family: 'Kode Mono', monospace;
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.api-hero .breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.api-hero .breadcrumb a:hover {
    color: var(--accent-primary);
}

.api-hero .breadcrumb .sep {
    color: #444;
}

.api-hero h1 {
    font-size: 3rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.api-hero .module-tag {
    font-family: 'Kode Mono', monospace;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    display: block;
}

.api-hero .abstract {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d0d0d0;
    max-width: 800px;
}

/* --- Section Titles --- */
.api-section {
    margin-bottom: 5rem;
}

.api-section-title {
    font-size: 1.5rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.api-section-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, #333, transparent);
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 2rem;
}

.section-text code {
    font-family: 'Kode Mono', monospace;
    font-size: 0.95em;
    color: var(--accent-primary);
    background: rgba(255, 69, 0, 0.06);
    padding: 1px 6px;
    border: 1px solid rgba(255, 69, 0, 0.15);
}

/* --- Three Ways to Start cards --- */
.init-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #222;
    border: 1px solid #222;
    margin: 2rem 0 3rem 0;
}

.init-card {
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
}

.init-header {
    padding: 1.2rem 1.6rem;
    background: rgba(255, 69, 0, 0.04);
    border-bottom: 1px solid #1a1a1a;
}

.init-name {
    font-family: 'Kode Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.init-title {
    font-family: 'Kode Mono', monospace;
    font-size: 1rem;
    color: #fff;
}

.init-snippet {
    padding: 1.2rem 1.6rem;
    font-family: 'Kode Mono', monospace;
    font-size: 0.8rem;
    color: #cfcfcf;
    background: #060606;
    border-bottom: 1px solid #1a1a1a;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.init-snippet .k {
    color: var(--accent-primary);
}

.init-snippet .c {
    color: #555;
}

.init-body {
    padding: 1.3rem 1.6rem;
    font-size: 0.88rem;
    color: #888;
    line-height: 1.65;
    flex-grow: 1;
}

/* --- CLI scripts --- */
.cli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2px;
    background: #222;
    border: 1px solid #222;
    margin: 2rem 0 3rem 0;
}

.cli-card {
    background: #0a0a0a;
    padding: 1.5rem 1.6rem;
}

.cli-name {
    font-family: 'Kode Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.cli-scope {
    font-family: 'Kode Mono', monospace;
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9rem;
}

.cli-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cli-list li {
    font-size: 0.85rem;
    color: #888;
    padding: 6px 0 6px 14px;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    line-height: 1.5;
}

.cli-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 6px;
    color: #444;
    font-family: 'Kode Mono', monospace;
}

.cli-list li:last-child {
    border-bottom: none;
}

/* --- Architecture Layer Grid (reused) --- */
.layer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px;
    background: #222;
    border: 1px solid #222;
    margin-bottom: 3rem;
}

.layer-item {
    background: #0a0a0a;
    padding: 1.5rem;
}

.layer-name {
    font-family: 'Kode Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.layer-role {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

/* --- Environment Table --- */
.env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
    background: #222;
    border: 1px solid #222;
    margin: 2rem 0 3rem 0;
}

.env-item {
    background: #0a0a0a;
    padding: 1.3rem 1.5rem;
}

.env-name {
    font-family: 'Kode Mono', monospace;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 6px;
}

.env-role {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
}

/* --- Highlight Grid (reused pattern) --- */
.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #222;
    border: 1px solid #222;
    margin: 2rem 0;
}

.highlight-card {
    background: #0a0a0a;
    padding: 2rem;
}

.highlight-title {
    font-family: 'Kode Mono', monospace;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.highlight-body {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

.highlight-body strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.highlight-body code {
    font-family: 'Kode Mono', monospace;
    font-size: 0.95em;
    color: var(--accent-primary);
    background: rgba(255, 69, 0, 0.06);
    padding: 1px 6px;
    border: 1px solid rgba(255, 69, 0, 0.15);
}

/* --- Callout block (RTF convention, CSV schema notes) --- */
.callout {
    background: #0a0a0a;
    border: 1px solid #222;
    border-left: 2px solid var(--accent-primary);
    padding: 1.5rem 1.8rem;
    margin: 1.5rem 0;
}

.callout-title {
    font-family: 'Kode Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}

.callout-body {
    font-size: 0.92rem;
    color: #b5b5b5;
    line-height: 1.7;
}

.callout-body code {
    font-family: 'Kode Mono', monospace;
    font-size: 0.95em;
    color: var(--accent-primary);
    background: rgba(255, 69, 0, 0.06);
    padding: 1px 6px;
    border: 1px solid rgba(255, 69, 0, 0.15);
}

/* --- Actions --- */
.api-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .api-hero h1 {
        font-size: 2.2rem;
    }

    .init-grid {
        grid-template-columns: 1fr;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }
}

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

    .cli-grid {
        grid-template-columns: 1fr;
    }

    .env-grid {
        grid-template-columns: 1fr;
    }
}
