/* Gut-Brain Explorer - Stylesheet */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Refined biotech palette */
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --primary-dark: #1b4332;
    --secondary: #4361ee;
    --secondary-light: #4895ef;
    --accent: #f77f00;
    --accent-light: #fcbf49;

    /* Semantic colors for data visualization */
    --beneficial: #40916c;
    --enriched: #e63946;
    --varied: #9d4edd;

    /* Neutrals - cooler off-white for sophistication */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-light: #e2e8f0;

    /* Typography - Professional font pairing */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-main: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== Base Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-2xl) 0;
}

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: var(--space-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.header-content {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: var(--space-xs);
}

.nav {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    text-align: center;
    letter-spacing: -0.02em;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

/* ===== Hero Section: Explorer ===== */
.hero-section {
    background: var(--bg-secondary);
    padding-top: var(--space-2xl);
    position: relative;
}

/* Subtle gradient mesh background for hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(45, 106, 79, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(67, 97, 238, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(64, 145, 108, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.explorer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    min-width: 180px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.chart-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    min-height: 400px;
}

#main-chart {
    max-height: 500px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.beneficial {
    background: var(--beneficial);
}

.legend-dot.enriched {
    background: var(--enriched);
}

.legend-dot.varied {
    background: var(--varied);
}

.interaction-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: var(--space-md);
}

.legend-explanation {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 700px;
    margin: var(--space-md) auto 0;
    line-height: 1.5;
}

.legend-explanation em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
}

/* ===== Heatmap Table ===== */
.heatmap-wrapper {
    width: 100%;
    overflow-x: auto;
}

.heatmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.heatmap-table th,
.heatmap-table td {
    padding: var(--space-sm);
    text-align: center;
    border: 1px solid var(--border-light);
}

.heatmap-header-cell {
    background: var(--bg-primary);
    font-weight: 500;
    color: var(--text-secondary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    height: 100px;
    white-space: nowrap;
    font-size: 0.8rem;
}

.heatmap-row-label {
    background: var(--bg-primary);
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right !important;
    padding-right: var(--space-md) !important;
    white-space: nowrap;
}

.heatmap-cell {
    min-width: 45px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}

.heatmap-cell:not(.heatmap-empty):hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}

.heatmap-empty {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: default;
}

.heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.heatmap-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.heatmap-swatch {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
}

.heatmap-legend-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.association-details {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    border-left: 4px solid var(--primary);
}

.association-details h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

.association-details.hidden {
    display: none;
}

/* ===== Species Section ===== */
.species-section {
    background: var(--bg-primary);
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.species-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--primary);
}

.species-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(45, 106, 79, 0.1);
}

.species-card .nickname {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.species-card h3 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.species-card .description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.species-card .findings {
    margin-bottom: var(--space-md);
}

.species-card .findings h4 {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.species-card .findings ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.species-card .findings li {
    padding-left: var(--space-md);
    position: relative;
    margin-bottom: var(--space-xs);
}

.species-card .findings li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.species-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.tag.condition {
    background: rgba(67, 97, 238, 0.1);
    color: var(--secondary);
}

.research-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: var(--space-md);
}

.research-badge.strong {
    background: rgba(45, 106, 79, 0.1);
    color: var(--primary);
}

.research-badge.moderate {
    background: rgba(247, 127, 0, 0.1);
    color: var(--accent);
}

.research-badge.emerging {
    background: rgba(157, 78, 221, 0.1);
    color: var(--varied);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.reference-link {
    font-size: 0.8rem;
    color: var(--secondary);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, color 0.2s;
}

.reference-link:hover {
    background: var(--secondary);
    color: white;
}

/* ===== Diet Section ===== */
.diet-section {
    background: var(--bg-secondary);
}

.diet-chart-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    min-height: 350px;
    height: auto;
}

.diet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.diet-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.diet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(45, 106, 79, 0.08);
}

.diet-card.positive {
    border-left: 4px solid var(--beneficial);
}

.diet-card.negative {
    border-left: 4px solid var(--enriched);
}

.diet-card.neutral {
    border-left: 4px solid var(--varied);
}

.diet-card h3 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.diet-card .diet-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.diet-card .impact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.diet-card .impact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.diet-card .impact.positive .impact-icon {
    color: var(--beneficial);
}

