/* Telegram-inspired pulse & live feed theme — global readability */
:root {
  --pulse-blue: #38bdf8;
  --pulse-green: #4ade80;
  --pulse-purple: #c084fc;
  --pulse-orange: #fb923c;
  --pulse-glow: rgba(56, 189, 248, 0.5);
}

/* ——— Leesbaarheid ——— */
body, .panel, .main-topnav { color: var(--text-body); }
h1, h2, h3, h4, strong, .kpi-value, .briefing-stat-value { color: var(--text-primary) !important; }
.subtitle, .page-tip, .page-header .subtitle { color: var(--text-secondary) !important; font-size: 0.95rem !important; }
.muted, .empty-state, small { color: var(--text-muted) !important; }
.panel p, .feed-card p, .note-bubble p, .hub-feed-item, .data-table td { color: var(--text-body); }
.data-table th { color: var(--text-secondary); }
.feed-card .source { color: var(--pulse-blue) !important; font-weight: 600; }
a, .feed-card a, .ticker-link { color: var(--pulse-blue); text-decoration: none; }
a:hover, .feed-card a:hover, .ticker-link:hover { color: #7dd3fc; text-decoration: underline; }
.form-input, select, textarea, input { color: var(--text-primary) !important; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--pulse-glow); }
  70% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@keyframes pulse-ring-green {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes live-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tg-breathe {
  0%, 100% { box-shadow: 0 0 0 rgba(56,189,248,0); }
  50% { box-shadow: 0 0 20px rgba(56,189,248,0.08); }
}

@keyframes glow-border {
  0%, 100% { border-color: rgba(56, 189, 248, 0.25); }
  50% { border-color: rgba(56, 189, 248, 0.55); }
}

/* ——— Pulse buttons (Telegram style) ——— */
.btn-pulse, .btn-pulse-green, .btn-pulse-purple {
  position: relative;
  font-weight: 600;
  color: var(--text-primary) !important;
}
.btn-pulse {
  animation: pulse-ring 2.2s infinite;
  border: 1px solid var(--pulse-blue) !important;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(56,189,248,0.06)) !important;
}
.btn-pulse-green {
  animation: pulse-ring-green 2.2s infinite;
  border-color: var(--pulse-green) !important;
  background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(74,222,128,0.06)) !important;
}
.btn-pulse-purple {
  animation: pulse-ring 2.2s infinite;
  --pulse-glow: rgba(192, 132, 252, 0.45);
  border-color: var(--pulse-purple) !important;
  background: linear-gradient(135deg, rgba(192,132,252,0.2), rgba(192,132,252,0.06)) !important;
}

.btn-primary {
  animation: pulse-ring 3s infinite;
  font-weight: 600;
  color: var(--text-primary) !important;
}

/* Geen globale panel-beweging — alleen KPI kaarten animeren via hm-neo */

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pulse-green);
}
.live-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pulse-green);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.live-feed-bar {
  background: linear-gradient(90deg, #0f172a 20%, #1a3a5c 50%, #0f172a 80%);
  background-size: 200% 100%;
  animation: live-shimmer 4s linear infinite;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.ticker-track { display: flex; gap: 2rem; white-space: nowrap; animation: ticker-scroll 45s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item, .ticker-link {
  background: rgba(56,189,248,0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-body) !important;
  border: 1px solid rgba(56,189,248,0.25);
  display: inline-block;
  transition: all 0.2s;
}
.ticker-link:hover {
  background: rgba(56,189,248,0.25);
  color: var(--text-primary) !important;
  transform: scale(1.02);
}

.side-nav { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.5rem; }
.side-nav-btn {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--text-body); cursor: pointer;
  text-align: left; font-size: 0.9rem; transition: all 0.2s;
}
.side-nav-btn:hover { background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.25); color: var(--text-primary); }
.side-nav-btn.active {
  background: rgba(56,189,248,0.18);
  border-color: var(--pulse-blue);
  box-shadow: 0 0 14px rgba(56,189,248,0.25);
  color: var(--text-primary);
}

.section-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.75rem 0; }
.section-tab {
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-size: 0.8rem; cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s;
}
.section-tab.active {
  border-color: var(--pulse-blue);
  background: rgba(56,189,248,0.22);
  box-shadow: 0 0 10px rgba(56,189,248,0.3);
  color: var(--text-primary);
}

