/* ---------------------------------------------------------
   SEÇÃO EXISTENTE — MANTIDA
---------------------------------------------------------- */

/* Efeito de Hover */
.post-card:hover .post-card-img {
    transform: scale(1.05); /* Pequeno zoom ao passar o mouse */
}

.post-card {
    height: 100%; 
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Texto do artigo */
.artigo-principal {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    margin: 0 auto;
}

/* Cards / Imagens */
.post-img-link {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.post-card:hover .post-img {
    transform: scale(1.05);
}

.top-posts {
    margin-top: 150px !important;
}

.post-content .text-center {
    max-width: 100%;
}

/* ---------------------------------------------------------
   BASE GERAL DO MARKDOWN — AJUSTADO PARA .artigo-principal
---------------------------------------------------------- */

.artigo-principal p {
    margin: 1rem 0;
}

.artigo-principal strong {
    font-weight: 700;
    color: #000;
}

/* ---------------------------------------------------------
   TÍTULOS
---------------------------------------------------------- */

.artigo-principal h1,
.artigo-principal h2,
.artigo-principal h3 {
    font-family: inherit;
    margin: 2rem 0 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.artigo-principal h1 { font-size: 2rem; }
.artigo-principal h2 { font-size: 1.6rem; }
.artigo-principal h3 { font-size: 1.3rem; }

/* ---------------------------------------------------------
   LINKS
---------------------------------------------------------- */

.artigo-principal a {
    color: #007aff;
    font-weight: 600;
    text-decoration: none;
}

.artigo-principal a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   BLOCKQUOTE
---------------------------------------------------------- */

.artigo-principal blockquote {
    border-left: 4px solid #007aff;
    padding: 0.8rem 1rem;
    margin: 1.5rem 0;
    background: #f6faff;
    color: #444;
    font-style: italic;
    border-radius: 4px;
}

.artigo-principal blockquote strong {
    font-style: normal;
}


/* ---------------------------------------------------------
   IMAGENS
---------------------------------------------------------- */

.artigo-principal img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* ---------------------------------------------------------
   CÓDIGOS (inline e bloco)
---------------------------------------------------------- */

.artigo-principal code {
    background: #f3f3f3;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.artigo-principal pre code {
    display: block;
    padding: 1rem;
    border-radius: 6px;
    background: #1e1e1e;
    color: #f8f8f2;
    overflow-x: auto;
}

/* ---------------------------------------------------------
   ALERTAS
---------------------------------------------------------- */

.artigo-principal .alert {
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.artigo-principal .alert-info {
    background: #eaf6ff;
    border-left: 4px solid #0a84ff;
}

.artigo-principal .alert-warning {
    background: #fff8e6;
    border-left: 4px solid #ffb300;
}

.artigo-principal .alert-error {
    background: #ffe8e8;
    border-left: 4px solid #ff3b30;
}
