/* Reports & Publications Page */

.reports-page {
    --reports-green: #2d6a4f;
    --reports-teal: #167a8b;
    --reports-orange: #c24d2c;
    --reports-dark: #1a2639;
    background-color: #f8f9fa;
}

/* Hero */
.reports-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
}

.reports-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.reports-hero .container {
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
}

.reports-hero-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.reports-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.reports-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reports-hero-btn-primary {
    background: var(--reports-green);
    color: #fff;
}

.reports-hero-btn-primary:hover {
    background: #40916c;
    color: #fff;
    transform: translateY(-2px);
}

.reports-hero-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.reports-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Stats */
.reports-stats-section {
    margin-top: -3rem;
    position: relative;
    z-index: 3;
    background: transparent;
}

.reports-stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f5;
    border-top: 3px solid var(--reports-stat-color, var(--reports-teal));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reports-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px var(--reports-stat-shadow, rgba(22, 122, 139, 0.14));
}

.reports-stat-card--publications {
    --reports-stat-color: var(--reports-teal);
    --reports-stat-bg: rgba(22, 122, 139, 0.1);
    --reports-stat-shadow: rgba(22, 122, 139, 0.14);
}

.reports-stat-card--downloads {
    --reports-stat-color: var(--reports-green);
    --reports-stat-bg: rgba(45, 106, 79, 0.1);
    --reports-stat-shadow: rgba(45, 106, 79, 0.14);
}

.reports-stat-card--views {
    --reports-stat-color: #24b273;
    --reports-stat-bg: rgba(36, 178, 115, 0.1);
    --reports-stat-shadow: rgba(36, 178, 115, 0.14);
}

.reports-stat-card--years {
    --reports-stat-color: var(--reports-orange);
    --reports-stat-bg: rgba(194, 77, 44, 0.1);
    --reports-stat-shadow: rgba(194, 77, 44, 0.14);
}

.reports-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.85rem;
    border-radius: 12px;
    background: var(--reports-stat-bg);
    color: var(--reports-stat-color);
    font-size: 1.15rem;
}

.reports-stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--reports-stat-color);
    line-height: 1.2;
}

.reports-stat-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.35rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .reports-stats-section {
        margin-top: 0;
        padding-top: 2rem !important;
    }

    .reports-stat-card {
        padding: 1.15rem 0.75rem;
    }

    .reports-stat-number {
        font-size: 1.85rem;
    }
}

/* Section headers */
.reports-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--reports-green);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reports-section-subtitle {
    color: #6c757d;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.reports-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-results-count {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

/* Filters */
.reports-filters-bar {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f2;
}

.reports-filters-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

@media (max-width: 991px) {
    .reports-filters-row {
        grid-template-columns: 1fr 1fr;
    }
    .reports-filter-group--search {
        grid-column: 1 / -1;
    }
    .reports-filter-actions {
        grid-column: 1 / -1;
        display: flex;
        gap: 0.5rem;
    }
}

.reports-filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--reports-teal);
    margin-bottom: 0.35rem;
    display: block;
}

.reports-filter-input,
.reports-filter-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.reports-filter-btn {
    background: var(--reports-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

.reports-filter-btn:hover {
    background: #40916c;
    color: #fff;
}

.reports-filter-clear {
    background: transparent;
    color: var(--reports-orange);
    border: 1px solid var(--reports-orange);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-decoration: none;
}

/* Report cards */
.report-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f2;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.report-card-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.report-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.report-card:hover .report-card-image {
    transform: scale(1.05);
}

.report-card-badge {
    position: absolute;
    top: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.report-card-badge--type {
    left: 0.75rem;
    background: var(--reports-teal);
    color: #fff;
}

.report-card-badge--featured {
    right: 0.75rem;
    background: var(--reports-orange);
    color: #fff;
}

.report-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.report-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.report-card-title-link {
    color: #2c3e50;
    text-decoration: none;
}

.report-card-title-link:hover {
    color: var(--reports-green);
}

.report-card-summary {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
}

.report-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #868e96;
}

.report-card-meta-item i {
    color: var(--reports-teal);
    margin-right: 0.25rem;
}

.report-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.report-card-read-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--reports-green);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.report-card-read-btn:hover {
    background: #40916c;
    color: #fff;
}

.report-card-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background: #f1f3f5;
    color: var(--reports-orange);
    border-radius: 8px;
    text-decoration: none;
}

