/* ============================================================
   HotNews.co.il — All Updates Page CSS
   ============================================================ */

/* ─── Hero ───────────────────────────────────────────────── */
.updates-hero {
  background: var(--brand-secondary);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 4px;
}
.updates-hero-inner { display: flex; flex-direction: column; gap: 8px; }
.updates-hero h1 { color: #fff; font-size: 24px; margin: 0; }
.updates-hero p  { color: rgba(255,255,255,0.82); font-size: 14px; margin: 0; }

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(196,18,18,0.15);
  border: 1px solid rgba(196,18,18,0.3);
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--brand-primary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* ─── Date group ─────────────────────────────────────────── */
.updates-group { margin-bottom: 28px; }

.updates-date-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.date-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}
.date-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ─── Timeline ───────────────────────────────────────────── */
.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.update-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-bottom: none;
  padding: 0;
  transition: background 0.15s;
}
.update-card:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.update-card:last-child  { border-bottom: 1px solid var(--border-color); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.update-card:only-child  { border-radius: var(--radius-md); border-bottom: 1px solid var(--border-color); }
.update-card:hover       { background: var(--bg-muted); }

.update-card--pinned {
  border-right: 3px solid var(--brand-primary);
  background: #fff8f8;
}

/* time column */
.update-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
}
.update-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
}
.update-line {
  flex: 1;
  width: 2px;
  background: var(--border-color);
  margin-top: 6px;
  min-height: 10px;
}
.update-card:last-child .update-line { display: none; }

/* body */
.update-body {
  padding: 14px 16px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.update-pin {
  font-size: 11px;
  color: var(--brand-primary);
  font-weight: 700;
}
.update-scope {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.update-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}
.update-text {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
}
.update-read-more {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 4px;
}
.update-read-more:hover { text-decoration: underline; }

/* ─── Sidebar article items ──────────────────────────────── */
.sidebar-article-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}
.sidebar-article-item:last-child { border-bottom: none; }
.sidebar-article-item:hover .sidebar-article-title { color: var(--brand-primary); }
.sidebar-article-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .update-card { grid-template-columns: 44px 1fr; }
  .update-time  { font-size: 11px; }
  .update-title { font-size: 14px; }
  .updates-hero { padding: 20px 18px; }
}
