/* Documentation Page Styles */
.docs-hero {
    padding: 8rem 0 4rem;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.docs-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.docs-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Documentation Layout */
.docs-content {
    padding: 2rem 0;
    background: #f8fafc;
    min-height: 100vh;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sidebar */
.docs-sidebar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

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

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

.docs-nav h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.docs-nav li {
    margin-bottom: 0.5rem;
}

.docs-nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.docs-nav a:hover,
.docs-nav a.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

/* Main Content */
.docs-main {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.doc-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.doc-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.doc-section h2::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.doc-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.doc-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

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

.info-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item h4 {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Architecture Diagram */
.architecture-diagram {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.arch-layer {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.arch-layer:last-child {
    margin-bottom: 0;
}

.arch-layer h4 {
    margin: 0 0 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.arch-components {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arch-components span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Feature Details */
.feature-details {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-item ul {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Technology Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-category {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.tech-category h3 {
    margin: 0 0 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.tech-items {
    display: grid;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
}

.tech-item:hover i {
    color: white;
}

.tech-item span {
    font-weight: 500;
}

/* File Tree */
.file-tree {
    background: var(--dark-card);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 2rem;
    font-family: 'Fira Code', monospace;
    margin: 2rem 0;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    line-height: 1.6;
}

.tree-item.level-1 {
    margin-left: 1rem;
}

.tree-item.level-2 {
    margin-left: 2rem;
}

.tree-item.level-3 {
    margin-left: 3rem;
}

.tree-item i {
    color: #64748b;
}

.tree-item .folder {
    color: #fbbf24;
    font-weight: 600;
}

/* Code Block */
.code-block {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.code-header {
    background: var(--dark-bg);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

.code-block pre {
    background: var(--dark-card);
    color: #e2e8f0;
    padding: 2rem;
    margin: 0;
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    overflow-x: auto;
}

/* Optimization Grid */
.optimization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.optimization-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.optimization-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.optimization-item h4 {
    margin: 0.5rem 0 1rem;
    color: var(--text-primary);
}

.optimization-item ul {
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.metric {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Test Checklist */
.test-checklist {
    margin: 2rem 0;
}

.test-checklist h4 {
    color: var(--success-color);
    margin: 1.5rem 0 1rem;
}

.test-checklist ul {
    margin-left: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Deployment Options */
.deployment-options {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.deploy-option {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.deploy-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.deploy-option h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.deploy-option i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.deploy-option p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.code-snippet {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.code-snippet code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Team Overview */
.team-overview {
    margin: 2rem 0;
}

.university-info {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.university-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.university-info i {
    margin-right: 0.5rem;
}

.university-info p {
    margin: 0;
    opacity: 0.9;
}

.team-members {
    display: grid;
    gap: 2rem;
}

.member {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.member:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.member h4 {
    margin: 0 0 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.member p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.member p strong {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .docs-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .docs-main {
        padding: 2rem;
    }
    
    .docs-hero h1 {
        font-size: 2rem;
    }
    
    .tech-stack,
    .optimization-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .docs-main {
        padding: 1.5rem;
    }
    
    .doc-section h2 {
        font-size: 1.5rem;
    }
    
    .section-intro {
        padding: 1rem;
        font-size: 1rem;
    }
}