/* Documentation Specific Styles - Light Theme */

/* Override dark theme from modern.css */
body {
    background: #ffffff !important;
    color: #334155;
}

/* Sticky Header */
.docs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.docs-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.docs-header .nav-brand {
    display: flex;
    align-items: center;
}

.docs-header .nav-logo {
    height: 36px;
}

.docs-header .nav-links {
    display: flex;
    gap: 2rem;
}

.docs-header .nav-link {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.docs-header .nav-link:hover {
    color: #0891b2;
}

.docs-header .nav-actions {
    display: flex;
    gap: 0.75rem;
}

.docs-header .nav-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.docs-header .nav-btn.ghost {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.docs-header .nav-btn.ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.docs-header .nav-btn.primary {
    background: #0891b2;
    border: none;
    color: white;
}

.docs-header .nav-btn.primary:hover {
    background: #0e7490;
}

/* Layout */
.docs-layout {
    display: flex;
    min-height: calc(100vh - 100px);
    margin-top: 100px;
    background: #ffffff;
}

.docs-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.docs-content {
    flex: 1;
    padding: 3rem;
    max-width: 900px;
    color: #334155;
    background: #ffffff;
}

/* Sidebar Navigation */
.docs-nav-section {
    margin-bottom: 1.5rem;
}

.docs-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.docs-nav-list {
    list-style: none;
}

.docs-nav-list li {
    margin-bottom: 0.25rem;
}

.docs-nav-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.docs-nav-list a:hover {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

.docs-nav-list a.active {
    background: rgba(8, 145, 178, 0.15);
    color: #0891b2;
    font-weight: 600;
}

/* Hero Section for Docs */
.docs-hero {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border: 1px solid #e2e8f0;
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.docs-hero-chips {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.docs-chip {
    background: #0891b2;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.docs-chip-outline {
    background: transparent;
    border: 1px solid #0891b2;
    color: #0891b2;
}

.docs-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
}

.docs-hero-subtitle {
    font-size: 1.25rem;
    color: #0891b2;
    font-weight: 600;
    margin-bottom: 1rem;
}

.docs-hero p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Stats Bar */
.docs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.docs-stat {
    text-align: center;
}

.docs-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0891b2;
    font-family: 'Space Grotesk', sans-serif;
}

.docs-stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

/* Content Sections */
.docs-section {
    margin-bottom: 3rem;
}

.docs-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
}

.docs-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.docs-section p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

.docs-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.docs-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.docs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.docs-card:hover {
    border-color: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.docs-card-highlight {
    border: 2px solid #0891b2;
}

.docs-card h4 {
    font-size: 1rem;
    color: #0891b2;
    margin-bottom: 0.5rem;
}

.docs-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: #64748b;
}

/* Feature Cards */
.docs-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.docs-feature-card:hover {
    border-color: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.docs-feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.docs-feature-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.docs-feature-card .chip {
    display: inline-block;
    background: rgba(20, 184, 166, 0.15);
    color: #0d9488;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Callout Boxes */
.docs-callout {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.docs-callout-info {
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.08);
}

.docs-callout-warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.docs-callout-tip {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
}

.docs-callout-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.docs-callout-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #0f172a;
}

.docs-callout p, .docs-callout ul {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #475569;
}

/* Step Lists */
.docs-steps {
    list-style: none;
    counter-reset: step-counter;
}

.docs-steps > li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    counter-increment: step-counter;
}

.docs-steps > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: #0891b2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.docs-steps > li strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.docs-steps > li span {
    font-size: 0.875rem;
    color: #64748b;
}

.docs-steps li ul,
.docs-steps li ol {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.docs-steps li ul li,
.docs-steps li ol li {
    padding-left: 0;
    margin-bottom: 0.25rem;
}

.docs-steps li ul li::before,
.docs-steps li ol li::before {
    display: none;
}

/* Feature Lists */
.docs-feature-list {
    list-style: none;
}

.docs-feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.docs-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #14b8a6;
    font-weight: bold;
}

/* Code Blocks */
.docs-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #334155;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.docs-code code {
    white-space: pre;
    color: #e2e8f0;
    background: transparent;
}

/* Inline Code */
code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
    color: #0891b2;
}

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

.docs-table th,
.docs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.docs-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.docs-table td {
    color: #475569;
}

.docs-table tr:hover {
    background: #f8fafc;
}

/* Troubleshooting Cards */
.docs-troubleshoot {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.docs-troubleshoot-issue {
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.docs-troubleshoot p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #64748b;
}

/* CTA Section */
.docs-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-top: 3rem;
}

.docs-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
}

.docs-cta p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.docs-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.4);
}

.btn-outline {
    background: transparent;
    color: #0891b2;
    border: 2px solid #0891b2;
}

.btn-outline:hover {
    background: rgba(8, 145, 178, 0.1);
}

/* Video Embed */
.docs-video {
    margin-bottom: 2rem;
}

.docs-video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.docs-video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.docs-video-container video {
    width: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-grid-3,
    .docs-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .docs-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
        margin-top: 80px;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .docs-content {
        padding: 1.5rem;
    }
    
    .docs-hero h1 {
        font-size: 1.75rem;
    }
    
    .docs-grid-3,
    .docs-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .docs-stats {
        grid-template-columns: 1fr 1fr;
    }
}
