/* ========================================
   Single Notícia Page Styles - Tema 3
   Prefeitura de Claraval
   ======================================== */

/* Article Content */
.article-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.25rem 0;
    border-top: 2px solid #f3f4f6;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 2rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h2 {
    font-size: 2rem;
}

.article-body h3 {
    font-size: 1.6rem;
}

.article-body h4 {
    font-size: 1.3rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Image Gallery */
.article-gallery {
    margin: 2.5rem 0;
}

.article-gallery .gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.article-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.article-gallery .gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-gallery .gallery-item:hover {
    transform: scale(1.05);
}

.article-gallery .gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Share Buttons */
.article-share {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 15px;
}

.article-share .share-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-share .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-share .share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button.email {
    background: #6b7280;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Related News Sidebar */
.related-news-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.related-news-widget .widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.related-news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.related-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-news-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.related-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-thumb img {
    transform: scale(1.1);
}

.related-news-content {
    flex: 1;
}

.related-news-date {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.related-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-title a:hover {
    color: var(--primary-color);
}

/* Tags */
.article-tags {
    margin: 2rem 0;
}

.article-tags .tags-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-tags .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-tags .tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .article-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-share .share-buttons {
        flex-direction: column;
    }
    
    .article-share .share-button {
        width: 100%;
        justify-content: center;
    }
}

