/* Ver Notícia CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 120px; /* Para links internos não ficarem cortados */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 80px; /* Espaço para navbar fixa */
}

/* Container principal */
.noticia-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 150px; /* Muito mais espaço para navbar fixa */
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Breadcrumb */
.breadcrumb {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
    background: transparent;
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: #004080;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #003366;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: #999;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* Header da Notícia */
.noticia-header {
    margin-bottom: 3rem;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
    background: transparent;
    grid-column: 1;
}

.noticia-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.noticia-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.noticia-category {
    background: #004080;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.noticia-featured {
    background: #FFD600;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.noticia-title {
    color: #004080;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    margin-top: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}



/* Imagem Hero */
.noticia-hero {
    margin-bottom: 3rem;
}

.noticia-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.noticia-hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.noticia-image-container:hover .noticia-hero-image {
    transform: scale(1.02);
}



/* Conteúdo da Notícia */
.noticia-body {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    grid-column: 1;
}

.noticia-content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.noticia-content-wrapper p {
    margin-bottom: 1.5rem;
}

.noticia-content-wrapper h2,
.noticia-content-wrapper h3,
.noticia-content-wrapper h4 {
    color: #004080;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.noticia-content-wrapper h2 {
    font-size: 1.8rem;
}

.noticia-content-wrapper h3 {
    font-size: 1.5rem;
}

.noticia-content-wrapper h4 {
    font-size: 1.3rem;
}

.noticia-content-wrapper ul,
.noticia-content-wrapper ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.noticia-content-wrapper li {
    margin-bottom: 0.5rem;
}

.noticia-content-wrapper blockquote {
    border-left: 4px solid #004080;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Ações da Notícia */
.noticia-actions {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.share-section {
    margin-bottom: 2rem;
}

.share-section h3 {
    color: #004080;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
}



.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: #ea4335;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-section {
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #004080;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.3);
}

/* Sidebar */
.noticia-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-section h3 {
    color: #004080;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Notícias Relacionadas */
.related-news,
.recent-news {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-news-item,
.recent-news-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.related-news-item:hover,
.recent-news-item:hover {
    background: #f8f9fa;
}

.related-news-image,
.recent-news-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-news-image img,
.recent-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-content,
.recent-news-content {
    flex: 1;
}

.related-news-content h4,
.recent-news-content h4 {
    margin-bottom: 0.25rem;
}

.related-news-content a,
.recent-news-content a {
    color: #004080;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.related-news-content a:hover,
.recent-news-content a:hover {
    color: #003366;
}

.related-news-date,
.recent-news-date {
    color: #666;
    font-size: 0.8rem;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #004080;
}

.newsletter-form button {
    background: #004080;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    background: #003366;
    transform: translateY(-2px);
}

/* Newsletter Messages */
.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Redes Sociais */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}



.social-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .noticia-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .noticia-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .noticia-header,
    .noticia-hero,
    .noticia-body,
    .noticia-actions {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .noticia-container {
        padding: 1rem;
        margin-top: 130px;
    }
    
    .noticia-title {
        font-size: 2.2rem;
    }
    
    .noticia-hero-image {
        height: 300px;
    }
    
    .noticia-body {
        padding: 2rem;
    }
    
    .noticia-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .noticia-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .noticia-title {
        font-size: 2rem;
    }
    
    .noticia-hero-image {
        height: 250px;
    }
    
    .noticia-body {
        padding: 1.5rem;
    }
    
    .noticia-content-wrapper {
        font-size: 1rem;
    }
    

}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.noticia-header,
.noticia-hero,
.noticia-body,
.noticia-actions {
    animation: fadeInUp 0.6s ease forwards;
}

.noticia-header { animation-delay: 0.1s; }
.noticia-hero { animation-delay: 0.2s; }
.noticia-body { animation-delay: 0.3s; }
.noticia-actions { animation-delay: 0.4s; }

/* Loading states */
.noticia-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states */
.share-btn:focus,
.btn-back:focus,
.social-link:focus {
    outline: 2px solid #004080;
    outline-offset: 2px;
}

/* Garantir que não há sobreposições */
.noticia-container * {
    position: relative;
}

.noticia-container > * {
    z-index: 1;
}

/* Remover qualquer elemento flutuante que possa causar sobreposição */
.noticia-container * {
    float: none;
}

/* Garantir que o conteúdo principal não seja sobreposto */
.noticia-content,
.noticia-header,
.noticia-hero,
.noticia-body,
.noticia-actions {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Garantir que a imagem não seja sobreposta */
.noticia-hero {
    position: relative;
    z-index: 1;
}

.noticia-image-container {
    position: relative;
    z-index: 1;
}

.noticia-hero-image {
    position: relative;
    z-index: 1;
}

.noticia-content {
    grid-column: 1;
    position: relative;
    z-index: 1;
}

.main-content {
    background: transparent;
    position: relative;
    z-index: 1;
}

.main-content * {
    position: relative;
    z-index: 1;
}

.noticia-sidebar {
    grid-column: 2;
    position: relative;
    z-index: 1;
}

/* Print styles */
@media print {
    .noticia-sidebar,
    .noticia-actions,
    .breadcrumb {
        display: none;
    }
    
    .noticia-container {
        grid-template-columns: 1fr;
        max-width: none;
        margin: 0;
        padding: 1rem;
    }
    
    .noticia-title {
        font-size: 2.2rem;
    }
    
    .noticia-hero-image {
        height: 300px;
    }
} 