/* Estilos para a Pagina de Noticia Completa */

/* HERO DA NOTÍCIA (CABEÇALHO) */
.article-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 2rem;
}

.article-meta-top {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.article-main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

/* CONTEÚDO DO ARTIGO */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.article-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 4rem;
}

/* GALERIA DE IMAGENS DO ARTIGO */
.article-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 4rem 0;
}

.gallery-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.gallery-top-grid .gallery-item img {
    aspect-ratio: 4/3;
}

.gallery-main-image img {
    width: 100%;
    border-radius: 20px;
}

/* SEÇÃO NOTÍCIAS RELACIONADAS */
.related-news-section {
    padding: 6rem 0;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: #000;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.related-card {
    display: flex;
    flex-direction: column;
}

.related-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.related-image-container img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

/* Aba no canto inferior direito */
.related-tab {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #fff;
    width: 80px;
    height: 50px;
    border-top-left-radius: 24px;
    z-index: 2;
}

.related-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.8rem;
}

.related-date {
    font-size: 0.9rem;
    color: #0A1ECD;
    font-weight: 700;
    text-decoration: underline;
    display: block;
    margin-bottom: 1.5rem;
}

.related-excerpt {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 1.5rem;
}

.related-read-more {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0A1ECD;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* SEÇÃO DE COMENTÁRIOS */
.comments-section {
    padding: 4rem 0;
}

.comments-count-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.comment-list {
    margin-bottom: 4rem;
}

.comment-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex-grow: 1;
}

.comment-author {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.8rem;
}

.comment-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

/* FORMULÁRIO DE COMENTÁRIO */
.leave-comment-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: none;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #0A1ECD;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: #444;
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    color: #0A1ECD;
}

.form-group textarea {
    height: 300px;
    resize: vertical;
}

.btn-post-comment {
    grid-column: span 2;
    justify-self: start;
    background-color: #0A1ECD;
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-post-comment:hover {
    background-color: #0816a3;
}

/* Responsividade */
@media (max-width: 768px) {
    .article-hero {
        height: 45vh;
        /* Reduced height */
        min-height: 350px;
    }

    .article-main-title {
        font-size: 2rem;
    }

    .article-container {
        padding: 3rem 1.5rem;
    }

    .article-text {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .gallery-top-grid {
        grid-template-columns: 1fr;
    }

    .related-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .btn-post-comment {
        grid-column: span 1;
    }
}