/* ============================================================
   VPLYV.info — Стилі для динамічного CMS-контенту
   ============================================================
   Підключається через <link rel="stylesheet" href="/cms-content.css">
   Дублюється у vplyv-media-site/cms-content.css
   ============================================================ */

/* ---------- Стрічки депутатів (dep-card) ---------- */
.dep-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e5e5);
  cursor: pointer;
  transition: all 0.2s;
}
.dep-card:hover {
  border-color: #0D0D0D;
  transform: translateY(-2px);
}
.dep-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dep-photo-placeholder {
  width: 72px;
  height: 72px;
  background: #0D0D0D;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.dep-info { flex: 1; min-width: 0; }
.dep-name {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
  line-height: 1.3;
}
.dep-faction {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}
.dep-district {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
}
.dep-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dep-stats span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #E53935;
  margin-right: 5px;
  vertical-align: middle;
}
.dep-chamber-badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  background: #f5f5f5;
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
}

/* ---------- Картка петиції (pet-card) ---------- */
.pet-card {
  padding: 24px;
  background: var(--card, #fff);
  border-left: 3px solid #2E7D32;
  margin-bottom: 16px;
}
.pet-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.pet-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.pet-progress { margin-bottom: 14px; }
.pet-numbers {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.pet-numbers strong { color: #E53935; font-size: 15px; }
.pet-bar {
  background: #f0f0f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.pet-fill {
  background: #2E7D32;
  height: 100%;
  transition: width 0.4s;
}
.pet-deadline {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}
.btn-pet-sign {
  background: #E53935;
  color: #fff;
  border: none;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.btn-pet-sign:hover { background: #B71C1C; }

/* ---------- Подія (event-card) ---------- */
.event-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e5e5);
  margin-bottom: 16px;
  overflow: hidden;
}
.event-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.event-body { padding: 20px; }
.event-date {
  font-size: 12px;
  color: #E53935;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.event-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.3;
}
.event-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.event-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
}
.event-meta a { color: #E53935; text-decoration: none; }
.event-type-badge {
  background: #f5f5f5;
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* ---------- Подкаст (podcast-card) ---------- */
.podcast-card {
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e5e5);
  overflow: hidden;
}
.podcast-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.podcast-body { padding: 18px; }
.podcast-episode {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.podcast-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.podcast-desc {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.podcast-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #999;
  font-variant-numeric: tabular-nums;
}

/* ---------- Член команди (team-member) ---------- */
.team-member {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e5e5);
}
.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-photo-placeholder {
  width: 96px;
  height: 96px;
  background: #E53935;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  flex-shrink: 0;
}
.team-info { flex: 1; min-width: 0; }
.team-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}
.team-role {
  font-size: 12px;
  color: #E53935;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.team-bio {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 8px;
}
.team-telegram {
  color: #0088cc;
  font-size: 12px;
  text-decoration: none;
}

/* ---------- FAQ (заглушка, бо є власна) ---------- */
#faqList .faq-item {
  border-bottom: 1px solid #e5e5e5;
}
#faqList .faq-question {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
}
#faqList .faq-answer {
  padding: 0 0 18px;
  color: #555;
  line-height: 1.7;
  font-size: 14px;
}

/* ---------- Article-card (дублюємо мінімальні стилі) ---------- */
.article-card .article-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-card .article-body { padding: 16px; }
.article-card .article-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.article-card .article-category { color: #E53935; font-weight: 700; }
.article-card .article-tag {
  background: #f0f0f0;
  padding: 2px 8px;
  color: #555;
}
.article-card .article-tag.article-tag-red {
  background: #E53935;
  color: #fff;
}
.article-card .article-title a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
}
.article-card .article-lead {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
}
.article-card .article-footer {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #999;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------- Decisions table ---------- */
#decisionsTable {
  width: 100%;
  border-collapse: collapse;
}
#decisionsTable th,
#decisionsTable td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
}
#decisionsTable th {
  background: #f5f5f5;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
}
.dec-status {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.dec-status-passed { color: #2E7D32; }
.dec-status-failed { color: #E53935; }
.dec-status-delayed { color: #ED6C02; }
.dec-category {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.dec-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}
.dec-votes {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.vote-for { color: #2E7D32; font-weight: 700; }
.vote-against { color: #E53935; font-weight: 700; }

/* ---------- Empty state ---------- */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: #999;
  background: #fafafa;
  border: 1px dashed #ddd;
  font-style: italic;
}

/* ---------- Dark theme overrides ---------- */
html[data-theme="dark"] .dep-card,
html[data-theme="dark"] .pet-card,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .podcast-card,
html[data-theme="dark"] .team-member {
  background: #1a1a1a;
  border-color: #333;
}
html[data-theme="dark"] .dep-name,
html[data-theme="dark"] .pet-title,
html[data-theme="dark"] .event-title,
html[data-theme="dark"] .podcast-title,
html[data-theme="dark"] .team-name { color: #fff; }
html[data-theme="dark"] .dep-faction,
html[data-theme="dark"] .pet-desc,
html[data-theme="dark"] .event-desc,
html[data-theme="dark"] .podcast-desc,
html[data-theme="dark"] .team-bio { color: rgba(255,255,255,0.7); }
html[data-theme="dark"] .dep-chamber-badge,
html[data-theme="dark"] .event-type-badge {
  background: #2a2a2a;
  color: rgba(255,255,255,0.6);
}
html[data-theme="dark"] .pet-bar { background: #2a2a2a; }
html[data-theme="dark"] #decisionsTable th { background: #1a1a1a; color: rgba(255,255,255,0.7); }
html[data-theme="dark"] #decisionsTable td { border-color: #2a2a2a; }
html[data-theme="dark"] .empty-state {
  background: #1a1a1a;
  border-color: #333;
  color: rgba(255,255,255,0.5);
}
