/* Alert banner - current outbreak */
.alert-banner {
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.alert-banner:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.alert-icon {
    width: 48px;
    height: 48px;
    background: var(--danger);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-banner .alert-title {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.95rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.alert-desc {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.alert-arrow {
    color: var(--danger);
    font-size: 1.2rem;
}

/* Filter pills — sticky below the app header */
.filter-scroller {
    position: sticky;
    top: var(--header-h, 60px);
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 0 -16px var(--space-md);
    padding: var(--space-xs) 16px var(--space-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.filter-scroller h3 {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filters-horizontal {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding: var(--space-xs) 0 var(--space-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filters-horizontal::-webkit-scrollbar {
    display: none;
}

/* Base .filter-pill styles live in style.css — shared across all KB pages */

.filter-pill.critical {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: var(--danger);
}

.filter-pill.critical.active {
    background: var(--danger);
    color: white;
}

.filter-pill.high {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: var(--warning);
}

.filter-pill.high.active {
    background: var(--warning);
    color: white;
}

.filter-pill.medium {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: var(--warning);
}

.filter-pill.medium.active {
    background: var(--warning);
    color: white;
}

.filter-pill.low {
    background: var(--info-soft);
    color: var(--info);
    border-color: var(--info);
}

.filter-pill.low.active {
    background: var(--info);
    color: white;
}

.rates-card {
    padding: var(--space-sm) var(--space-md);
}

.orchard-insights {
    background: linear-gradient(135deg, var(--color-primary-soft), white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-md);
    border: 1px solid rgba(58, 125, 68, 0.2);
}

.orchard-insights-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.orchard-insights-header i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.orchard-insights-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.insight-metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.insight-metric-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    display: block;
}

.desktop-note {
    font-size: 0.8rem;
    margin-top: var(--space-md);
}

/* Disease card component styles live in style.css — shared with spray-schedule page */

/* KB layout styles live in style.css — shared across disease, variety, rootstock pages */

/* ── Tablet ──────────────────────────────── */
@media (min-width: 600px) {
    .orchard-insights-grid { gap: var(--space-lg); }
    .alert-banner:hover { box-shadow: var(--shadow-md); }
}

/* ── Desktop ─────────────────────────────── */
@media (min-width: 1024px) {
    .alert-banner { max-width: 720px; }
    .alert-banner:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
    .orchard-insights { max-width: 720px; }
    .orchard-insights-grid { gap: var(--space-xl); }
    .filter-scroller { max-width: 720px; }
    .filters-horizontal { flex-wrap: wrap; overflow-x: visible; }
}
