/* Documentation Styles */

.docs-main {
    padding: 40px 0 80px;
    min-height: calc(100vh - 100px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Styles */
.docs-sidebar {
    position: sticky;
    top: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.sidebar-nav li {
    margin-bottom: 8px;
}

.nav-link {
    color: #b0bec5;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
    transform: translateX(4px);
}

.nav-link.active {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    border-left: 3px solid #64b5f6;
    padding-left: 9px;
}

/* Content Styles */
.docs-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.docs-header {
    margin-bottom: 48px;
    text-align: center;
}

.docs-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-description {
    font-size: 18px;
    color: #b0bec5;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
.docs-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.docs-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    margin-top: 32px;
}

.docs-section h3:first-child {
    margin-top: 0;
}

.docs-section p {
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 16px;
}

.docs-section ul,
.docs-section ol {
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-section li {
    margin-bottom: 8px;
}

/* Code Blocks */
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    font-family: 'JetBrains Mono', monospace;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
    position: relative;
    display: block;
    visibility: visible;
}

/* Custom Scrollbar for Code Blocks */
.code-block::-webkit-scrollbar {
    width: 12px;
}

.code-block::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 4px 0;
}

.code-block::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.code-block::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    border: 2px solid rgba(0, 0, 0, 0.6);
}

.code-block::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.05);
}

/* Firefox Scrollbar */
.code-block {
    scrollbar-width: auto;
    scrollbar-color: #64b5f6 rgba(255, 255, 255, 0.05);
}

.code-block code {
    color: #64b5f6;
    font-size: 14px;
    font-weight: 500;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: visible;
}

.code-block pre code {
    color: #e8eaed;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    white-space: pre-wrap;
}

/* Requirement Cards */
.requirement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.requirement-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
}

.framework-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
}

.badge-warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.3);
}

/* Installation Steps */
.installation-step {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.installation-step h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    margin-top: 0;
}

.step-number {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.warning-box p {
    color: #ff9800;
    margin: 0;
    font-weight: 500;
}

/* Configuration Sections */
.config-section {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative;
    overflow: visible;
}

.config-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 181, 246, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}

.feature-card p {
    color: #b0bec5;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Support Section */
.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.support-card,
.troubleshooting-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.support-card h3,
.troubleshooting-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.support-link.discord {
    background: rgba(88, 101, 242, 0.1);
    color: #5865f2;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.support-link.discord:hover {
    background: rgba(88, 101, 242, 0.2);
    transform: translateY(-2px);
}

.support-link.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.support-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-2px);
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h4 {
    color: #64b5f6;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
}

.faq-item p {
    color: #b0bec5;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .docs-sidebar {
        position: static;
        order: 2;
    }
    
    .docs-content {
        padding: 24px;
    }
    
    .docs-header h1 {
        font-size: 36px;
    }
    
    .support-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .docs-main {
        padding: 20px 0 40px;
    }
    
    .docs-content {
        padding: 20px;
    }
    
    .docs-header h1 {
        font-size: 28px;
    }
    
    .docs-description {
        font-size: 16px;
    }
    
    .docs-section h2 {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .framework-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .installation-step {
        padding: 16px;
    }
    
    .code-block {
        padding: 16px;
        font-size: 12px;
        max-height: 400px;
        overflow-y: auto;
        display: block;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .docs-content {
        padding: 16px;
    }
    
    .docs-header {
        margin-bottom: 32px;
    }
    
    .docs-header h1 {
        font-size: 24px;
    }
    
    .docs-section {
        margin-bottom: 32px;
    }
    
    .installation-step h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .support-links {
        gap: 8px;
    }
    
    .support-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}