/* Modern Documentation Styling */

.documentation-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    line-height: 1.7;
    color: #e5e7eb;
}

/* Typography */
.documentation-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    color: #f9fafb;
    border-bottom: 2px solid #374151;
    padding-bottom: 0.5rem;
}

.documentation-page h1:first-child {
    margin-top: 0;
}

.documentation-page h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: #f3f4f6;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.4rem;
}

.documentation-page h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem 0;
    color: #e5e7eb;
}

.documentation-page h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    color: #d1d5db;
}

/* Paragraphs and Lists */
.documentation-page p {
    margin: 1rem 0;
    color: #d1d5db;
}

.documentation-page ul,
.documentation-page ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.documentation-page li {
    margin: 0.5rem 0;
    color: #d1d5db;
}

.documentation-page li::marker {
    color: #9ca3af;
}

/* Code Blocks */
.documentation-page pre {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.documentation-page code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.documentation-page pre code {
    color: #e5e7eb;
    background: none;
    padding: 0;
}

/* Inline Code */
.documentation-page p code,
.documentation-page li code,
.documentation-page td code {
    background: #1f2937;
    color: #fbbf24;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    border: 1px solid #374151;
}

/* Blockquotes */
.documentation-page blockquote {
    border-left: 4px solid #3b82f6;
    background: #1f2937;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.documentation-page blockquote p {
    margin: 0.5rem 0;
    color: #d1d5db;
}

/* Links */
.documentation-page a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.documentation-page a:hover {
    color: #93c5fd;
    border-bottom-color: #60a5fa;
}

/* Horizontal Rules */
.documentation-page hr {
    border: none;
    border-top: 1px solid #374151;
    margin: 3rem 0;
}

/* Tables */
.documentation-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
}

.documentation-page thead {
    background: #374151;
}

.documentation-page th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #f9fafb;
    border-bottom: 2px solid #4b5563;
}

.documentation-page td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #374151;
    color: #d1d5db;
}

.documentation-page tr:last-child td {
    border-bottom: none;
}

.documentation-page tbody tr:hover {
    background: #374151;
}

/* Checkmarks and Status Icons */
.documentation-page li:has(> input[type="checkbox"]) {
    list-style: none;
    margin-left: -1.5rem;
}

.documentation-page input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Special callout boxes */
.documentation-page strong:first-child {
    color: #fbbf24;
}

/* File paths and special emphasis */
.documentation-page em {
    color: #a78bfa;
    font-style: italic;
}

/* Syntax highlighting for specific languages */
.documentation-page pre[class*="language-bash"] code,
.documentation-page pre[class*="language-shell"] code {
    color: #6ee7b7;
}

.documentation-page pre[class*="language-yaml"] code {
    color: #fca5a5;
}

.documentation-page pre[class*="language-nginx"] code {
    color: #93c5fd;
}

/* Section dividers */
.documentation-page h2::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, transparent);
    margin-bottom: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .documentation-page {
        padding: 1.5rem 1rem;
    }

    .documentation-page h1 {
        font-size: 2rem;
    }

    .documentation-page h2 {
        font-size: 1.5rem;
    }

    .documentation-page pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .documentation-page {
        max-width: 100%;
        color: #000;
    }

    .documentation-page pre {
        background: #f5f5f5;
        border: 1px solid #ccc;
    }

    .documentation-page a {
        color: #0066cc;
    }
}