/* ===========================================
   NOTICIAS SYSTEM - Optimized CSS
   Uses global variables from variables.css
   =========================================== */

/* =========================================
   Archive Page - Hero
   ========================================= */
.news-archive {
    background-color: var(--color-gray-50);
}

.news-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-green-dark) 100%);
    padding: 80px var(--space-6) 60px;
    text-align: center;
    border-bottom-left-radius: var(--radius-3xl);
    border-bottom-right-radius: var(--radius-3xl);
}

.news-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-hero .hero-title {
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 54px;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.news-hero .hero-subtitle {
    color: var(--color-gray-50);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
}

/* =========================================
   Featured News Section
   ========================================= */
.featured-news-section {
    padding: 60px var(--space-6);
}

.featured-news-section .container {
    max-width: 1216px;
    margin: 0 auto;
}

.featured-news-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-10);
    background: var(--color-white);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-news-card .featured-image {
    height: 100%;
    min-height: 400px;
}

.featured-news-card .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-card .featured-content {
    padding: var(--space-10) var(--space-10) var(--space-10) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.featured-meta .meta-label {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.featured-meta .meta-date {
    color: var(--color-primary-dark);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.featured-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary-dark);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
}

.featured-title a {
    color: inherit;
    text-decoration: none;
}

.featured-title a:hover {
    color: var(--color-green-dark);
}

.featured-excerpt {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.btn-leia-mais {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-lime);
    color: var(--color-primary-dark);
    padding: var(--space-4) var(--space-7);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-normal);
    width: fit-content;
}

.btn-leia-mais:hover {
    background: var(--color-green-dark);
    color: var(--color-white);
}

/* =========================================
   News Grid Section
   ========================================= */
.news-grid-section {
    padding: 60px var(--space-6);
    background: var(--color-gray-50);
}

.news-grid-section .container {
    max-width: 1216px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    gap: var(--space-5);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-green-dark);
}

.news-filters .filter-select {
    padding: var(--space-3) var(--space-10) var(--space-3) var(--space-4);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    background: var(--color-white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23435551' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-8);
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card .card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.news-card .card-content {
    padding: var(--space-6);
}

.card-meta {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-3);
}

.card-meta .meta-date {
    background: var(--color-gray-50);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
}

.card-meta .meta-category {
    color: var(--color-green-medium);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-3);
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-excerpt {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.card-link {
    color: var(--color-primary-dark);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    font-size: var(--font-size-base);
}

.card-link:hover {
    color: var(--color-green-dark);
    text-decoration: underline;
}

/* =========================================
   Pagination
   ========================================= */
.news-pagination {
    margin-top: 60px;
    text-align: center;
}

.news-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.news-pagination a:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    border-color: var(--color-primary-dark);
}

.news-pagination .current {
    background: var(--color-primary-dark);
    color: var(--color-white);
    border-color: var(--color-primary-dark);
}

/* =========================================
   Newsletter Section
   ========================================= */
.newsletter-section {
    padding: 80px var(--space-6);
    background: var(--color-cream);
}

.newsletter-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-section .newsletter-box {
    text-align: center;
}

.newsletter-section .newsletter-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-8);
    line-height: var(--line-height-tight);
}

.newsletter-section .newsletter-form {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.newsletter-section .newsletter-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    max-width: 400px;
}

.newsletter-section .newsletter-form label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.newsletter-section .newsletter-form input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
}

.newsletter-section .btn-newsletter {
    background: var(--color-lime);
    color: var(--color-primary-dark);
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--transition-normal);
    align-self: flex-end;
}

.newsletter-section .btn-newsletter:hover {
    background: var(--color-green-dark);
    color: var(--color-white);
}

.newsletter-section .newsletter-privacy {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* =========================================
   Single Article
   ========================================= */
.single-noticia {
    background: var(--color-bg-light);
}

/* Featured Image Hero - Now at top */
.article-featured-image-hero {
    width: 100%;
    padding: var(--navbar-offset) var(--space-6) 0;
}

.featured-image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.image-caption {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-style: italic;
    margin-top: var(--space-3);
}

/* Article Header - Below image */
.article-header {
    background: var(--color-bg-white);
    padding: var(--space-10) var(--space-6);
    border: none;
}

.article-header .container {
    max-width: 900px;
    margin: 0 auto;
}

.header-meta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-5);
}

.header-meta .meta-label {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.header-meta .meta-date {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.article-title {
    color: var(--color-green-900);
    font-size: 42px;
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-5);
}

.article-lead {
    color: var(--color-text-secondary);
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
}

.article-content {
    padding: 60px var(--space-6);
}

.article-content .container {
    max-width: 1216px;
    margin: 0 auto;
}

.content-wrapper {
    background: var(--color-white);
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-6);
}

.content-wrapper h2 {
    color: var(--color-primary-dark);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin: var(--space-10) 0 var(--space-5);
}

.content-wrapper h3 {
    color: var(--color-green-dark);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: var(--space-8) 0 var(--space-4);
}

.content-wrapper blockquote {
    border-left: 4px solid var(--color-lime);
    padding: var(--space-5) var(--space-6);
    margin: var(--space-8) 0;
    background: var(--color-gray-50);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    margin: var(--space-6) 0;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-6);
}

.content-wrapper li {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    margin-bottom: var(--space-2);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-gray-200);
}

.tags-label {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark);
    margin-right: var(--space-2);
}

.article-tags a {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--color-gray-50);
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--transition-normal);
}

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

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-gray-200);
}

.share-label {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark);
}

.share-buttons {
    display: flex;
    gap: var(--space-3);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-gray-50);
    color: var(--color-text-muted);
    transition: all var(--transition-normal);
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-facebook:hover { background: #1877f2; color: white; }
.share-twitter:hover { background: #1da1f2; color: white; }
.share-whatsapp:hover { background: #25d366; color: white; }
.share-email:hover { background: var(--color-primary-dark); color: white; }

/* Post Navigation */
.post-navigation {
    padding: 60px var(--space-6);
    background: var(--color-white);
}

.post-navigation .container {
    max-width: 1000px;
    margin: 0 auto;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
}

.nav-previous,
.nav-next {
    background: var(--color-gray-50);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.nav-previous:hover,
.nav-next:hover {
    background: var(--color-gray-100);
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: inherit;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark);
    line-height: var(--line-height-tight);
}

/* Related Articles */
.related-articles {
    padding: 80px var(--space-6);
    background: var(--color-gray-50);
}

.related-articles .container {
    max-width: 1216px;
    margin: 0 auto;
}

.related-articles .section-title {
    text-align: center;
    margin-bottom: var(--space-10);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.related-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: var(--space-5);
}

.related-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-2);
}

.related-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.related-title a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.related-title a:hover {
    color: var(--color-green-dark);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .featured-news-card {
        grid-template-columns: 1fr;
    }
    
    .featured-news-card .featured-content {
        padding: var(--space-8);
    }
    
    .featured-news-card .featured-image {
        min-height: 300px;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next .nav-label {
        justify-content: flex-start;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-hero .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .article-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .content-wrapper {
        padding: var(--space-6);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}
