/* Guide Screen Styles */
.guide-container {
    display: flex;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-primary);
}

.guide-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 24px;
    position: sticky;
    top: 0;
    height: calc(100vh - 64px); /* Subtract nav height */
}

.guide-toc h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-section;
}

.toc-section {
    margin-bottom: 12px;
    counter-increment: toc-section;
}

.toc-section > a::before {
    content: counter(toc-section) ". ";
    color: var(--primary);
    font-weight: 700;
}

.toc-section > a {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.toc-section > a:hover,
.toc-section > a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.toc-subsections {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    padding-left: 16px;
    counter-reset: toc-subsection;
}

.toc-subsection {
    margin-bottom: 4px;
    counter-increment: toc-subsection;
}

.toc-subsection > a::before {
    content: counter(toc-section) "." counter(toc-subsection) " ";
    color: var(--primary);
    font-weight: 600;
}

.toc-subsection > a {
    display: block;
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.toc-subsection > a:hover,
.toc-subsection > a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.guide-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 60px;
    height: calc(100vh - 64px);
    counter-reset: section;
}

.guide-section {
    margin-bottom: 60px;
    scroll-margin-top: 20px;
    counter-increment: section;
    counter-reset: subsection;
}

.guide-section h1::before {
    content: counter(section) ". ";
    color: var(--primary);
}

.guide-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
}

.guide-subsection {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
    counter-increment: subsection;
}

.guide-subsection h2::before {
    content: counter(section) "." counter(subsection) " ";
    color: var(--primary);
}

.guide-subsection h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 32px;
}

.guide-subsection h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.guide-subsection h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.guide-subsection h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
}

.subsection-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.subsection-content p {
    margin-bottom: 16px;
}

.subsection-content ul,
.subsection-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.subsection-content li {
    margin-bottom: 8px;
}

.subsection-content code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-dark);
}

.subsection-content pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.subsection-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.subsection-content a {
    color: var(--primary);
    text-decoration: none;
}

.subsection-content a:hover {
    text-decoration: underline;
}

.subsection-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .guide-container {
        flex-direction: column;
    }
    
    .guide-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .guide-content {
        padding: 24px 32px;
    }
}

@media (max-width: 768px) {
    .guide-content {
        padding: 20px 24px;
    }
    
    .guide-section h1 {
        font-size: 24px;
    }
    
    .guide-subsection h2 {
        font-size: 20px;
    }
}

