/* =================================================================== */
/* BLOG DETALHES - Landing Page de Leitura                            */
/* =================================================================== */

/* =================================================================== */
/* HERO SECTION - Fundo vermelho padrão (mesmo estilo do blog-hero)    */
/* =================================================================== */

.blog-detail-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}

    .blog-detail-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background:
            radial-gradient(circle at 20% 80%, rgba(214, 40, 40, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(214, 40, 40, 0.08) 0%, transparent 50%);
        pointer-events: none;
    }

    .blog-detail-hero::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(214, 40, 40, 0.05) 0%, transparent 70%);
        pointer-events: none;
    }

/* --- Voltar ao Blog --- */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red, #d62828);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 8px 20px;
    border: 1px solid rgba(214, 40, 40, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(214, 40, 40, 0.1);
}

    .blog-back-link:hover {
        color: #fff;
        background: var(--primary-red, #d62828);
        border-color: var(--primary-red, #d62828);
        transform: translateX(-5px);
    }

/* --- Meta info --- */
.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.blog-detail-meta-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .blog-detail-meta-item i {
        color: var(--primary-red, #d62828);
    }

.blog-detail-featured-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Título --- */
.blog-detail-title {
    font-family: 'EurostileBold', 'Michroma', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

/* --- Subtítulo / Resumo --- */
.blog-detail-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* --- Scroll indicator --- */
.blog-detail-scroll {
    margin-top: 1rem;
}

    .blog-detail-scroll a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.3rem;
        text-decoration: none;
        transition: all 0.3s ease;
        animation: bounceDown 2s infinite;
    }

        .blog-detail-scroll a:hover {
            border-color: var(--primary-red, #d62828);
            color: var(--primary-red, #d62828);
        }

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* =================================================================== */
/* CONTEÚDO DO ARTIGO                                                  */
/* =================================================================== */

.blog-detail-content-section {
    background: #0a0a0a;
    padding: 4rem 0 3rem;
}

/* --- Imagem do Post (abaixo do hero) --- */
.blog-detail-image {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .blog-detail-image img {
        width: 100%;
        height: auto;
        display: block;
    }

/* --- Artigo --- */
.blog-detail-article {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #ccc;
}

    /* --- Títulos no conteúdo --- */
    .blog-detail-article h1 {
        font-size: 2.2rem;
        font-weight: 800;
        color: #fff;
        margin: 2.5rem 0 1rem;
        letter-spacing: -0.01em;
    }

    .blog-detail-article h2 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #fff;
        margin: 2.5rem 0 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid rgba(214, 40, 40, 0.3);
    }

    .blog-detail-article h3 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #fff;
        margin: 2rem 0 0.8rem;
    }

    .blog-detail-article h4 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #e0e0e0;
        margin: 1.5rem 0 0.8rem;
    }

    /* --- Parágrafos --- */
    .blog-detail-article p {
        margin-bottom: 1.5rem;
        color: #ccc;
    }

    /* --- Links --- */
    .blog-detail-article a {
        color: var(--primary-red, #d62828);
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: color 0.3s ease;
    }

        .blog-detail-article a:hover {
            color: #ff4444;
        }

    /* --- Imagens no conteúdo --- */
    .blog-detail-article img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    /* --- Listas --- */
    .blog-detail-article ul,
    .blog-detail-article ol {
        margin: 1.5rem 0;
        padding-left: 2rem;
    }

    .blog-detail-article li {
        margin-bottom: 0.5rem;
        color: #ccc;
    }

        .blog-detail-article li::marker {
            color: var(--primary-red, #d62828);
        }

    /* --- Blockquote --- */
    .blog-detail-article blockquote {
        border-left: 4px solid var(--primary-red, #d62828);
        padding: 1.2rem 1.5rem;
        margin: 2rem 0;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 0 12px 12px 0;
        font-style: italic;
        color: #ddd;
    }

        .blog-detail-article blockquote p {
            margin-bottom: 0;
        }

    /* --- Código --- */
    .blog-detail-article code {
        background: rgba(255, 255, 255, 0.08);
        padding: 2px 8px;
        border-radius: 4px;
        font-family: 'Fira Code', 'Consolas', monospace;
        font-size: 0.9em;
        color: #ff6b6b;
    }

    .blog-detail-article pre {
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1.5rem;
        margin: 2rem 0;
        overflow-x: auto;
    }

        .blog-detail-article pre code {
            background: none;
            padding: 0;
            color: #e0e0e0;
        }

    /* --- Tabelas --- */
    .blog-detail-article table {
        width: 100%;
        margin: 2rem 0;
        border-collapse: collapse;
        border-radius: 8px;
        overflow: hidden;
    }

    .blog-detail-article th {
        background: rgba(214, 40, 40, 0.15);
        color: #fff;
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
    }

    .blog-detail-article td {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: #ccc;
    }

    .blog-detail-article tr:hover td {
        background: rgba(255, 255, 255, 0.03);
    }

    /* --- Linha horizontal --- */
    .blog-detail-article hr {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 3rem 0;
    }

    /* --- Vídeo embeddado --- */
    .blog-detail-article iframe {
        max-width: 100%;
        border-radius: 12px;
        margin: 2rem 0;
    }

/* --- Divider --- */
.blog-detail-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red, #d62828), transparent);
    margin: 3rem 0;
    border-radius: 2px;
}

/* =================================================================== */
/* COMPARTILHAR                                                        */
/* =================================================================== */

.blog-share-section {
    padding: 2rem 0 1rem;
}

.blog-share-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .blog-share-title i {
        color: var(--primary-red, #d62828);
    }

.blog-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .blog-share-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        color: #fff;
    }

.blog-share-facebook {
    background: #1877f2;
}

    .blog-share-facebook:hover {
        background: #0d6efd;
    }

.blog-share-twitter {
    background: #14171a;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    .blog-share-twitter:hover {
        background: #333;
    }

.blog-share-linkedin {
    background: #0a66c2;
}

    .blog-share-linkedin:hover {
        background: #0077b5;
    }

.blog-share-whatsapp {
    background: #25d366;
}

    .blog-share-whatsapp:hover {
        background: #128c7e;
    }

/* =================================================================== */
/* POSTS RELACIONADOS                                                  */
/* =================================================================== */

.blog-related-section {
    background: #0a0a0a;
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-related-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* =================================================================== */
/* RESPONSIVO                                                          */
/* =================================================================== */

@media (max-width: 991px) {
    .blog-detail-hero {
        min-height: auto;
        padding: 140px 0 60px;
    }

    .blog-detail-title {
        font-size: 2.4rem;
    }

    .blog-detail-subtitle {
        font-size: 1.1rem;
    }

    .blog-detail-content-section {
        padding: 3rem 0 2rem;
    }

}

@media (max-width: 767px) {
    .blog-detail-hero {
        padding: 120px 0 50px;
    }

    .blog-detail-title {
        font-size: 1.8rem;
    }

    .blog-detail-subtitle {
        font-size: 1rem;
    }

    .blog-detail-meta {
        gap: 0.8rem;
    }

    .blog-detail-article {
        font-size: 1rem;
        line-height: 1.75;
    }

        .blog-detail-article h2 {
            font-size: 1.5rem;
        }

        .blog-detail-article h3 {
            font-size: 1.2rem;
        }

    .blog-detail-content-section {
        padding: 2.5rem 0 2rem;
    }

    .blog-detail-image {
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .blog-share-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .blog-related-section {
        padding: 3rem 0;
    }

    .blog-related-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 575px) {
    .blog-detail-hero {
        padding: 100px 0 40px;
    }

    .blog-detail-title {
        font-size: 1.5rem;
    }

    .blog-back-link {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .blog-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

}
