/* Documentation Page Styles */
.docs-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
    margin: 20px;
    margin-top: 70px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.docs-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header i {
    font-size: 24px;
    color: #667eea;
}

.sidebar-header h3 {
    margin: 0;
    color: #333;
}

.sidebar-search {
    padding: 15px 20px;
    position: relative;
}

.sidebar-search i {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

.sidebar-search input:focus {
    border-color: #667eea;
}

/* Navigation */
.docs-nav {
    flex: 1;
    padding: 10px 0;
}

.nav-group {
    margin-bottom: 5px;
}

.nav-group-title {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
    font-weight: 500;
}

.nav-group-title:hover {
    background: #e9ecef;
}

.nav-group-title i:first-child {
    width: 20px;
    color: #667eea;
}

.nav-group-title i:last-child {
    margin-left: auto;
    transition: transform 0.2s;
}

.nav-group.open .nav-group-title i:last-child {
    transform: rotate(180deg);
}

.nav-group-items {
    display: none;
    list-style: none;
    padding-left: 44px;
    margin: 0;
}

.nav-group.open .nav-group-items {
    display: block;
}

.nav-group-items li {
    margin: 0;
}

.nav-group-items a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-group-items a i {
    width: 20px;
    font-size: 12px;
    color: #adb5bd;
}

.nav-group-items a:hover {
    background: #e9ecef;
    color: #667eea;
}

.nav-group-items a.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-group-items a.active i {
    color: #667eea;
}

/* Main Content */
.docs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: white;
}

.content-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

.content-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f1f3f5;
    color: #667eea;
}

/* Content Body */
.content-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.doc-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.doc-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.doc-section h1 {
    font-size: 32px;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.doc-section h2 {
    font-size: 24px;
    color: #212529;
    margin: 30px 0 15px;
}

.doc-section h3 {
    font-size: 18px;
    color: #495057;
    margin: 20px 0 10px;
}

.doc-section p {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 15px;
}

.doc-section ul, .doc-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.doc-section li {
    margin: 8px 0;
    line-height: 1.5;
    color: #495057;
}

/* Lead Text */
.lead {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 10px 0;
}

.feature-card p {
    color: #6c757d;
    font-size: 14px;
}

/* Steps */
.steps {
    margin: 30px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-top: 0;
}

/* Code Blocks */
.code-block {
    background: #1e1e1e;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
}

.code-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
    font-size: 13px;
}

.code-header button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.code-header button:hover {
    background: #3d3d3d;
    color: white;
}

.code-block pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* Info Boxes */
.info-box {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.info-box.info {
    background: #e8f4fd;
    border-left: 4px solid #3b82f6;
}

.info-box.tip {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.info-box.warning {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.info-box i {
    font-size: 20px;
}

.info-box.info i { color: #3b82f6; }
.info-box.tip i { color: #f59e0b; }
.info-box.warning i { color: #ef4444; }

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 15px;
}

.category-card h3 {
    margin: 10px 0;
}

.category-link {
    display: inline-block;
    margin-top: 15px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.category-link:hover {
    text-decoration: underline;
}

/* Platform Comparison Table */
.platform-comparison {
    overflow-x: auto;
    margin: 20px 0;
}

.platform-comparison table {
    width: 100%;
    border-collapse: collapse;
}

.platform-comparison th,
.platform-comparison td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.platform-comparison th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Project Stats Grid */
.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.project-stats-grid .stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* Next Steps */
.next-steps {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.next-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.next-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s;
}

.next-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

/* Troubleshoot Items */
.troubleshoot-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.troubleshoot-item h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.troubleshoot-item h3 i {
    color: #667eea;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-method {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.contact-method i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.contact-method h3 {
    margin: 10px 0;
}

.contact-method p {
    font-size: 14px;
    word-break: break-all;
}

/* Content Footer */
.content-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.feedback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback span {
    color: #6c757d;
    font-size: 14px;
}

.feedback button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.feedback button:hover {
    background: #e9ecef;
}

.last-updated {
    color: #adb5bd;
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

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

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

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-wrapper {
        margin: 10px;
        margin-top: 60px;
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .content-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .doc-section h1 {
        font-size: 28px;
    }
    
    .doc-section h2 {
        font-size: 20px;
    }
    
    .feature-grid,
    .category-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .docs-wrapper {
        background: #1a1a2e;
    }
    
    .docs-sidebar {
        background: #16213e;
        border-right-color: #2d2d3a;
    }
    
    .sidebar-header {
        border-bottom-color: #2d2d3a;
    }
    
    .sidebar-header h3 {
        color: #f3f4f6;
    }
    
    .sidebar-search input {
        background: #0f172a;
        border-color: #2d2d3a;
        color: #f3f4f6;
    }
    
    .nav-group-title {
        color: #cbd5e1;
    }
    
    .nav-group-title:hover {
        background: #2d2d3a;
    }
    
    .nav-group-items a {
        color: #9ca3af;
    }
    
    .nav-group-items a:hover {
        background: #2d2d3a;
        color: #667eea;
    }
    
    .docs-content {
        background: #1a1a2e;
    }
    
    .content-header {
        border-bottom-color: #2d2d3a;
    }
    
    .breadcrumb {
        color: #9ca3af;
    }
    
    .doc-section h1,
    .doc-section h2,
    .doc-section h3 {
        color: #f3f4f6;
    }
    
    .doc-section p,
    .doc-section li {
        color: #cbd5e1;
    }
    
    .feature-card,
    .category-card,
    .contact-method {
        background: #1f2937;
    }
    
    .feature-card p,
    .category-card p {
        color: #9ca3af;
    }
    
    .faq-item {
        border-color: #2d2d3a;
    }
    
    .faq-question {
        background: #1f2937;
        color: #f3f4f6;
    }
    
    .faq-question:hover {
        background: #2d2d3a;
    }
    
    .troubleshoot-item {
        background: #1f2937;
    }
    
    .troubleshoot-item h3 {
        color: #f3f4f6;
    }
    
    .content-footer {
        border-top-color: #2d2d3a;
    }
    
    .feedback span {
        color: #9ca3af;
    }
}