/* NPP Premium Campaign Layer */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body { font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; }

/* Voter pathways */
.pathway-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

.pathway-card {
  display: block;
  padding: 1.75rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: var(--npp-white);
  border: 1px solid rgba(10, 31, 68, 0.08);
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pathway-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--npp-red);
}

.pathway-card.pathway-blue::before { background: var(--npp-blue); }

.pathway-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(10, 31, 68, 0.15);
  color: inherit;
}

.pathway-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(10, 31, 68, 0.06);
  color: var(--npp-blue);
}

.pathway-card.pathway-red .pathway-icon { background: rgba(200, 16, 46, 0.1); color: var(--npp-red); }

/* Interactive Ghana map */
.ghana-map-interactive {
  background: linear-gradient(160deg, #061428 0%, var(--npp-blue) 50%, #123A6B 100%);
  padding: 5rem 0;
  position: relative;
}

.glass-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghana-region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .ghana-region-grid { grid-template-columns: repeat(2, 1fr); }
}

.ghana-region-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--npp-white);
  text-decoration: none;
  text-align: center;
  transition: all 0.25s var(--ease-out);
}

.ghana-region-cell:hover,
.ghana-region-cell.active {
  background: var(--npp-red);
  border-color: var(--npp-red);
  color: var(--npp-white);
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4);
}

.ghana-region-name { font-size: 0.7rem; font-weight: 600; line-height: 1.2; }
.ghana-region-count { font-size: 0.65rem; opacity: 0.85; margin-top: 4px; }

/* Page heroes (regions, discover, etc.) */
.page-hero-premium,
.page-hero-ui {
  background: linear-gradient(135deg, var(--npp-blue) 0%, var(--npp-blue-mid) 55%, #123A6B 100%);
  color: var(--npp-white);
  padding: 3.5rem 0 2.75rem;
}

.page-hero-premium .section-title {
  color: var(--npp-white);
}

.page-hero-premium .section-title::after {
  background: var(--npp-red);
}

.breadcrumb-light .breadcrumb-item,
.breadcrumb-light .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-light .breadcrumb-item a:hover {
  color: var(--npp-white);
}

.breadcrumb-light .breadcrumb-item.active {
  color: var(--npp-white);
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Advanced search */
.search-hero-panel {
  background: linear-gradient(135deg, var(--npp-blue), var(--npp-blue-mid));
  color: white;
  padding: 3rem 0 2rem;
  margin-top: -1px;
}

.filter-panel-premium {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 64px rgba(10, 31, 68, 0.12);
}

.impact-stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.06);
}

.impact-stat-card .num { font-size: 1.75rem; font-weight: 800; color: var(--npp-blue); }
.impact-stat-card .lbl { font-size: 0.75rem; color: var(--npp-gray); text-transform: uppercase; letter-spacing: 0.05em; }

.era-impact-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border-left: 5px solid var(--npp-red);
  box-shadow: 0 12px 40px rgba(10, 31, 68, 0.08);
}

.story-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(10, 31, 68, 0.1);
  border: 1px solid rgba(10, 31, 68, 0.06);
}

.story-card-img { width: 100%; height: 180px; object-fit: cover; }
.story-card-body { padding: 1.5rem; }

.compare-panel {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(10, 31, 68, 0.12);
  border: 1px solid rgba(10, 31, 68, 0.08);
}

.trending-row:hover { border-color: var(--npp-red) !important; background: #fff; }

/* Ghana SVG map */
.ghana-svg-region { cursor: pointer; }
.map-blur-state { position: relative; overflow: hidden; }
.map-blur-state svg { filter: blur(2px); opacity: 0.75; }
.map-blur-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  background: rgba(248, 250, 252, 0.35);
  border-radius: 18px;
}
.ghana-svg-region .region-shape { fill: rgba(10, 31, 68, 0.75); stroke: #fff; stroke-width: 2; transition: fill 0.2s, transform 0.2s; }
.ghana-svg-region[data-count="0"] .region-shape { fill: rgba(148, 163, 184, 0.35); }
.ghana-svg-region:hover .region-shape, .ghana-svg-region:focus .region-shape { fill: var(--npp-red); }
.ghana-svg-region .region-label { fill: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.ghana-svg-region .region-count { fill: rgba(255,255,255,0.85); font-size: 10px; pointer-events: none; }
.map-info-panel { min-height: 140px; }
.map-filter-note,
.map-empty-state {
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-left: 4px solid var(--npp-red);
  border-radius: 14px;
  background: #fffaf9;
  padding: 0.75rem 0.9rem;
}
.map-filter-note p,
.map-empty-state p { margin-bottom: 0; }
.region-list-scroll { max-height: 320px; overflow-y: auto; }

/* Search autocomplete */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: white;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(10, 31, 68, 0.2);
  margin-top: 4px;
  overflow: hidden;
}
.suggest-item {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--npp-blue);
  border-bottom: 1px solid #eee;
}
.suggest-item:hover { background: #f4f6fa; }

/* Timeline premium */
.timeline-premium { position: relative; padding-left: 2rem; border-left: 4px solid var(--npp-red); }
.timeline-premium-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-premium-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--npp-red);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--npp-red);
}
.timeline-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--npp-blue);
  margin-bottom: 0.5rem;
}
.timeline-body {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(10, 31, 68, 0.08);
}

