/* Estilos para a página de notícia */
.news-article {
    background: #fff;
    padding: 0;
    position: relative;
}

/* Cabeçalho da Notícia */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.article-category {
    background: #14342B;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.article-date {
    color: #666;
    font-size: 0.85rem;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #14342B;
    margin-bottom: 1.5rem;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 400;
    padding: 0;
}

.article-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.author-label {
    color: #666;
}

.author-name {
    font-weight: 500;
    color: #333;
}

/* Barra de progresso de leitura */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Container de compartilhamento e autor */
.share-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 0.2rem 0;
}

/* Texto "Compartilhe" */
.share-text {
    color: #666;
    font-size: 0.9rem;
}

/* Botões de compartilhamento */
.share-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 1rem;
}

/* Tempo estimado de leitura */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Botão "Voltar ao topo" */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Indicador de posição na página */
.scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 100px;
    background: #eee;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    transition: height 0.1s ease;
}

/* Imagem Principal */
.article-featured-image {
    margin: 0 0 2rem 0;
    position: relative;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-caption {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Conteúdo */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding: 0 0 2rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tags-label {
    color: #14342B;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-link {
    background: transparent;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.tag-link:hover {
    background: #14342B;
    color: #fff;
    border-color: #14342B;
}

/* Reações */
.article-reactions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-btn:hover {
    background: #f5f5f5;
}

.reaction-btn.like:hover { color: #4CAF50; }
.reaction-btn.dislike:hover { color: #f44336; }

.reaction-count {
    font-weight: 500;
}

/* Notícias Relacionadas */
.related-news {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* Hero Section da Notícia */
.news-hero {
    background: #fff;
    padding: 1rem 0;
    margin-bottom: 0.1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.news-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-category {
    background: #14342B;
    color: #fff;
    padding: 0.3rem 1rem;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
}

.news-date {
    color: #666;
    font-size: 0.65rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.news-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #14342B;
    margin: 0;
}

/* Galeria de Fotos */
.article-gallery {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #14342B;
}

/* Galeria Principal */
.gallery-main {
    width: 100%;
    height: 500px; /* Altura fixa para o slider principal */
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Alterado para contain para mostrar a imagem inteira */
    background: #f5f5f5; /* Fundo para imagens que não preenchem todo o espaço */
}

/* Miniaturas */
.gallery-thumbs {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.gallery-thumbs .swiper-slide {
    width: 150px;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Setas de navegação da galeria */
.gallery-main .swiper-button-next,
.gallery-main .swiper-button-prev {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
}

.gallery-main .swiper-button-next:after,
.gallery-main .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.gallery-main .swiper-button-next {
    right: 20px;
}

.gallery-main .swiper-button-prev {
    left: 20px;
}

.gallery-main .swiper-button-next:hover,
.gallery-main .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Responsivo */
@media (max-width: 768px) {
    .news-article {
        padding: 0 1rem 1rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-featured-image {
        margin: 0 -1rem 1.5rem;
    }

    .image-caption {
        padding: 0.8rem 1rem;
    }

    .article-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .share-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
    }

    .news-hero {
        padding: 2rem 0;
    }

    .news-hero-title {
        font-size: 2rem;
    }

    .news-hero-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .article-tags {
        padding: 1rem 0;
        gap: 0.8rem;
    }

    .gallery-thumbs {
        height: 60px;
    }
    
    .thumb-image {
        height: 60px;
    }
}

/* Variáveis de cor para o tema escuro */
[data-theme="dark"] {
    --bg-article: #000;
    --text-color: #e0e0e0;
    --title-color: #fff;
    --border-color: #333;
    --meta-color: #999;
}

/* Ajustes para o tema escuro */
[data-theme="dark"] .news-article,
[data-theme="dark"] .news-hero,
[data-theme="dark"] .container {
    background: var(--bg-article);
}

[data-theme="dark"] .article-content {
    color: var(--text-color);
}

[data-theme="dark"] .news-hero {
    background: var(--bg-article);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .news-hero-title {
    color: var(--title-color);
}

[data-theme="dark"] .news-date,
[data-theme="dark"] .author-info,
[data-theme="dark"] .share-text {
    color: var(--meta-color);
}

[data-theme="dark"] .article-tags {
    border-color: var(--border-color);
}

[data-theme="dark"] .tag-link {
    color: var(--meta-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .section-title {
    color: var(--title-color);
}

[data-theme="dark"] .gallery-image {
    background: #000;
}

[data-theme="dark"] .article-gallery {
    border-color: var(--border-color);
}

[data-theme="dark"] .gallery-title {
    color: var(--title-color);
}

/* Ajuste para garantir que não haja fundos cinza */
[data-theme="dark"] .trending-card,
[data-theme="dark"] .trending-content {
    background: var(--bg-article);
} 