/* 1. CONFIGURAÇÕES GERAIS */
:root {
    --primary: #0056b3;      /* Azul Forte */
    --secondary: #007bff;    /* Azul Real */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-body: #f4f7f6;      /* Cinza claro para o fundo */
    --white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 2. CONTAINER CENTRALIZADO */
.container {
    max-width: 900px; /* Largura ideal para leitura */
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. HEADER (NÃO FIXO) */
.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative; /* O menu sobe junto com a página */
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
    text-transform: uppercase;
}

.logo span {
    color: var(--secondary);
}

/* 4. NAVEGAÇÃO E DROPDOWN */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1100;
    top: 100%;
    left: 0;
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
    font-weight: 500;
}

.dropdown-content li a:hover {
    background-color: #f8f9fa;
    color: var(--secondary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 5. BOTÃO SIMULADOR (AZUL SÓLIDO) */
.btn-app {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
    transition: transform 0.2s, background 0.3s !important;
}

.btn-app:hover {
    background-color: var(--secondary) !important;
    transform: translateY(-2px);
}

/* 6. CARDS DE POSTAGEM */
main.container {
    margin-top: 50px;
    margin-bottom: 80px;
}

.post-card {
    background: var(--white);
    padding: 40px;
    margin-bottom: 60px; /* Distância entre postagens */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.post-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 7. RESPONSIVIDADE */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.post-content p, .post-body {
    margin-bottom: 1.5rem; /* Isso dá um respiro extra entre os blocos de texto */
}

.post-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.15rem;
    /* Faz com que cada bloco de texto separado por quebra de linha tenha um respiro */
    display: block; 
}

.post-content {
    text-indent: 30px; /* Tamanho do recuo */
    text-align: justify; /* Alinhamento justificado fica mais elegante com recuo */
}

/* Quando tivermos Markdown, isto será perfeito: */
.post-content p {
    text-indent: 40px;
    margin-bottom: 20px;
}

/* ... (mantenha todo o início do seu style.css igual) ... */

/* 6. CONTEÚDO DO POST E RECUO DE PARÁGRAFOS */
.post-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.15rem;
    text-align: justify;
}

/* Aplica o recuo apenas em tags P dentro do conteúdo */
.post-content p {
    text-indent: 40px; /* O recuo que você deseja */
    margin-bottom: 1.5rem; /* Espaçamento entre os parágrafos */
    margin-top: 0;
}

/* Remove o recuo de imagens ou elementos que não sejam texto se necessário */
.post-content img {
    text-indent: 0;
    display: block;
    margin: 20px auto;
}

/* Configuração Geral de Conteúdo */
.post-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.15rem;
    
    /* Ativa hifenização para evitar buracos */
    hyphens: auto;
    -webkit-hyphens: auto;
    
    /* Alinhamento padrão: à esquerda (melhor para mobile) */
    text-align: left; 
}

/* Aplica o recuo apenas se o texto não for muito pequeno */
.post-content p {
    text-indent: 30px;
    margin-bottom: 1.5rem;
}

/* Media Query: Para telas maiores (Desktop), você pode manter o justificado se desejar */
@media (min-width: 768px) {
    .post-content {
        text-align: justify;
    }
}

/* Estilos para os Títulos dentro do Post */
h2.fw-bold {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

h3.fw-bold {
    font-size: 1.5rem;
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Estilo para a tag [alerta] */
.alert-info {
    background-color: #e3f2fd; /* Azul clarinho */
    border-left: 6px solid #2196f3; /* Barra lateral azul forte */
    color: #0d47a1; /* Texto azul escuro */
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Efeito de sombra suave */
    font-size: 1rem;
    line-height: 1.6;
}

/* Estilo opcional para destacar links dentro do post */
.post-body a {
    color: #2196f3;
    text-decoration: underline;
    font-weight: 500;
}

.post-body a:hover {
    color: #0d47a1;
}