/* Activity cards */
.activity-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(10, 31, 68, 0.08);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(10, 31, 68, 0.12); }
.activity-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.activity-type-achievement { background: rgba(10, 31, 68, 0.1); color: var(--npp-blue); }
.activity-type-ai { background: rgba(200, 16, 46, 0.12); color: var(--npp-red); }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.06);
  border: 1px solid rgba(10, 31, 68, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--npp-blue);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--npp-red);
  border-color: var(--npp-red);
  color: white;
}

/* Evidence badges */
.evidence-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.evidence-verified-public { background: #dcfce7; color: #166534; }
.evidence-verified-internal { background: #dbeafe; color: #1e40af; }
.evidence-unverified { background: #f3f4f6; color: #6b7280; }

/* Before / After */
.before-after-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-executive);
}

.before-after-panel .before,
.before-after-panel .after {
  padding: 2rem;
  min-height: 160px;
}

.before-after-panel .before {
  background: #f3f4f6;
  border-right: 3px solid var(--npp-red);
}

.before-after-panel .after {
  background: linear-gradient(135deg, rgba(10,31,68,0.05), rgba(200,16,46,0.08));
}

.before-after-panel .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.before-after-panel .before .label { color: #6b7280; }
.before-after-panel .after .label { color: var(--npp-red); }

@media (max-width: 768px) {
  .before-after-panel { grid-template-columns: 1fr; }
  .before-after-panel .before { border-right: none; border-bottom: 3px solid var(--npp-red); }
}

/* Share generator */
.share-format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.share-format-card {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.share-format-card:has(input:checked) {
  border-color: var(--npp-red);
  background: rgba(200, 16, 46, 0.06);
}

.share-output-panel {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 200px;
  white-space: pre-wrap;
}

/* Compare eras */
.era-column {
  border-radius: 24px;
  padding: 2rem;
  min-height: 400px;
}

.era-column.kufuor {
  background: linear-gradient(180deg, rgba(10,31,68,0.04), white);
  border-top: 5px solid var(--npp-blue);
}

.era-column.akufo {
  background: linear-gradient(180deg, rgba(200,16,46,0.04), white);
  border-top: 5px solid var(--npp-red);
}

/* Timeline premium */
.timeline-tabs .nav-link {
  border-radius: 999px;
  font-weight: 600;
  color: var(--npp-blue);
  padding: 0.5rem 1.25rem;
}

.timeline-tabs .nav-link.active {
  background: var(--npp-red);
  color: white;
}

/* AI page */
.ai-hero-premium {
  background: linear-gradient(135deg, var(--npp-blue) 0%, #1a0a2e 50%, var(--npp-blue-mid) 100%);
  color: white;
  padding: 4rem 0 3rem;
}

.ai-suggestion-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-suggestion-card:hover {
  border-color: var(--npp-red);
  background: rgba(200, 16, 46, 0.04);
}

.ai-chat-premium {
  background: white;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(10, 31, 68, 0.12);
  overflow: hidden;
}

/* Quick action bar */
.quick-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 1.25rem 0;
}

.quick-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(10, 31, 68, 0.12);
  color: var(--npp-blue);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.quick-action-pill:hover {
  background: var(--npp-blue);
  color: white;
  border-color: var(--npp-blue);
  transform: translateY(-2px);
}

/* Marquee ticker */
.impact-ticker {
  background: var(--npp-red);
  color: white;
  padding: 12px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sector stats bar */
.sector-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(90deg, var(--npp-blue), var(--npp-blue-mid));
  border-radius: 16px;
  color: white;
}

.sector-stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.sector-stat-item .num { font-size: 2rem; font-weight: 800; display: block; }
.sector-stat-item .lbl { font-size: 0.75rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }
