/**
 * Documentation page styles
 * Clean, readable documentation layout matching VitePress
 */

.docs-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 24px;
}

.docs-content {
    max-width: 768px;
    margin: 0 auto;
}

/* Typography */
.docs-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #2c3e50;
    line-height: 1.2;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.docs-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    color: #2c3e50;
    line-height: 1.3;
    position: relative;
}

.docs-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: #2c3e50;
}

.docs-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem 0;
    color: #2c3e50;
}

.docs-content p {
    margin: 1.25rem 0;
    line-height: 1.7;
    color: #4a5568;
}

.docs-content p:first-of-type {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

/* Links */
.docs-content a {
    color: #0d3b66;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.docs-content a:hover {
    border-bottom-color: #0d3b66;
}

/* Lists */
.docs-content ul,
.docs-content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.docs-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #4a5568;
}

.docs-content li p {
    margin: 0.5rem 0;
}

/* Code blocks */
.docs-content pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2c3e50;
}

.docs-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #c7254e;
    font-weight: 500;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-weight: normal;
}

/* Tables */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

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

.docs-content th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
}

.docs-content td {
    color: #4a5568;
}

.docs-content tbody tr:last-child td {
    border-bottom: none;
}

/* Blockquotes */
.docs-content blockquote {
    border-left: 4px solid #0d3b66;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: #4a5568;
}

.docs-content blockquote p {
    margin: 0.5rem 0;
}

/* File tree / directory structure */
.docs-content .file-tree {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2c3e50;
}

/* Special sections */
.docs-content .warning {
    background: #fef5e7;
    border: 1px solid #f6ad55;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: #744210;
}

.docs-content .info {
    background: #e6fffa;
    border: 1px solid #4fd1c7;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: #1a202c;
}

.docs-content .tip {
    background: #f0fff4;
    border: 1px solid #68d391;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: #1a202c;
}

/* Section dividers */
.docs-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 3rem 0;
}

/* Status badges */
.docs-content .badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-content .badge.success {
    background: #c6f6d5;
    color: #22543d;
}

.docs-content .badge.warning {
    background: #fef5e7;
    color: #744210;
}

.docs-content .badge.error {
    background: #fed7d7;
    color: #742a2a;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-container {
        padding: 1.5rem 16px;
    }
    
    .docs-content h1 {
        font-size: 2rem;
    }
    
    .docs-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .docs-content h3 {
        font-size: 1.25rem;
    }
    
    .docs-content pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .docs-content table {
        font-size: 0.9rem;
    }
    
    .docs-content th,
    .docs-content td {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .docs-container {
        padding: 1rem 12px;
    }
    
    .docs-content h1 {
        font-size: 1.75rem;
    }
    
    .docs-content pre {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
    }
}