:root {
    --bg-color: #ffffff;
    --text-color: #333332;
    --text-light: #767676;
    --accent-color: #0087be;
    --border-color: #e0e0e0;
    --code-bg: #f4f4f4;
    --font-primary: 'Exo 2', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #003d82;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.site-header {
    background-color: #1a1a1a;
    /* Para adicionar uma imagem de banner no topo, basta descomentar e ajustar a URL abaixo:
    background-image: url('/banner.jpg');
    background-size: cover;
    background-position: center; */
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 1rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.site-title {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.site-title a {
    color: #ffffff;
}

.site-title a:hover {
    text-decoration: none;
}

.site-description {
    color: #cccccc;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 300;
}

.site-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.site-nav a {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.site-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.site-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 60vh;
}

.post-summary {
    margin-bottom: 3.5rem;
    padding: 2rem;
    background-color: #f7f7f7;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-title {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--accent-color);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.post-tags a {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--accent-color);
    font-weight: 400;
}

.post-excerpt {
    color: var(--text-color);
    font-weight: 400;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-single .post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-single .post-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.post-content {
    font-weight: 400;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
    color: var(--text-color);
    font-weight: 600;
}

.post-content h2 {
    margin-top: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 2rem;
}

.post-content h3 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background-color: #fafafa;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
}

.post-content pre {
    background-color: var(--code-bg);
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.95rem;
    font-family: 'Consolas', 'Monaco', monospace;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.post-content code {
    background-color: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #e83e8c;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.site-footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin-top: 3rem;
    font-weight: 600;
}

.avatar { border-radius: 50%; display: block; margin: 0 auto 10px; max-width: 80px; max-height: 80px; }
.site-logo-link { display: inline-block; }

.post-thumbnail { margin-bottom: 1.5rem; display: block; }
.post-thumbnail img { border-radius: 6px; width: 100%; object-fit: cover; max-height: 400px; }
.single-thumbnail { margin-bottom: 2.5rem; }

/* --- Estilos para o Dropdown Opcional (details/summary) --- */
details {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    overflow: hidden;
}

summary {
    background-color: #f9f9f9;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Oculta a setinha padrão */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    user-select: none;
    color: var(--text-color);
}

summary::-webkit-details-marker {
    display: none; /* Oculta setinha no WebKit */
}

summary:hover {
    background-color: #f1f1f1;
}

/* Ícone animado (+) */
summary::after {
    content: '+';
    font-size: 1.8rem;
    line-height: 0.8;
    font-weight: 300;
    color: var(--accent-color);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
    color: #e83e8c; /* Rosa para o 'X' de fechar (magia!) */
}

details[open] summary {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

/* Efeito de fade e deslize no conteúdo revelado */
details[open] > *:not(summary) {
    animation: fadeInSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding: 0 1.5rem;
}

details[open] > pre {
    margin: 1.5rem; /* Ajuste para caixas de código não ficarem coladas */
    width: auto;
}

@keyframes fadeInSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
