/* DOCUMENTATION STYLES */

/* Docs Container Layout */
.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.docs-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.docs-nav-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--muted-foreground));
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.docs-nav a {
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.docs-nav a:hover {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.docs-nav a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--gradient-indigo);
    font-weight: 500;
}

/* Main Content */
.docs-content {
    max-width: 800px;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.docs-breadcrumb a {
    color: var(--gradient-indigo);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    text-decoration: underline;
}

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

.docs-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.docs-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.docs-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.docs-content p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.8;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.docs-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.docs-content a {
    color: var(--gradient-indigo);
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

.docs-intro {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Cards Grid */
.docs-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.docs-card {
    display: block;
    padding: 1.5rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.docs-card:hover {
    border-color: var(--gradient-indigo);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.docs-card-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gradient-indigo), var(--gradient-purple));
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.docs-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.docs-card p {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0;
    line-height: 1.6;
}

/* Next/Prev Navigation */
.docs-next {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-next span {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

.docs-next a {
    color: var(--gradient-indigo);
    font-weight: 500;
    text-decoration: none;
}

.docs-next a:hover {
    text-decoration: underline;
}

/* Info Boxes */
.docs-note, .docs-warning, .docs-tip {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.docs-note {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--gradient-indigo);
}

.docs-note p {
    color: hsl(var(--foreground));
    margin-bottom: 0;
}

.docs-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
}

.docs-warning p {
    color: hsl(var(--foreground));
    margin-bottom: 0;
}

.docs-tip {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
}

.docs-tip p {
    color: hsl(var(--foreground));
    margin-bottom: 0;
}

/* Code/Command boxes */
.docs-code {
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

code {
    background: hsl(var(--secondary));
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875em;
}

/* Tables */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.docs-table th {
    background: hsl(var(--secondary));
    font-weight: 600;
    color: hsl(var(--foreground));
}

.docs-table td {
    color: hsl(var(--muted-foreground));
}

.docs-table tr:hover td {
    background: hsl(var(--secondary));
}

/* Screenshots placeholder */
.docs-screenshot {
    width: 100%;
    background: linear-gradient(135deg, hsl(var(--secondary)) 0%, var(--signature-blue-light) 100%);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.docs-screenshot-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile sidebar toggle */
.docs-mobile-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    text-align: left;
}

.docs-mobile-toggle::after {
    content: ' +';
    float: right;
}

.docs-mobile-toggle.open::after {
    content: ' -';
}

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

    .docs-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }

    .docs-nav {
        display: none;
    }

    .docs-nav.open {
        display: flex;
    }

    .docs-mobile-toggle {
        display: block;
    }

    .docs-card-grid {
        grid-template-columns: 1fr;
    }
}
