/* ═══════════════════════════════
   feed.css — Fil d'articles RSS
   ═══════════════════════════════ */

/* ── Layout colonnes ── */
.col-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.col-side {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Article item ── */
.fi {
  border-bottom: 0.5px solid var(--color-border);
  padding: 8px 0;
}
.fi:last-child { border-bottom: none; padding-bottom: 0; }

.fi-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

/* Source tag */
.tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 99px;
  font-weight: 500;
  white-space: nowrap;
}
.t-hn  { background: #FAEEDA; color: #633806; }
.t-dev { background: #EEEDFE; color: #3C3489; }
.t-css { background: #E1F5EE; color: #085041; }
.t-gh  { background: #F1EFE8; color: #444441; }
.t-sec { background: #FCEBEB; color: #791F1F; }

/* Cat tag (auto-detected) */
.tag-cat {
  background: var(--color-bg-secondary);
  color: var(--color-text-tertiary);
}

.fi-time { font-size: 10px; color: var(--color-text-tertiary); margin-left: auto; }
.fi-hot  { font-size: 10px; color: #D85A30; }

.fi-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 3px;
}
.fi-title a { color: var(--color-text-primary); text-decoration: none; }
.fi-title a:hover { color: var(--acc); }

.fi-foot { display: flex; align-items: center; gap: 8px; }
.fi-src  { font-size: 10px; color: var(--color-text-tertiary); }

.faction {
  font-size: 10px;
  color: var(--acc);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 0;
  transition: opacity .12s;
}
.faction:hover { opacity: .7; }
.faction i { font-size: 11px; }

/* ── Sidebar widgets ── */
.trend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 0.5px solid var(--color-border);
}
.trend-item:last-child { border-bottom: none; }
.trend-rank   { font-size: 10px; color: var(--color-text-tertiary); width: 12px; }
.trend-info   { flex: 1; min-width: 0; }
.trend-name   { font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-delta  { font-size: 10px; color: var(--color-text-tertiary); }
.trend-bar    { width: 36px; height: 3px; background: var(--color-bg-secondary); border-radius: 99px; overflow: hidden; }
.trend-fill   { height: 100%; background: var(--acc-m); border-radius: 99px; }

.evt-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 0.5px solid var(--color-border);
}
.evt-item:last-child { border-bottom: none; }
.evt-date {
  background: var(--acc-l);
  border-radius: var(--radius-md);
  padding: 2px 6px;
  font-size: 10px;
  color: var(--acc);
  font-weight: 500;
  min-width: 42px;
  text-align: center;
  flex-shrink: 0;
}
.evt-name { font-size: 11px; }

/* ── Load more ── */
#load-more-wrap button { font-size: 11px; }

/* ── Mobile : colonnes empilées ── */
@media (max-width: 768px) {
  #panel-feed {
    flex-direction: column;
  }
  .col-side {
    width: 100%;
  }
}
