/* Documentation-specific styles */

.docs-body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Documentation Navigation */
.docs-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-brand a {
    color: white;
    text-decoration: none;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.5rem;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.nav-active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Documentation Container */
.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.docs-sidebar {
    background: white;
    border-radius: 12px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sidebar-content {
    padding: 2rem;
}

.sidebar-content h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.sidebar-nav li {
    margin: 0.25rem 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sidebar-nav a:hover {
    background: #f0f4ff;
    color: #667eea;
}

.sidebar-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.sidebar-cta h4 {
    margin: 0 0 0.5rem 0;
}

.sidebar-cta p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Documentation */
.docs-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.docs-content {
    padding: 3rem;
}

/* Documentation Header */
.docs-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.docs-header h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.docs-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin: 0 0 2rem 0;
}

.docs-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge-primary,
.badge-secondary,
.badge-accent {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-secondary {
    background: #28a745;
    color: white;
}

.badge-accent {
    background: #ffc107;
    color: #000;
}

/* Documentation Sections */
.doc-section {
    margin-bottom: 4rem;
}

.doc-section h2 {
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.doc-section h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: #444;
}

.doc-section h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #555;
}

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

.feature-item-docs {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.feature-icon-docs {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-item-docs h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.feature-item-docs p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Quick Start Options */
.quick-start-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.quick-option {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.quick-option h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.quick-option ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.quick-option li {
    margin: 0.5rem 0;
    color: #555;
}

.btn-quick {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Mode Comparison */
.mode-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.mode-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.mode-card h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-card p {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #667eea;
}

.mode-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.mode-card li {
    margin: 0.25rem 0;
    color: #555;
}

/* Security Info */
.security-info {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.security-info h4 {
    margin: 0 0 1rem 0;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.security-info li {
    margin: 0.25rem 0;
    color: #2d5a2d;
}

/* Code Blocks */
pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-detail {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.feature-detail h3 {
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-detail p,
.feature-detail li {
    color: #555;
}

/* Format Table */
.format-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.format-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.format-table th {
    background: #667eea;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.format-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.format-table tr:nth-child(even) {
    background: #f8f9fa;
}

.format-table tr.format-limited {
    background: #fff3cd;
}

/* Troubleshooting */
.troubleshoot-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    margin: 1rem 0;
}

.troubleshoot-item h3 {
    margin: 0 0 1rem 0;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.troubleshoot-item h4 {
    margin: 1.5rem 0 0.75rem 0;
    color: #495057;
}

.troubleshoot-item ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.troubleshoot-item li {
    margin: 0.5rem 0;
    color: #555;
}

/* Use Case Grid */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.use-case-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.use-case-item h3 {
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.use-case-item ul {
    margin: 0;
    padding-left: 1.5rem;
}

.use-case-item li {
    margin: 0.25rem 0;
    color: #555;
}

/* FAQ Section */
.faq-container {
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.faq-item h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item h3:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.open h3::after {
    transform: rotate(45deg);
}

.faq-item > div[itemprop="acceptedAnswer"] {
    padding: 0 1.5rem 1.5rem;
}

.faq-item > div[itemprop="acceptedAnswer"] p {
    margin: 1rem 0 0 0;
    color: #555;
    line-height: 1.6;
}

.faq-item > div[itemprop="acceptedAnswer"] a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.faq-item > div[itemprop="acceptedAnswer"] a:hover {
    text-decoration: underline;
}

/* Documentation Footer */
.docs-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.footer-content p {
    margin: 0 0 1rem 0;
    color: #666;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: #5a67d8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .docs-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 2rem 1.5rem;
    }
    
    .docs-header h1 {
        font-size: 2rem;
    }
    
    .mode-comparison {
        grid-template-columns: 1fr;
    }
    
    .quick-start-options {
        grid-template-columns: 1fr;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .sidebar-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .docs-badges {
        flex-direction: column;
        align-items: center;
    }
}