.diet-card .impact.negative .impact-icon {
    color: var(--enriched);
}

.diet-card .bacteria-list {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.diet-card .bacteria-list strong {
    color: var(--text-primary);
}

.diet-card .diet-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
}

/* ===== About Section ===== */
.about-section {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.about-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.about-card h3 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    font-weight: 400;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-card ul {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-card ul li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
}

.about-card ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.about-card.highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.about-card.highlight h3 {
    color: white;
}

.about-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.about-card.highlight .author {
    font-style: italic;
    text-align: right;
    margin-top: var(--space-lg);
    opacity: 0.9;
}

.disclaimer {
    background: rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--enriched);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===== Utilities ===== */
.hidden {
    display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        margin-top: var(--space-md);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .explorer-controls {
        flex-direction: column;
        align-items: center;
    }

    .control-group {
        width: 100%;
        max-width: 300px;
    }

    .filter-select {
        width: 100%;
    }

    .chart-container {
        padding: var(--space-md);
    }

    .chart-legend {
        flex-direction: column;
        align-items: center;
    }

    .species-grid,
    .diet-cards,
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ===== Loading State ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.loading::after {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: var(--space-md);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== Error State ===== */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.error-message {
    color: var(--enriched);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.error-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.retry-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.retry-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== Staggered Card Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.species-card,
.diet-card,
.about-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.species-card:nth-child(1), .diet-card:nth-child(1), .about-card:nth-child(1) { animation-delay: 0.1s; }
.species-card:nth-child(2), .diet-card:nth-child(2), .about-card:nth-child(2) { animation-delay: 0.2s; }
.species-card:nth-child(3), .diet-card:nth-child(3), .about-card:nth-child(3) { animation-delay: 0.3s; }
.species-card:nth-child(4), .diet-card:nth-child(4), .about-card:nth-child(4) { animation-delay: 0.4s; }
.species-card:nth-child(5), .diet-card:nth-child(5) { animation-delay: 0.5s; }
.species-card:nth-child(6), .diet-card:nth-child(6) { animation-delay: 0.6s; }
.species-card:nth-child(7), .diet-card:nth-child(7) { animation-delay: 0.7s; }
.species-card:nth-child(8), .diet-card:nth-child(8) { animation-delay: 0.8s; }

/* ===== Data Terms Info Box ===== */
.data-terms-box {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.05), rgba(67, 97, 238, 0.05));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.data-terms-box h4 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.data-terms-box h4::before {
    content: "\2139";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-family: var(--font-main);
}

.data-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.data-term {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.data-term h5 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.data-term p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.data-term .term-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    font-style: italic;
}

/* ===== Legend Tooltips ===== */
.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
    cursor: help;
}

.legend-item .legend-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-shadow: var(--shadow-md);
}

.legend-item .legend-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
}

.legend-item:hover .legend-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Heatmap legend tooltips */
.heatmap-legend-item {
    position: relative;
    cursor: help;
}

.heatmap-legend-item .legend-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-shadow: var(--shadow-md);
}

.heatmap-legend-item .legend-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
}

.heatmap-legend-item:hover .legend-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .data-terms-grid {
        grid-template-columns: 1fr;
    }

    .legend-item .legend-tooltip,
    .heatmap-legend-item .legend-tooltip {
        left: 0;
        transform: translateX(0);
        max-width: 220px;
    }

    .legend-item .legend-tooltip::after,
    .heatmap-legend-item .legend-tooltip::after {
        left: 20px;
        transform: none;
    }
}

/* ===== Age Filter Highlighting ===== */
.age-filter-status {
    background: rgba(247, 127, 0, 0.1);
    border: 1px solid var(--accent);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.age-filter-status strong {
    color: var(--accent);
}

/* Heatmap cell highlighting for age filter */
.heatmap-cell.age-highlighted {
    box-shadow: inset 0 0 0 2px #f77f00;
    position: relative;
}

.heatmap-cell.age-highlighted::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: 0 0 8px rgba(247, 127, 0, 0.4);
    pointer-events: none;
}

@media (max-width: 768px) {
    .age-filter-status {
        font-size: 0.85rem;
        padding: var(--space-xs) var(--space-sm);
    }
}
