/* ═══════════════════════════════════════════════════════════════
   OmicsLab — Alerts Feed styles (Prompt 12)
   ═══════════════════════════════════════════════════════════════ */
.alt-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.alt-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.alt-badge { font-size: .65rem; font-weight: 700; letter-spacing: .12em; color: #bc8cff; background: rgba(188,140,255,.1); border: 1px solid rgba(188,140,255,.25); border-radius: 20px; padding: .25rem .7rem; display: inline-block; margin-bottom: .5rem; }
.alt-title { font-size: 1.9rem; font-weight: 700; margin: 0 0 .4rem; }
.alt-subtitle { color: #8b949e; font-size: .92rem; max-width: 580px; margin: 0; }
.alt-header-meta { display: flex; flex-direction: column; gap: .4rem; min-width: 140px; text-align: right; }
.alt-meta-stat { font-size: .85rem; color: #8b949e; }
.alt-meta-num { font-size: 1.4rem; font-weight: 700; color: #e6edf3; margin-right: .25rem; }
.alt-meta-red { color: #ff6b6b; }

/* ── Ticker ── */
.alt-ticker-wrap { display: flex; align-items: center; gap: .8rem; background: rgba(255,107,107,.06); border: 1px solid rgba(255,107,107,.2); border-radius: 6px; padding: .45rem .8rem; margin-bottom: 1.25rem; overflow: hidden; }
.alt-ticker-label { font-size: .6rem; font-weight: 800; letter-spacing: .12em; color: #ff6b6b; white-space: nowrap; border-right: 1px solid rgba(255,107,107,.3); padding-right: .7rem; }
.alt-ticker { flex: 1; overflow: hidden; }
.alt-ticker-inner { display: flex; gap: 2rem; white-space: nowrap; animation: alt-scroll 40s linear infinite; }
.alt-ticker-item { font-size: .78rem; font-weight: 600; }
.alt-ticker-sep { color: #30363d; }
@keyframes alt-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── Controls ── */
.alt-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.alt-filter-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.alt-filter-btn { padding: .3rem .75rem; border: 1px solid #30363d; border-radius: 20px; background: transparent; color: #8b949e; font-size: .78rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.alt-filter-btn:hover { border-color: #58a6ff; color: #58a6ff; }
.alt-filter-btn.active { background: rgba(88,166,255,.12); border-color: #58a6ff; color: #58a6ff; }
.alt-refresh-row { display: flex; align-items: center; gap: .6rem; }
.alt-fetch-ts { font-size: .75rem; color: #6e7681; }
.alt-refresh-btn { display: flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border: 1px solid #30363d; border-radius: 20px; background: transparent; color: #8b949e; font-size: .75rem; cursor: pointer; transition: all .15s; }
.alt-refresh-btn:hover { border-color: #3fb950; color: #3fb950; }
.alt-refresh-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Card grid ── */
.alt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }

/* ── Outbreak card ── */
.alt-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-left: 3px solid var(--alt-color, #58a6ff);
  border-radius: 10px;
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  animation: alt-card-in .35s ease both;
  transition: transform .15s, box-shadow .15s;
}
.alt-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
@keyframes alt-card-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.alt-card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.alt-status-badge { display:inline-flex;align-items:center;gap:.3rem;font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.alt-status-dot { width:7px;height:7px;border-radius:50%;flex-shrink:0; }
.alt-card-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.alt-tag { font-size: .62rem; padding: .15rem .45rem; background: rgba(110,118,129,.1); border: 1px solid #30363d; border-radius: 10px; color: #8b949e; }
.alt-disease { font-size: 1.05rem; font-weight: 700; color: #e6edf3; }
.alt-location { font-size: .78rem; color: #8b949e; display: flex; align-items: center; gap: .3rem; }
.alt-stats-row { display: flex; gap: .8rem; }
.alt-stat { text-align: center; }
.alt-stat-num { font-size: 1.1rem; font-weight: 800; color: #e6edf3; }
.alt-stat-label { font-size: .62rem; color: #6e7681; text-transform: uppercase; letter-spacing: .06em; }
.alt-summary { font-size: .8rem; color: #8b949e; line-height: 1.55; }
.alt-genomic-box { background: rgba(88,166,255,.05); border: 1px solid rgba(88,166,255,.15); border-radius: 6px; padding: .55rem .7rem; }
.alt-genomic-label { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: #58a6ff; margin-bottom: .25rem; text-transform: uppercase; }
.alt-genomic-text { font-size: .78rem; color: #8b949e; line-height: 1.5; }
.alt-card-footer { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.alt-readiness { display: flex; align-items: center; gap: .45rem; flex: 1; }
.alt-readiness-bar-wrap { flex: 1; height: 5px; background: #21262d; border-radius: 3px; overflow: hidden; max-width: 80px; }
.alt-readiness-bar { height: 100%; background: var(--tier-color, #3fb950); border-radius: 3px; }
.alt-readiness-score { font-size: .8rem; font-weight: 700; color: var(--tier-color, #3fb950); }
.alt-readiness-label { font-size: .68rem; color: #6e7681; }
.alt-workflow-btn { font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border: 1px solid #30363d; border-radius: 6px; background: transparent; color: #58a6ff; cursor: pointer; transition: all .15s; white-space: nowrap; }
.alt-workflow-btn:hover { background: rgba(88,166,255,.1); border-color: #58a6ff; }
.alt-source { font-size: .67rem; color: #6e7681; }

/* ── Readiness table ── */
.alt-readiness-section { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 1.25rem 1.25rem 1rem; margin-bottom: 1.5rem; }
.alt-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .8rem; color: #e6edf3; }
.alt-readiness-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.alt-legend-item { font-size: .74rem; font-weight: 600; }
.alt-rt-wrap { overflow-x: auto; }
.alt-rt-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.alt-rt-table thead th { text-align: left; padding: .4rem .6rem; color: #8b949e; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #21262d; }
.alt-rt-row td { padding: .4rem .6rem; border-bottom: 1px solid rgba(48,54,61,.5); vertical-align: middle; }
.alt-rt-row:hover td { background: rgba(88,166,255,.04); }
.alt-rt-country { font-weight: 600; color: #e6edf3; white-space: nowrap; }
.alt-rt-bar { min-width: 80px; }
.alt-rt-bar-wrap { height: 6px; background: #21262d; border-radius: 3px; overflow: hidden; }
.alt-rt-fill { height: 100%; border-radius: 3px; }
.alt-rt-score { font-weight: 700; font-size: .85rem; min-width: 35px; }
.alt-rt-labs { text-align: center; color: #8b949e; }
.alt-rt-cap { color: #8b949e; white-space: nowrap; }
.alt-rt-notes { color: #6e7681; font-size: .75rem; }
.alt-readiness-source { font-size: .73rem; color: #6e7681; margin-top: .75rem; }

/* ── Disclaimer ── */
.alt-disclaimer { display: flex; align-items: flex-start; gap: .5rem; background: rgba(227,179,65,.06); border: 1px solid rgba(227,179,65,.2); border-radius: 6px; padding: .7rem .9rem; font-size: .78rem; color: #8b949e; line-height: 1.5; }

@media (max-width: 600px) {
  .alt-header { flex-direction: column; }
  .alt-header-meta { text-align: left; flex-direction: row; flex-wrap: wrap; }
  .alt-grid { grid-template-columns: 1fr; }
}
