/* CSS Estilo Distressed Data Guy (Hacker/Data Aesthetic) */
body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

a {
    color: #00e5ff;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: #80f2ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    text-decoration: none;
}

/* Header Navbar */
header {
    background-color: #161b22;
    border-bottom: 2px solid #30363d;
    padding: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5em;
    letter-spacing: -0.5px;
    font-weight: 800;
}

header h1 a {
    color: #ffffff;
}

header h1 a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Estrutura Grid Principal */
.container {
    max-width: 1050px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
    position: sticky;
    top: 30px;
    align-self: start;
    background: #161b22;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #30363d;
}

/* Listagem Cronologica */
.month-group {
    margin-bottom: 50px;
}

.month-title {
    font-size: 1.5em;
    color: #e6edf3;
    border-bottom: 1px dashed #30363d;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 25px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-list {
    list-style-type: none;
    margin-left: 0;
    padding: 0;
}

.article-list li {
    margin-bottom: 18px;
    font-size: 1.15em;
    position: relative;
    padding-left: 25px;
}

.article-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00e5ff;
    font-weight: bold;
    font-family: monospace;
}

/* Sidebar estatica */
.sidebar h3 {
    font-size: 0.9em;
    color: #00e5ff;
    margin-bottom: 15px;
    border-bottom: 1px dashed #30363d;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    font-size: 0.95em;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #8b949e;
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar ul li a:hover {
    color: #ffffff;
    background: #30363d;
    padding-left: 12px;
}

/* Estilos de Pagina Interna (Article Markdown) */
.article-header {
    margin-bottom: 40px;
    text-align: left;
    border-bottom: 1px solid #30363d;
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 2.8em;
    line-height: 1.25;
    margin: 0 0 15px 0;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 800;
}

.article-header .meta {
    color: #8b949e;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.markdown-body {
    max-width: 800px;
    margin: 0 auto;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: #ffffff;
    margin-top: 45px;
    margin-bottom: 20px;
    font-weight: 700;
}

.markdown-body h2 {
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
}

.markdown-body p {
    margin-bottom: 25px;
    font-size: 1.15em;
    color: #c9d1d9;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.markdown-body blockquote {
    border-left: 4px solid #00e5ff;
    margin: 0 0 30px 0;
    padding: 15px 20px;
    background: #161b22;
    color: #8b949e;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.markdown-body pre {
    background: #0d1117;
    color: #e6edf3;
    padding: 20px;
    overflow-x: auto;
    border-radius: 6px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.95em;
    margin-bottom: 30px;
    border: 1px solid #30363d;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.markdown-body code {
    background: #161b22;
    padding: 3px 6px;
    border-radius: 4px;
    color: #ff7b72;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
}

.markdown-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Responsividade Básica */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        order: -1;
        margin-bottom: 40px;
    }

    header h1 {
        font-size: 1.8em;
    }
}