@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #121212;
    /* Preto profundo */
    --bg-card: #1e1e1e;
    /* Semi-preto para destaque */
    --bg-aside: #181818;
    /* Fundo do menu lateral */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #3b82f6;
    /* Azul suave para links/destaques */
    --border-color: #333333;
}

body {
    font-family: "DM Sans", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Layout Principal */
.wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* Menu Lateral (Aside) */
.sidebar {
    width: 300px;
    background-color: var(--bg-aside);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--accent-color);
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    padding: 4rem 6rem;
    max-width: 900px;
    /* Centralizando o texto visualmente */
    margin: 0 auto;
}

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

.header-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.last-update {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background-color: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Estilização das Seções */
section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 2rem;
    /* Espaço ao clicar no link */
}

h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

h2::before {
    content: '#';
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-weight: 300;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-align: justify;
}

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

ul {
    background-color: var(--bg-card);
    padding: 2rem 3rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

li::marker {
    color: var(--accent-color);
}

a.link-text {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: opacity 0.2s;
}

a.link-text:hover {
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .header-section h1 {
        font-size: 2rem;
    }
}