/**
 * RadientIQ - Minimalistic Design (Aesthetic Green Theme)
 * Reports Page Stylesheet
 */

/* Page Header Styles */
.page-header {
    background-color: var(--light-bg-color); 
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header-content {
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-sm);
    font-size: 2.4rem; /* Consistent with other H1 */
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem; /* Slightly larger */
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.7rem;
    margin: 0 var(--space-sm);
    color: var(--text-light);
}

/* Report Filters Styles */
.report-filters {
    padding: var(--space-lg) 0;
    background-color: white; 
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm); /* Add a subtle shadow */
    margin-bottom: var(--space-xl); /* Space below filter section */
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg); /* Increased gap */
    margin-bottom: var(--space-lg);
    align-items: flex-end; /* Align items to bottom for consistent button height */
}

.filter-group {
    flex: 1 1 200px; /* Allow wrapping with a base size */
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: var(--space-sm); /* More space */
    font-weight: 500;
}

.filter-select {
    width: 100%;
    padding: 0.8rem 1rem; /* More padding */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--background-color); /* Use body background for inputs */
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2); 
}

.filter-container .btn {
    padding: 0.8rem 1.5rem; /* Align button padding with selects */
    height: fit-content; /* Ensure button aligns well */
}

/* Search Container */
.search-container {
    margin-bottom: var(--space-lg);
}

.report-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.report-search-form input {
    flex: 1;
    padding: 0.8rem 1rem; /* Consistent padding */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    font-size: 0.95rem;
    outline: none;
    background-color: var(--background-color);
}

.report-search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2); 
}

.report-search-form button {
    padding: 0 var(--space-lg); /* More padding */
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.report-search-form button:hover {
    background-color: var(--secondary-color);
}


/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md); /* More gap */
    margin-top: var(--space-lg); /* More space above */
    justify-content: center; /* Center active filters if they wrap */
}

.filter-tag, .active-filter /* .active-filter is from region-specific pages */ {
    display: inline-flex; /* Changed to inline-flex */
    align-items: center;
    background-color: var(--light-bg-color); 
    color: var(--primary-color);
    padding: 0.4rem 0.9rem; /* More padding */
    border-radius: var(--border-radius-md);
    font-size: 0.9rem; /* Slightly larger */
    font-weight: 500;
    border: 1px solid var(--primary-color); /* Add border to tags */
}

.filter-tag .remove-filter, .active-filter .fa-times {
    background: none;
    border: none;
    color: var(--primary-color);
    margin-left: var(--space-sm); /* More space */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem; /* Larger remove icon */
    opacity: 0.7;
}
.filter-tag .remove-filter:hover, .active-filter .fa-times:hover {
    opacity: 1;
    color: var(--secondary-color);
}


.clear-all-filters {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    margin-left: var(--space-md);
    padding: 0.4rem 0; /* Align with tags */
}

.clear-all-filters:hover {
    color: var(--primary-color);
}

/* Reports List */
.reports-list {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xxl);
}

.reports-count {
    margin-bottom: var(--space-lg);
    color: var(--text-light);
    font-size: 1rem; /* Larger count text */
    text-align: center; /* Center reports count */
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl); /* Increased gap */
    margin-bottom: var(--space-xl);
}

/* .reports-grid .report-card is styled in styles.css - ensure consistency */

.report-card .report-image { /* Specific to reports.css if needed, else use styles.css */
    height: 200px; /* Consistent height */
    overflow: hidden;
}

.report-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: var(--space-sm);
}

.report-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: 0.9rem; /* Slightly larger */
    color: var(--text-light);
}

.report-meta span {
    display: flex;
    align-items: center;
}

.report-meta i {
    margin-right: var(--space-sm); /* More space */
    color: var(--primary-color);
}

.report-actions {
    display: flex;
    gap: var(--space-md); /* More gap */
    margin-top: auto;
}

.report-actions .btn {
    flex: 1;
    padding: 0.7rem 1.2rem; /* Consistent button padding */
    font-size: 0.95rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-xl);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    margin: 0 var(--space-md);
}

.pagination-numbers a, .pagination-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; /* Slightly larger */
    height: 42px;
    margin: 0 5px; /* Adjusted margin */
    border-radius: var(--border-radius-md);
    font-size: 1rem; /* Larger font */
    color: var(--text-color);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color); /* Add border to inactive */
}

.pagination-numbers a:hover {
    background-color: var(--light-bg-color); 
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-numbers a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.pagination-numbers span { /* For ellipsis */
    border: none;
}


.pagination-prev, .pagination-next {
    width: 42px; /* Consistent size */
    height: 42px;
    border: 1px solid var(--border-color);
    background-color: white; 
    color: var(--text-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-prev:hover, .pagination-next:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-prev:disabled, .pagination-next:disabled {
    background-color: var(--background-color); /* Lighter for disabled */
    color: var(--text-light);
    cursor: not-allowed;
    border-color: var(--border-color);
}

/* Report Detail Page */
.report-detail-section {
    padding: var(--space-xl) 0;
    background-color: white; /* Ensure detail page has clean white background */
}

.report-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

.report-detail-content h1 {
    font-size: 2.2rem; /* Larger title */
    margin-bottom: var(--space-lg); /* More space */
}

.report-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg); /* More gap */
    margin-bottom: var(--space-lg);
}

.report-detail-meta span {
    display: flex;
    align-items: center;
    font-size: 0.95rem; /* Larger meta text */
    color: var(--text-light);
}

.report-detail-meta i {
    margin-right: var(--space-sm);
    color: var(--primary-color);
}

.report-detail-image {
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md); /* More prominent shadow for image */
}