.feed-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.6rem;
  animation: fade-up 0.4s ease;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-elevated);
}
.feed-card:hover {
  border-color: var(--pulse-blue);
  box-shadow: 0 0 16px rgba(56,189,248,0.12);
}
.feed-card a strong { color: var(--text-primary); font-size: 0.95rem; }
.feed-card .feed-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.feed-card .btn-source {
  font-size: 0.75rem; padding: 0.25rem 0.65rem;
  border-radius: 999px; border: 1px solid rgba(56,189,248,0.4);
  background: rgba(56,189,248,0.1); color: var(--pulse-blue);
  cursor: pointer; text-decoration: none; display: inline-block;
}
.feed-card .btn-source:hover { background: rgba(56,189,248,0.22); color: var(--text-primary); }
.feed-card .btn-bookmark { cursor: pointer; border: 1px solid rgba(255,215,0,0.35); background: rgba(255,215,0,0.08); color: #fcd34d; }
.feed-card .btn-bookmark.saved { background: rgba(255,215,0,0.22); color: #ffd700; }
.feed-card.saved-rss { border-left: 3px solid #ffd700; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.promo-card-link { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.promo-card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.promo-card-link strong, .promo-card-link p, .promo-card-link small { color: inherit; }
.promo-cover { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 0.65rem; }
.hm-neo-kpi-link { text-decoration: none; color: inherit; display: block; }
.hm-neo-kpi-link:hover .hm-neo-kpi { border-color: rgba(0,229,255,0.35); }

.weather-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.weather-day {
  flex: 1; min-width: 70px; text-align: center; padding: 0.5rem;
  border-radius: 8px; background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2); font-size: 0.8rem; color: var(--text-body);
}
.weather-day strong { display: block; font-size: 1.05rem; color: var(--text-primary); }

.note-bubble {
  background: rgba(56,189,248,0.1);
  border-left: 3px solid var(--pulse-blue);
  padding: 0.65rem 0.85rem; border-radius: 0 8px 8px 0;
  margin-bottom: 0.5rem; font-size: 0.9rem;
}

.milestone-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-bottom: 1px solid var(--border-subtle); }
.milestone-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pulse-orange); animation: pulse-dot 2s infinite; }
.milestone-dot.done { background: var(--pulse-green); animation: none; }

.pro-tab-bar { display: flex; gap: 0; border-bottom: none; margin-bottom: 1rem; }

/* Neo tabs — shared with Beurs page (beurs.css extends this) */
.neo-tab-bar.pro-tab-bar {
  position: relative;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 14px;
  padding: 0.35rem;
}
.neo-tab-bar .neo-tab, .neo-tab-bar .pro-tab {
  flex: 1; border: none; background: transparent;
  color: #94a3b8; cursor: pointer; transition: color 0.2s, transform 0.2s;
  border-bottom: none !important; margin-bottom: 0 !important;
  padding: 0.65rem 0.5rem; font-weight: 600; font-size: 0.82rem;
}
.neo-tab-bar .neo-tab.active, .neo-tab-bar .pro-tab.active {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(74,222,128,0.08));
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(56,189,248,0.15);
}
.neo-tab-bar .neo-tab:hover, .neo-tab-bar .pro-tab:hover { color: #e2e8f0; transform: translateY(-1px); }

.pro-tab {
  padding: 0.75rem 1.25rem; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.pro-tab.active { color: var(--pulse-blue); border-bottom-color: var(--pulse-blue); }
.pro-tab:hover { color: var(--text-primary); }

.kpi-pulse strong {
  background: linear-gradient(90deg, var(--pulse-blue), var(--pulse-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ——— Herman dashboard pulse ——— */
.herman-hero {
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(192,132,252,0.08));
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  animation: glow-border 3s ease-in-out infinite;
}
.herman-hero h1 { margin: 0 0 0.35rem; font-size: 1.75rem; }
.herman-hero .hero-sub { color: var(--text-secondary); font-size: 1rem; margin: 0; }

.pulse-panel {
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 12px;
  animation: glow-border 4s ease-in-out infinite;
}

.hub-kpi-row .kpi-card, .clickable-kpi {
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fade-up 0.5s ease;
}
.hub-kpi-row .kpi-card:hover, .clickable-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,189,248,0.15);
}

.hub-feed-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  animation: fade-up 0.35s ease;
}

.briefing-typewriter {
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 1rem;
  min-height: 4rem;
}

.briefing-horizon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 900px) { .briefing-horizon-grid { grid-template-columns: 1fr; } }

.horizon-card {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-subtle);
}
.horizon-card.short { border-color: rgba(251,146,60,0.35); }
.horizon-card.long { border-color: rgba(192,132,252,0.35); }
.horizon-card h3 { margin: 0 0 0.65rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.horizon-card.short h3 { color: var(--pulse-orange); }
.horizon-card.long h3 { color: var(--pulse-purple); }
.horizon-card ul { margin: 0; padding-left: 1.1rem; color: var(--text-body); line-height: 1.65; }
.horizon-card li { margin-bottom: 0.4rem; }

.retail-highlight {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body); font-size: 0.9rem;
}
.retail-highlight strong { color: var(--text-primary); }

.panel { color: var(--text-body); }
.panel h2 { color: var(--text-primary); }

.kpi-card span { color: var(--text-secondary) !important; }
.kpi-card strong { color: var(--text-primary) !important; }
