/* ==========================================================
   post.css  —  Estilo da página de artigo (post.php)
   Combina com o visual do site (glass, gradientes).
   ========================================================== */

/* Cabeçalho do artigo */
.post-hero {
    padding: 8rem 0 2rem;
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan, #00d9ff);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.post-back:hover {
    opacity: 0.7;
}

.post-category-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-cyan, #00d9ff);
    border-radius: 50px;
    color: var(--accent-cyan, #00d9ff);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.post-meta-hero {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.post-meta-hero span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Banner com ícone */
.post-banner {
    padding: 1rem 0 2rem;
}

.post-banner-img {
    max-width: 800px;
    margin: 0 auto;
    height: 260px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #fff;
}

/* Corpo do artigo */
.post-body {
    padding: 1rem 0 5rem;
}

.post-article {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.08rem;
    line-height: 1.8;
}

.post-article h2 {
    font-size: 1.9rem;
    color: #fff;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.post-article h2:first-child {
    margin-top: 0;
}

.post-article h3 {
    font-size: 1.4rem;
    color: var(--accent-cyan, #00d9ff);
    margin: 2rem 0 0.8rem;
}

.post-article p {
    margin-bottom: 1.3rem;
}

.post-article ul {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.post-article li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.post-article strong {
    color: #fff;
}

/* Chamada final (CTA) */
.post-cta {
    max-width: 760px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    text-align: center;
    border-radius: 20px;
}

.post-cta h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .post-hero {
        padding: 6rem 0 1.5rem;
    }
    .post-title {
        font-size: 1.7rem;
    }
    .post-banner-img {
        height: 180px;
        font-size: 3.5rem;
    }
    .post-article {
        font-size: 1rem;
    }
    .post-article h2 {
        font-size: 1.5rem;
    }
    .post-cta {
        padding: 1.8rem;
    }
}

/* ===== POSTS RELACIONADOS ===== */
.post-relacionados {
    max-width: 760px;
    margin: 3rem auto 0;
}

.post-relacionados h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.relacionado-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.25s ease;
}

.relacionado-card:hover { transform: translateY(-3px); }

.relacionado-card i {
    font-size: 1.5rem;
    color: var(--accent-cyan, #00d9ff);
    flex-shrink: 0;
}

.relacionado-card strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.relacionado-card span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Categoria virou link */
a.post-category-tag {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a.post-category-tag:hover { opacity: 0.75; }