/* Reset básico e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d1117;          /* Fundo dark principal */
    color: #c9d1d9;               /* Texto claro suave */
    line-height: 1.6;
    min-height: 100vh;
}

/* Container centralizado com mais respiro */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;              /* Aumentado para dar mais ar lateral */
}

/* Navbar / Menu */
.navbar {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;         /* Mais espaço interno */
}

.logo {
    color: #58a6ff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #c9d1d9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #58a6ff;
}

/* Menu toggle (mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #c9d1d9;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #161b22;
        padding: 1.5rem;
        border-bottom: 1px solid #30363d;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero / Conteúdo principal */
.hero {
    padding: 5rem 0 7rem;         /* Mais respiro vertical */
    text-align: center;
}

/* Títulos – clamp para responsividade + word-break */
h1 {
    font-size: clamp(1.9rem, 6vw, 2.8rem);
    margin-bottom: 0.8rem;
    color: #ffffff;
    line-height: 1.15;
    word-break: break-word;
    hyphens: auto;
}

h2 {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
    margin: 2.5rem 0 1.2rem;
    color: #8b949e;
}

h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #58a6ff;
}

/* Intro */
.intro {
    font-size: 1.3rem;
    margin: 1.8rem 0;
    color: #8b949e;
    font-style: italic;
}

/* Foto de perfil */
.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 1.5rem auto 2.5rem;
    display: block;
    border: 4px solid #30363d;
    object-fit: cover;
}

/* Seção bio pessoal */
.bio-section {
    text-align: left;
    max-width: 800px;
    margin: 2.5rem auto;
}

.bio-section p {
    margin: 1.4rem 0;
}

blockquote {
    background: #161b22;
    border-left: 5px solid #58a6ff;
    padding: 1.2rem 1.8rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #8b949e;
    border-radius: 6px;
}

.conquistas {
    list-style: none;
    padding-left: 0;
    margin: 1.8rem 0;
}

.conquistas li {
    margin: 0.9rem 0;
    padding-left: 2rem;
    position: relative;
}

.conquistas li::before {
    content: "✓";
    color: #238636;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Botões CTA – hover mais suave */
.cta-buttons {
    margin: 2.5rem 0;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    margin: 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
}

.primary {
    background: #238636;
    color: white;
}

.primary:hover {
    background: #2ea043;
    transform: translateY(-2px);
}

.secondary {
    background: #30363d;
    color: #c9d1d9;
    border: 1px solid #8b949e;
}

.secondary:hover {
    background: #444d56;
    transform: translateY(-2px);
}

/* Seções genéricas – mais respiro */
.section {
    margin: 4rem 0;               /* Aumentado para dar ar */
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section h3 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1.2rem;
    color: #58a6ff;
}

/* Footer */
footer {
    background: #161b22;
    padding: 3rem 0 2rem;         /* Mais espaço em cima */
    text-align: center;
    border-top: 1px solid #30363d;
    font-size: 0.95rem;
}

/* Responsividade geral */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 4rem 0 5rem;
    }

    .section {
        margin: 3rem 0;
        padding: 0 1.2rem;
    }

    .container {
        padding: 0 1.2rem;
    }
}

/* Cards para página Conteúdos */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;                  /* Aumentado para mais respiro */
    margin: 3.5rem 0;
}

.post-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center top;  /* Melhor para imagens verticais */
    display: block;
    border-bottom: 1px solid #30363d;
}

/* Post individual */
.post-single .post-hero {
    width: 100%;
    max-height: 380px;            /* Reduzido um pouco para equilíbrio */
    object-fit: contain;          /* Mostra imagem completa sem corte agressivo */
    border-radius: 8px;
    margin: 2rem 0;
    background: #161b22;
}

/* Categorias – menos dominante */
.category-section {
    margin: 4.5rem 0;             /* Mais espaço entre categorias */
}

.category-title {
    font-size: 1.9rem;
    margin-bottom: 1.8rem;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    color: white;
    display: inline-block;
    opacity: 0.9;                 /* Leve redução de intensidade */
}

/* Tags de categoria – mais badge-like */
.post-category {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
}

/* Cores por categoria (mantidas, mas com opacidade sutil) */
.category-reaproveitamento { background: rgba(46, 125, 50, 0.85); }
.category-linux { background: rgba(25, 118, 210, 0.85); }
.category-hardware { background: rgba(230, 81, 0, 0.85); }
.category-guias { background: rgba(123, 31, 162, 0.85); }
.category-historias { background: rgba(97, 97, 97, 0.85); }

.category-reaproveitamento .post-category { background: #2e7d32; }
.category-linux .post-category { background: #1976d2; }
.category-hardware .post-category { background: #e65100; }
.category-guias .post-category { background: #7b1fa2; }
.category-historias .post-category { background: #616161; }

/* Outros ajustes já existentes mantidos */