.report-detail-image img {
    width: 100%;
    height: auto;
}

.report-description {
    margin-bottom: var(--space-lg);
    line-height: 1.8; /* Better readability for long text */
}
.report-description h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
    color: var(--primary-color);
}


.report-detail-sidebar {
    background-color: var(--light-bg-color); 
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    height: fit-content;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.report-sidebar-section {
    margin-bottom: var(--space-lg);
}

.report-sidebar-section:last-child {
    margin-bottom: 0;
}

.report-sidebar-section h3 {
    font-size: 1.3rem; /* Larger sidebar heading */
    margin-bottom: var(--space-md);
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-sm);
}

.report-price {
    font-size: 2rem; /* Larger price */
    color: var(--primary-color);
    font-weight: 700; /* Bolder price */
    margin-bottom: var(--space-md);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md); /* More gap */
}

.sidebar-actions .btn {
    text-align: center;
    width: 100%;
    padding: 0.85rem 1.5rem; /* Consistent button padding */
}

.report-info-list {
    list-style: none;
}

.report-info-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md); /* More space */
    font-size: 1rem; /* Larger info text */
    padding-bottom: var(--space-sm);
    border-bottom: 1px dashed var(--border-color); /* Subtle separator */
}
.report-info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.report-info-list .info-label {
    color: var(--text-light);
    margin-right: var(--space-sm);
}

.report-info-list .info-value {
    font-weight: 600; /* Bolder value */
    color: var(--text-dark);
    text-align: right;
}

/* Industry/Region Specific Page Styles */
.industry-overview, .region-overview {
    background-color: white; 
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.overview-content, .region-content, .industry-content {
    display: flex;
    gap: var(--space-xxl); /* More gap for overview sections */
    align-items: center;
}

.overview-text, .region-text, .industry-info {
    flex: 1.5;
}

.overview-text h2, .region-text h2, .industry-info h2 {
    color: var(--primary-color);
    margin-bottom: var(--space-lg); /* More space */
    font-size: 2.2rem;
}

.key-stats, .region-stats, .industry-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-xl); /* More space */
}

.stat-item {
    text-align: center;
    padding: var(--space-lg); /* More padding */
    background-color: var(--light-bg-color); 
    border-radius: var(--border-radius-md);
    flex: 1;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-item span.stat-number, .stat-item h3 {
    display: block;
    font-size: 2rem; /* Larger stat numbers */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.stat-item span.stat-label, .stat-item p {
    font-size: 0.95rem; /* Slightly larger */
    color: var(--text-light);
    margin-bottom: 0;
}

.overview-image, .region-map, .industry-image {
    flex: 1;
    text-align: center;
}
.overview-image img, .region-map img, .industry-image img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.sub-sectors, .key-trends, .country-shortcuts, .related-industries {
    padding: var(--space-xl) 0;
    background-color: var(--light-bg-color); 
}
.sub-sectors .section-header, .key-trends .section-header, .country-shortcuts .section-header, .related-industries .section-header {
    margin-bottom: var(--space-lg); /* Consistent spacing for headers in these sections */
}


.subsector-grid, .trends-grid, .country-grid, .industry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.subsector-card, .trend-card, .country-card, .related-industries .industry-card {
    background-color: white;
    padding: var(--space-xl); /* More padding */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.subsector-card:hover, .trend-card:hover, .country-card:hover, .related-industries .industry-card:hover {
    transform: translateY(-8px); /* More lift */
    box-shadow: var(--shadow-md);
}

.subsector-icon, .trend-icon, .country-icon {
    font-size: 2.5rem; /* Larger icons */
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
}
.subsector-card h3, .trend-card h3, .country-card h3, .related-industries .industry-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}
.subsector-card p, .trend-card p, .country-card p, .related-industries .industry-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}
.subsector-card a, .country-card a { /* For links inside these cards */
    font-weight: 500;
    color: var(--primary-color);
}
.subsector-card a:hover, .country-card a:hover {
    color: var(--secondary-color);
}


.related-industries .industry-card img {
    max-width: 80px; /* Smaller images for related industries for a cleaner look */
    height: 80px;
    object-fit: contain; /* Ensure logo is visible */
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius-sm); 
    /* filter: grayscale(1); /* Optional: grayscale logos for minimalism */
    /* transition: filter 0.3s ease; */
}
/* .related-industries .industry-card:hover img {
    filter: grayscale(0);
} */


/* Responsive adjustments are in responsive.css */