/* Documentation Pages Styles */

.docs-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    background: transparent;
    padding: 1rem 1.5rem 1.5rem 0;
    border: none;
    border-right: 1px solid var(--border);
    border-radius: 0;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.125rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.75rem;
}

.sidebar ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.sidebar ul li a:hover {
    color: var(--primary);
}

/* Documentation Content */
.docs-content {
    max-width: 960px;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Document Sections */
.doc-section {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
    padding-top: 1rem;
}

.doc-section h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text);
}

.doc-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.doc-section ul,
.doc-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.doc-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Info and Warning Boxes */
.info-box,
.warning-box,
.tip-box {
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box {
    background: #eff6ff;
    border-color: var(--primary);
    color: #1e40af;
}

.info-box strong {
    color: #1e3a8a;
}

.warning-box {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.warning-box strong {
    color: #7f1d1d;
}

.tip-box {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.tip-box strong {
    color: #14532d;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Next Steps Cards */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.next-step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.next-step-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.next-step-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.next-step-card .btn {
    margin-top: 0.5rem;
}

/* Code Blocks */
code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

pre {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text);
}

tr:hover {
    background: var(--bg-light);
}

/* Screenshot Images */
.doc-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    display: block;
}

.doc-image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Side-by-Side Web & Mobile Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin: 1.5rem 0 2rem 0;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.showcase-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
    text-align: center;
}

.showcase-img-web {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: block;
}

.showcase-img-mobile {
    width: 100%;
    max-width: 270px;
    height: auto;
    border-radius: 14px;
    border: 2px solid #94a3b8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .docs-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .showcase-img-mobile {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .docs-content h1 {
        font-size: 2rem;
    }

    .doc-section h2 {
        font-size: 1.5rem;
    }

    .next-steps {
        grid-template-columns: 1fr;
    }
}