/* ====================================================================
   APEIRON PROMETHEUS MOBILE UI COMPONENT LIBRARY
   Design Tokens & Minimalist Component Styling
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Apeiron Color Tokens */
  --sand-bg: #EFECE6;
  --sand-surface: #F3EFEA;
  --white-card: #FFFFFF;
  --sumi-ink: #1D232A;
  --text-body: #374151;
  --text-muted: #6B7280;
  --border-subtle: #E3DDD4;
  --vermilion: #C83200;
  --ibm-blue: #0A66C2;
  --charcoal-active: #1C1C1A;
  --emerald-success: #24A148;
  --emerald-bg: #DEFBE6;
  --emerald-text: #0E8345;
  --dark-console: #161616;
  
  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometry */
  --radius-card: 12px;
  --radius-pill: 9999px;
  --radius-btn: 8px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--sand-bg);
  color: var(--sumi-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ====================================================================
   COMPONENT 1: QuorumStatusBadge
   ==================================================================== */
.quorum-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--sand-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sumi-ink);
  letter-spacing: 0.03em;
}

.quorum-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-success);
  box-shadow: 0 0 0 3px rgba(36, 161, 72, 0.2);
}

.quorum-dot.failed {
  background-color: var(--vermilion);
  box-shadow: 0 0 0 3px rgba(200, 50, 0, 0.2);
}

/* ====================================================================
   COMPONENT 2: ParliamentaryMotionCard
   ==================================================================== */
.motion-card {
  background: var(--white-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.motion-card-kicker {
  font-size: 10px;
  font-weight: 700;
  color: var(--ibm-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motion-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sumi-ink);
  letter-spacing: 0.02em;
}

.motion-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.actor-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sand-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-body);
}

.actor-chip-role {
  font-weight: 700;
  color: var(--sumi-ink);
}

/* ====================================================================
   COMPONENT 3: ParliamentaryVotingBar
   ==================================================================== */
.voting-bar-container {
  background: var(--white-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voting-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.vote-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease-in-out;
}

.vote-btn-yes {
  background-color: var(--emerald-bg);
  color: var(--emerald-text);
  border-color: rgba(36, 161, 72, 0.3);
}

.vote-btn-yes:active, .vote-btn-yes.active {
  background-color: var(--emerald-success);
  color: #FFFFFF;
}

.vote-btn-no {
  background-color: #FDE8E8;
  color: var(--vermilion);
  border-color: rgba(200, 50, 0, 0.3);
}

.vote-btn-no:active, .vote-btn-no.active {
  background-color: var(--vermilion);
  color: #FFFFFF;
}

.vote-btn-abstain {
  background-color: var(--sand-surface);
  color: var(--text-body);
  border-color: var(--border-subtle);
}

.vote-btn-abstain:active, .vote-btn-abstain.active {
  background-color: var(--charcoal-active);
  color: #FFFFFF;
}

.tally-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background-color: var(--sand-surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.tally-progress-fill {
  height: 100%;
  background-color: var(--emerald-success);
  width: 100%;
  transition: width 0.3s ease;
}

.tally-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ====================================================================
   COMPONENT 4: DecisionBridgeCard
   ==================================================================== */
.decision-card {
  background: var(--white-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid var(--emerald-success);
}

.decision-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sumi-ink);
}

.decision-flow-node {
  background: var(--sand-surface);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.decision-flow-arrow {
  color: var(--text-muted);
}

.decision-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* ====================================================================
   COMPONENT 5: ImmutableMinuteConsole
   ==================================================================== */
.minute-console {
  background-color: var(--dark-console);
  color: #DEFBE6;
  border-radius: var(--radius-card);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #333333;
}

.minute-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #24A148;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #282828;
  padding-bottom: 6px;
}

.minute-console-body {
  word-break: break-all;
  line-height: 1.6;
}

.minute-hash {
  color: #78A9FF;
}

/* ====================================================================
   COMPONENT 6: GovernanceAlertBanner
   ==================================================================== */
.governance-alert {
  background-color: var(--sand-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.governance-alert.compliant {
  border-left: 4px solid var(--emerald-success);
}

.governance-alert-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--sumi-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.governance-alert-badge {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
