/* Documentation Page Styles */

.docs-header {
    background: linear-gradient(135deg, rgba(20, 32, 56, 0.9), rgba(8, 20, 40, 0.9));
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.docs-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="1"/></g></svg>');
    pointer-events: none;
}

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

.docs-header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.docs-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.docs-version {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.version-badge {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Documentation Layout */
.docs-content {
    padding: 4rem 0;
    background: rgba(8, 20, 40, 0.3);
}

.docs-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 2rem;
}

.sidebar-content {
    width: 100%;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(74, 222, 128, 0.2);
    padding-bottom: 0.5rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

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

.nav-item {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
    border-left-color: var(--accent-green);
}

.nav-item.active {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
    border-left-color: var(--accent-green);
    font-weight: 600;
}

/* Main Documentation Content */
.docs-main {
    min-width: 0;
}

.doc-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-green);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.content-card {
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: rgba(20, 32, 56, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-green);
    background: rgba(20, 32, 56, 0.8);
    transform: translateY(-2px);
}

.feature-item h4 {
    color: var(--accent-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Code Blocks */
.integration-example {
    margin-top: 3rem;
}

.integration-example h4 {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.code-block {
    background: rgba(8, 20, 40, 0.8);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
    border-radius: 0.75rem 0.75rem 0 0;
}

.code-block code {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.req-category h4 {
    color: var(--accent-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.req-list {
    list-style: none;
    padding: 0;
}

.req-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.req-list li:last-child {
    border-bottom: none;
}

.req-list strong {
    color: var(--primary-light);
    font-weight: 600;
}

/* Performance Table */
.performance-table {
    margin-top: 3rem;
}

.performance-table h4 {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(8, 20, 40, 0.6);
    border-radius: 0.75rem;
    overflow: hidden;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.specs-table th {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.specs-table tr:hover {
    background: rgba(74, 222, 128, 0.05);
}

/* Installation Options */
.install-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.install-option h4 {
    color: var(--accent-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Quick Start Steps */
.quick-start-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.step-number {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Integration Tips */
.integration-tips {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(74, 222, 128, 0.2);
}

.integration-tips h4 {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip {
    background: rgba(20, 32, 56, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.tip h5 {
    color: var(--accent-green);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tip p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tip code {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* Verification Section */
.verification-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(74, 222, 128, 0.2);
}

.verification-section h4 {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .docs-sidebar {
        position: static;
        max-height: none;
        order: 2;
        background: rgba(8, 20, 40, 0.8);
        border-radius: 1rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .docs-main {
        order: 1;
    }
    
    .feature-grid,
    .requirements-grid,
    .tip-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .docs-container {
        padding: 0 1rem;
    }
    
    .docs-header-content {
        text-align: center;
        padding: 2rem 0;
    }
    
    .docs-description {
        font-size: 1rem;
    }
    
    .version-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 1rem;
        overflow-x: auto;
    }
    
    .specs-table {
        font-size: 0.85rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .step {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quick-start-steps {
        gap: 1.5rem;
    }
    
    .tip {
        padding: 1rem;
    }
    
    .tip h5 {
        font-size: 0.9rem;
    }
    
    .tip p {
        font-size: 0.85rem;
    }
    
    .nav-section {
        margin-bottom: 1rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .docs-title {
        font-size: 2rem;
    }
    
    .docs-container {
        padding: 0 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .code-block {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .tip {
        padding: 0.75rem;
    }
    
    .docs-sidebar {
        padding: 1rem;
    }
    
    .nav-item {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
} 