/* ==========================================================================
   ARTIGOS.CSS - Página de Listagem de Artigos
   Dica de Médico
   ========================================================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .article-card:hover {
        transform: none;
        box-shadow: none;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: #2d3748;
    background: #f7fafc;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #0d5c45;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #0d5c45;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.logo .logo-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    color: #0d5c45;
}

.logo .tagline {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 400;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.logo-link::before {
    content: '';
    width: 40px;
    height: 40px;
    background: url("/images/logo.svg") center/contain no-repeat;
    display: block;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0d5c45;
    border-bottom-color: #0d5c45;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    font: inherit;
    color: #4a5568;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    padding: 0.5rem;
    display: none;
    z-index: 1002;
    animation: dropdownIn 0.18s ease-out;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.92rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(13, 92, 69, 0.08);
    color: #0d5c45;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: block;
}

.theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(13, 92, 69, 0.08);
    font-size: 0.95rem;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1a2b24;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== COOKIE CONSENT ===== */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1rem 1.25rem;
}

.consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.consent-content p {
    margin: 0;
    color: #1a2b24;
    font-size: 0.95rem;
}

.consent-content a {
    color: #0d5c45;
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.consent-btn {
    border: 1px solid #0d5c45;
    background: #ffffff;
    color: #0d5c45;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.consent-btn.consent-accept {
    background: #0d5c45;
    color: #fff;
}

@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .consent-actions {
        width: 100%;
    }
    .consent-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
    padding: 3rem 0;
}

/* Performance: renderização progressiva dos cards */
.article-item {
    content-visibility: auto;
    contain-intrinsic-size: 280px 220px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    padding: 0.75rem 0;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #a0aec0;
    font-weight: 600;
}

.breadcrumbs a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #0d5c45;
    text-decoration: underline;
}

.breadcrumbs li:last-child span {
    color: #0d5c45;
    font-weight: 600;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.1rem;
    color: #718096;
}

/* ==========================================================================
   FILTERS SECTION
   ========================================================================== */

.filters-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Search Bar */
.search-bar {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    border-color: #0d5c45;
    box-shadow: 0 0 0 3px rgba(13, 92, 69, 0.1);
}

.search-button {
    padding: 0.75rem 1.5rem;
    background: #0d5c45;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    min-width: 60px;
}

.search-button:hover {
    background: #0a4a36;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 92, 69, 0.3);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-controls label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.filter-controls select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    background: white;
    color: #4a5568;
    transition: border-color 0.2s;
}

.filter-controls select:focus {
    outline: none;
    border-color: #0d5c45;
    box-shadow: 0 0 0 3px rgba(13, 92, 69, 0.1);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-tab {
    padding: 0.625rem 1.25rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    font-family: inherit;
    color: #4a5568;
    position: relative;
}

.filter-tab:hover {
    border-color: #0d5c45;
    color: #0d5c45;
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 92, 69, 0.15);
}

.filter-tab.active {
    background: #0d5c45;
    color: white;
    border-color: #0d5c45;
    box-shadow: 0 4px 12px rgba(13, 92, 69, 0.3);
    transform: translateY(-1px);
}

/* Sort Options */
.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-options label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    background: white;
    color: #4a5568;
}

.sort-options select:focus {
    outline: none;
    border-color: #0d5c45;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #4a5568;
    min-width: 44px;
    min-height: 44px;
}

.pagination-btn:hover:not(.active) {
    border-color: #0d5c45;
    color: #0d5c45;
    background: #f0fdf4;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #0d5c45;
    color: white;
    border-color: #0d5c45;
    box-shadow: 0 2px 8px rgba(13, 92, 69, 0.3);
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: #a0aec0;
    font-weight: 500;
}

/* ==========================================================================
   ARTICLES COUNT
   ========================================================================== */

.articles-count {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #718096;
}
/* Loading State */
.articles-count.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #0d5c45;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ==========================================================================
   LOADING INDICATOR
   ========================================================================== */

.loading-indicator {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
}

.spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #0d5c45;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator span {
    color: #718096;
    font-size: 0.95rem;
}

/* ==========================================================================
   ARTICLES LIST
   ========================================================================== */

