/* Kotlina — Profile page styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f4f5f7;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8a0;
  background: rgba(232,168,56,0.15);
  border: 1px solid rgba(232,168,56,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-badge:hover {
  color: #fff;
  background: rgba(232,168,56,0.25);
}
.nav-spacer { flex: 1; }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #a8a8a0;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link--active { color: #e94560; }
.nav-link--active:hover { color: #e94560; background: rgba(233,69,96,0.12); }

/* ── Profile hero ─────────────────────────────────────────────── */
.profile-hero {
  background: #1a1a2e;
  color: #fff;
  padding: 3rem 24px;
}
.profile-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.15);
}
/* Party-colored ring borders for profile photos */
.profile-photo-photo-ano       { border-color: #0047a0; }
.profile-photo-photo-ods       { border-color: #0057b8; }
.profile-photo-photo-stan      { border-color: #7cc142; }
.profile-photo-photo-pirati    { border-color: #000000; }
.profile-photo-photo-kdu       { border-color: #f4a600; }
.profile-photo-photo-spd       { border-color: #d9382a; }
.profile-photo-photo-ms        { border-color: #007bc0; }
.profile-photo-photo-top09     { border-color: #5e3885; }

/* Initials fallback — party-colored circles */
.profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  border-radius: 50%;
  width: 120px;
  height: 120px;
}
.profile-initials.photo-ano       { background: #0047a0; }
.profile-initials.photo-ods       { background: #0057b8; }
.profile-initials.photo-stan      { background: #7cc142; }
.profile-initials.photo-pirati    { background: #000000; }
.profile-initials.photo-kdu       { background: #f4a600; }
.profile-initials.photo-spd       { background: #d9382a; }
.profile-initials.photo-ms        { background: #007bc0; }
.profile-initials.photo-top09     { background: #5e3885; }
.profile-meta {
  flex: 1;
}
.profile-meta .party-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.badge-ANO       { background: #0047a0; color: #fff; }
.badge-ODS       { background: #0057b8; color: #fff; }
.badge-STAN      { background: #7cc142; color: #fff; }
.badge-Piráti    { background: #000000; color: #fff; }
.badge-SPD       { background: #d9382a; color: #fff; }
.badge-Motoristé { background: #6b4fbb; color: #fff; }
.badge-TOP09     { background: #5e3885; color: #fff; }
.badge-KDUČSL    { background: #f4a600; color: #fff; }

.profile-name {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.profile-role {
  font-size: 1rem;
  color: #a8a8c0;
  margin-bottom: 1.5rem;
}
.profile-stats {
  display: flex;
  gap: 2rem;
}
.pstat {
  text-align: left;
}
.pstat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #e94560;
  line-height: 1;
}
.pstat-label {
  display: block;
  font-size: 0.75rem;
  color: #7a7a9a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline-section {
  padding: 3rem 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline-inner {
  max-width: 760px;
}
.timeline {
  border-left: 3px solid #e8eaed;
  padding-left: 2rem;
  margin-top: 1.5rem;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #ddd;
}
.timeline-item.state-aktivni::before    { background: #d4a017; box-shadow: 0 0 0 2px #d4a017; }
.timeline-item.state-uzavreno::before     { background: #aaa; box-shadow: 0 0 0 2px #aaa; }

.timeline-date {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.date-unknown {
  color: #bbb;
  font-style: italic;
}
.timeline-body {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  flex: 1;
}
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-investigativa   { background: #e8f0fe; color: #1d4ed8; }
.badge-prosertrovani   { background: #fef9c3; color: #854d0e; }
.badge-obvineni        { background: #ffedd5; color: #c2410c; }
.badge-rozsudek        { background: #fee2e2; color: #b91c1c; }
.badge-unknown         { background: #f3f4f6; color: #6b7280; }

.timeline-summary {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.timeline-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #1a5fa8;
  text-decoration: none;
  font-weight: 600;
}
.timeline-source:hover { text-decoration: underline; }

.timeline-events {
  margin-top: 0.9rem;
  padding-left: 0.8rem;
  border-left: 2px solid #e0e4ea;
}
.timeline-event {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: #444;
}
.event-period {
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}
.event-arrow {
  color: #bbb;
  flex-shrink: 0;
}
.event-text {
  color: #555;
  line-height: 1.5;
}

.timeline-empty {
  text-align: center;
  padding: 3rem;
  color: #aaa;
  font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 24px;
  font-size: 0.78rem;
  color: #aaa;
  border-top: 1px solid #e0e3e8;
}
.site-footer p { margin-bottom: 0.5rem; }
.site-footer a { color: #1a5fa8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Case page extras ───────────────────────────────────────────── */
.case-description {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.section-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8eaed;
}

.politicians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.politician-card-mini {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.politician-card-mini:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.politician-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a2e;
}
.politician-role {
  font-size: 0.78rem;
  color: #888;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.source-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.source-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #1a5fa8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  min-width: 0;
}
.source-link:hover .source-label { text-decoration: underline; }
.source-link svg { flex-shrink: 0; margin-top: 0.15rem; }
.source-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.source-label {
  white-space: normal;
  word-break: break-word;
}
.source-domain {
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.source-date {
  font-size: 0.75rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-event-inline {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.back-link {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8eaed;
}
.back-link a {
  color: #1a5fa8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.back-link a:hover { text-decoration: underline; }

/* ── Profile sections (scandals, voting, media) ─────────────────── */
.profile-section {
  padding: 2.5rem 24px;
  border-top: 1px solid #e8eaed;
  background: #f9fafb;
}
.profile-section:nth-child(even) { background: #fff; }

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Section heading — matches existing .section-heading in profile.css */
.profile-section .section-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8eaed;
  display: flex;
  align-items: center;
}

/* ── Controversies ─────────────────────────────────────────── */
.controversy-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 760px;
}
.controversy-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid #c62828;
}
.controversy-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.controversy-type {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.controversy-date {
  font-size: 0.78rem;
  color: #aaa;
  font-weight: 600;
}
.controversy-amount {
  font-size: 0.78rem;
  font-weight: 700;
  color: #bf360c;
  background: #fff3e0;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
}
.controversy-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.controversy-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.controversy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.controversy-resolved {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
}

/* Type badges for controversies */
.badge-korupce      { background: #fde8e8; color: #c62828; }
.badge-zneužití moci { background: #fff3e0; color: #bf360c; }
.badge-střet zájmů   { background: #fff8e1; color: #e65100; }
.badge-soudní řízení { background: #e8f0fe; color: #1565c0; }
.badge-kontroverze   { background: #f3e5f5; color: #6a1b9a; }

/* ── Voting record ───────────────────────────────────────────── */
.voting-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 760px;
}
.voting-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid #1a5fa8;
}
.voting-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.voting-year {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a5fa8;
  background: #e3f2fd;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
}
.voting-election {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
}
.voting-result {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  margin-left: auto;
}
.result-elected { background: #e8f5e9; color: #2e7d32; }
.result-other   { background: #f3e5f5; color: #6a1b9a; }
.voting-subject {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 0.4rem;
}
.voting-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.voting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.voting-numbers {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.vote-count {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
}
.vote-for     { background: #e8f5e9; color: #2e7d32; }
.vote-against { background: #fde8e8; color: #c62828; }
.vote-abstain { background: #f5f5f5; color: #616161; }

/* ── Media appearances ──────────────────────────────────────── */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 760px;
}
.media-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid #6a1b9a;
}
.media-outlet {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6a1b9a;
  margin-bottom: 0.4rem;
}
.media-date {
  color: #aaa;
  font-weight: 600;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.media-type {
  color: #8a6bb8;
  font-weight: 600;
  font-size: 0.72rem;
  background: #f3e5f5;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  margin-left: 0.25rem;
}
.media-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.media-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.55;
  margin-bottom: 0.7rem;
}

/* Mobile */
@media (max-width: 600px) {
  .profile-inner { flex-direction: column; gap: 1.5rem; }
  .profile-photo { width: 90px; height: 90px; }
  .profile-stats { gap: 1.5rem; }
  .pstat-number { font-size: 1.6rem; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item::before { left: -2.1rem; }
  .timeline-header { flex-direction: column; }
  .source-item { flex-direction: column; align-items: flex-start; }
  .controversy-footer { flex-direction: column; align-items: flex-start; }
  .voting-footer { flex-direction: column; align-items: flex-start; }
}

/* ── O projektu page ──────────────────────────────────────────── */
.oprojektu-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

/* Typology cards — reuses the same badge-* colors shown on case timelines
   elsewhere on the site, so "Investigativa" etc. always means the same
   color everywhere. */
.typology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.typology-card {
  background: #fff;
  border-radius: 10px;
  border-top: 4px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 1.25rem 1.25rem 1.5rem;
}
.typology-card.typology-investigativa { border-top-color: #1d4ed8; }
.typology-card.typology-prosetrovani  { border-top-color: #ca8a04; }
.typology-card.typology-obvineni      { border-top-color: #c2410c; }
.typology-card.typology-rozsudek      { border-top-color: #b91c1c; }
.typology-card .party-badge,
.typology-card .status-badge {
  margin-bottom: 0.6rem;
}
.typology-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}
.typology-note {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}
@media (max-width: 600px) {
  .typology-grid { grid-template-columns: 1fr; }
}