.report-card-download-btn:hover {
    background: var(--reports-orange);
    color: #fff;
}

/* Featured cards */
.featured-report-card {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--reports-green);
}

.featured-report-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-report-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.featured-report-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-report-card-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--reports-orange);
    color: #fff;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-report-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-report-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-report-card-title a {
    color: #2c3e50;
    text-decoration: none;
}

.featured-report-card-title a:hover {
    color: var(--reports-green);
}

.featured-report-card-summary {
    font-size: 0.875rem;
    color: #6c757d;
    flex: 1;
}

.featured-report-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #868e96;
    margin: 0.75rem 0;
}

.featured-report-card-meta i {
    color: var(--reports-teal);
}

.featured-report-card-actions {
    display: flex;
    gap: 0.5rem;
}

.featured-report-card-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.featured-report-card-btn--primary {
    background: var(--reports-green);
    color: #fff;
}

.featured-report-card-btn--secondary {
    background: #f1f3f5;
    color: var(--reports-teal);
}

/* Newsletters */
.reports-newsletters-section {
    background: #fff;
}

.newsletters-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    transition: background 0.2s;
}

.newsletter-item:hover {
    background: #eef6f3;
}

.newsletter-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--reports-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.newsletter-item-body {
    flex: 1;
    min-width: 0;
}

.newsletter-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.newsletter-item-title a {
    color: #2c3e50;
    text-decoration: none;
}

.newsletter-item-title a:hover {
    color: var(--reports-green);
}

.newsletter-item-date {
    font-size: 0.8rem;
    color: #868e96;
}

.newsletter-item-actions {
    display: flex;
    gap: 0.35rem;
}

.newsletter-item-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: var(--reports-teal);
    text-decoration: none;
    border: 1px solid #dee2e6;
}

.newsletter-item-btn:hover {
    background: var(--reports-teal);
    color: #fff;
}

/* Pagination & empty */
.reports-pagination-wrap {
    display: flex;
    justify-content: center;
}

.reports-pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.reports-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.reports-pagination-btn.is-active {
    background: var(--reports-green);
    border-color: var(--reports-green);
    color: #fff;
    text-decoration: none;
}

.reports-pagination-btn.is-active:hover {
    background: var(--reports-green-hover, #40916c);
    border-color: var(--reports-green-hover, #40916c);
    color: #fff;
}

.reports-pagination-btn.is-current {
    background: var(--reports-teal);
    border-color: var(--reports-teal);
    color: #fff;
}

.reports-pagination-btn.is-disabled {
    background: #e9ecef;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: default;
}

.reports-pagination-btn.is-ellipsis {
    background: transparent;
    border-color: transparent;
    color: #6c757d;
    min-width: auto;
    padding: 0 0.25rem;
}

.reports-pagination-link:not(.is-active):hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: var(--reports-green);
}

.reports-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.reports-empty-icon {
    font-size: 3rem;
    color: #ced4da;
    margin-bottom: 1rem;
}

.text-orange {
    color: var(--reports-orange) !important;
}

/* Loading skeleton */
.reports-grid-loading .report-card {
    pointer-events: none;
}

.reports-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: reports-shimmer 1.5s infinite;
    border-radius: 8px;
    min-height: 200px;
}

@keyframes reports-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Admin chart bars */
.reports-admin-chart-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #eef0f2;
}

.reports-admin-chart-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.reports-admin-chart-label {
    width: 120px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.reports-admin-chart-bar-track {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.reports-admin-chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d6a4f, #167a8b);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.reports-admin-chart-count {
    width: 30px;
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
}
