/* ============================================
   LAYOUT.CSS
   
   This file controls the main layout structure of the website:
   
   - Main content area: The central area where markdown content is displayed
     (padding, background, scrolling behavior)
   - Sidebar structure: The left sidebar container and its internal layout
     (width, background, padding, overflow)
   - Sidebar header: The title/header section at the top of the sidebar
   - Sidebar navigation containers: Main nav and sidebar nav areas
   - Sidebar sections: Grouping sections within the sidebar (with titles)
   
   Influences: Page layout, sidebar appearance, main content container
   ============================================ */

.main-content {
    flex: 1;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: 250px;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 2rem 0 0 0;
    transition: transform 0.3s ease;
    height: 100vh;
    overflow: hidden;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-main-nav {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.sidebar-section {
    margin-top: 1.5rem;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-list li {
    margin: 0;
}

