/*
==============================================================================
FILE: /sign/docs/docs.css
PURPOSE: Documentation page styles for KestrelSign
VERSION: 1.0.0
DATE: 2026-02-27
CHANGES:
  - v1.0.0: Initial documentation styles
==============================================================================
*/

/* ==========================================================================
   NAV BRAND (from sign.css - needed for header-sign partial)
   ========================================================================== */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand .logo {
    font-size: 20px;
    color: var(--text-muted);
    gap: 10px;
    }

.nav-brand .logo:hover {
    color: var(--text);
}

.nav-brand .logo img {
    height: 32px;
    width: auto;
}

/* Theme-aware brand images */
img.brand-light {
    display: none !important;
}

[data-theme="light"] img.brand-dark {
    display: none !important;
}

[data-theme="light"] img.brand-light {
    display: inline !important;
}

/* Footer logo sizing */
.footer-logo img {
    height: 24px;
    width: auto;
}

.nav-separator {
    color: var(--text-muted);
    margin: 0 4px;
    font-size: 20px;
}

.product-name {
    font-family: "Urbanist", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

a.product-name {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

a.product-name:hover {
    color: var(--accent);
}

.product-name i {
    color: var(--accent);
    font-size: 24px;
}

/* ==========================================================================
   DOCS LAYOUT
   ========================================================================== */

.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    padding-top: 100px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 30px 30px 30px 60px;
    border-right: 1px solid var(--border);
}

.docs-sidebar h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 28px;
}

.docs-sidebar h3:first-child {
    margin-top: 0;
}

.docs-sidebar a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.docs-sidebar a:hover {
    color: var(--accent);
}

.docs-sidebar a.active {
    color: var(--accent);
    font-weight: 500;
}

/* ==========================================================================
   DOCS CONTENT
   ========================================================================== */

.docs-content {
    padding: 40px 60px 80px;
    max-width: 900px;
}

.docs-content h1 {
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.docs-content .docs-intro {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 50px;
}

/* ==========================================================================
   TOPIC CARDS (INDEX PAGE)
   ========================================================================== */

.docs-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.docs-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.docs-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px var(--shadow);
}

.docs-card h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.docs-card h3 i {
    color: var(--accent);
    font-size: 16px;
}

.docs-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   QUICK START SECTION
   ========================================================================== */

.docs-quickstart {
    margin-top: 40px;
}

.docs-quickstart h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

.docs-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.docs-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: start;
}

.docs-step-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.docs-step h4 {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.docs-step p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   CONTENT PAGES - PROSE STYLES
   ========================================================================== */

.docs-content h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 16px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.docs-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.docs-content h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
}

.docs-content p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.docs-content code {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.docs-content pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.docs-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 6px;
    color: var(--text);
}

.docs-content .callout {
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.docs-content .callout p {
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE - DOCS
   ========================================================================== */

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 20px 30px;
    }

    .docs-content {
        padding: 30px;
    }

    .docs-cards {
        grid-template-columns: 1fr;
    }
}

/*
==============================================================================
END OF FILE: /sign/docs/docs.css | VERSION: 1.0.0
==============================================================================
*/
