/* --- 1. Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0d1117; /* Git Dark Background */
    color: #c9d1d9; /* Git Text Color */
    line-height: 1.3;
    display: flex;
    min-height: 100vh;
}

/* --- 2. Sidebar Navigation --- */
.sidebar {
    width: 260px;
    background-color: #161b22;
    padding: 20px;
    border-right: 1px solid #30363d;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo span {
    color: #25D366;
}

.sidebar-nav {
    list-style: none;
}

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

.sidebar-nav a {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 3px 2px;
    border-radius: 6px;
    display: block;
    transition: background 0.2s;
}

.sidebar-nav a:hover {
    color: #c9d1d9;
    background-color: #21262d;
}

.sidebar-nav a.active {
    color: #fff;
    background-color: #21262d;
}

.nav-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-left: 10px;
}

/* --- 3. Main Content Area --- */
.main-content {
    margin-left: 260px;
    padding: 40px 60px;
    flex: 1;
    max-width: 1000px;
}

article {
    margin-bottom: 20px;
}

/* --- 4. Typography --- */
h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;	
    color: #e6edf3;
    margin-top: 8px;
    margin-bottom: 7px;
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 2rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 7px;
    margin-top: 0;
}

h2 {
    font-size: 1.3rem;
    border-bottom: 1px solid #21262d;
    padding-bottom: 3px;
    margin-top: 20px;
}

h3 {
    font-size: 1.1rem;
    color: #58a6ff;
}

p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* --- 5. Elements --- */
a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.code-block {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85rem;
    color: #79c0ff;
    margin: 12px 0;
    overflow-x: auto;
    white-space: pre-wrap;
}

strong {
    color: #e6edf3;
    font-weight: 600;
}

ul, ol {
    padding-left: 2em;
    margin-bottom: 16px;
    font-size: 0.95rem;	
}

li {
    margin-bottom: 4px;
}

/* --- 6. Footer --- */
footer {
    margin-left: 260px;
    padding: 20px 60px;
    border-top: 1px solid #30363d;
    color: #8b949e;
    font-size: 0.8rem;
    text-align: center;
}

/* --- 7. Responsive --- */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #30363d;
        padding: 15px;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sidebar-nav li {
        margin-bottom: 0;
    }

    .nav-section-title {
        display: none;
    }

    .main-content, footer {
        margin-left: 0;
        padding: 20px;
    }
}