.articles-list {
    max-width: 900px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.4s ease-out;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    will-change: transform;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.article-image {
    width: 280px;
    min-width: 280px;
    height: auto;
    min-height: 220px;
    background: linear-gradient(135deg, #0d5c45 0%, #18a858 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.article-placeholder {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
    display: none;
}

.article-image::before,
.article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.article-image.is-placeholder::before {
    content: '';
    background: linear-gradient(135deg, rgba(13,92,69,0.9) 0%, rgba(24,168,88,0.9) 100%);
    opacity: 1;
    z-index: 1;
}

.article-image.is-placeholder::after {
    content: '📄';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    opacity: 0.4;
    z-index: 2;
}

.article-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0d5c45;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Article Badges */
.article-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #f0fdf4;
    color: #166534;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.article-badge.badge-popular {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.article-badge.badge-new {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.article-badge.badge-guide {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h2 {
    font-size: 1.35rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1a202c;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-read-time::before {
    content: '⏱';
    font-size: 1rem;
}

.article-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #edf2f7;
    color: #0d5c45;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
    white-space: nowrap;
}

.article-badge.jejum {
    background: #fef3c7;
    color: #d97706;
}

.article-badge.saude {
    background: #fce7f3;
    color: #db2777;
}

.article-badge.nutricao {
    background: #dbeafe;
    color: #2563eb;
}

.article-badge.pratica {
    background: #f0fdf4;
    color: #16a34a;
}

.article-badge.fundamentos {
    background: #f3e8ff;
    color: #9333ea;
}

.article-meta-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

.article-title {
    font-size: 1.35rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.article-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #0d5c45;
}

.article-excerpt {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
    letter-spacing: -0.005em;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d5c45;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

mark {
    background: #fef3c7;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results p {
    font-size: 1.25rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.no-results .btn-primary {
    padding: 0.875rem 2rem;
    background: #0d5c45;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.no-results .btn-primary:hover {
    background: #0a4834;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 92, 69, 0.3);
}

.highlight {
    background: #fef3c7;
    font-weight: 600;
    padding: 0 2px;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d5c45;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.article-link:hover {
    gap: 0.75rem;
}

/* ==========================================================================
   LOAD MORE BUTTON
   ========================================================================== */

.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    padding: 0.875rem 2rem;
    background: #0d5c45;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.load-more-btn:hover {
    background: #0a4834;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(13, 92, 69, 0.35);
}

.load-more-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */

.newsletter-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.newsletter-section h2 {
    font-size: 1.75rem;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.newsletter-section p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #0d5c45;
}

.newsletter-form button {
    padding: 0.875rem 2rem;
    background: #0d5c45;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.newsletter-form button:hover {
    background: #0a4834;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.newsletter-message.error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.footer-bottom .disclaimer {
    font-size: 0.85rem;
    color: #718096;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #0d5c45;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0a4834;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: #718096;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #0d5c45;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0a4834;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .article-image {
        width: 220px;
        min-width: 220px;
        min-height: 180px;
    }
    
    .article-content {
        padding: 1.75rem;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
}

/* Mobile/Tablet Portrait (768px) */
@media (max-width: 768px) {
    .header-content {
        position: relative;
        justify-content: center;
        padding: 0.75rem 0;
    }

    .logo-content {
        margin: 0 auto;
        text-align: center;
    }

    .logo-link {
        align-items: center;
    }

    .logo-link::before {
        width: 32px;
        height: 32px;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 2rem 2rem;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        width: 100%;
        padding: 1rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-item {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 1rem 0;
        color: #1a2b24;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0 0 0.75rem 0.75rem;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
    }

    .theme-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }
    
    .page-header h1 {
        font-size: 1.875rem;
    }
    
    .filters-section {
        padding: 1.5rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls select {
        width: 100%;
    }
    
    .pagination {
        gap: 0.375rem;
    }
    
    .pagination-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .sort-options {
        flex-wrap: wrap;
    }
    
    /* Voltar cards para layout vertical em mobile */
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
        min-height: 200px;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    /* Touch targets - mínimo 44x44px */
    .filter-tab {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    .main-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .article-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .load-more-btn {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .logo .tagline {
        font-size: 0.7rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}
