/* ── Verona Shelters — OPERA Brand Styles ── */

@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@300;400;700&display=swap');

:root {
  --blue: #0A2367;
  --light-blue: #1760C4;
  --cool: #EDF1F4;
  --dark: #262324;
  --white: #FFFFFF;
  --gold: #C79761;
  --cta: #885D39;
  --muted: #6B7A95;
  --line: #D4DBE3;
  --cool-light: #A8B5D1;
  --cadcfc: #CADCFC;
}

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

body {
  font-family: 'Mona Sans', Calibri, sans-serif;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */

.kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.title {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.title-lg {
  font-size: 48px;
  font-weight: 700;
}

.subtitle {
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: var(--cadcfc);
}

.gold-rule {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 12px 0 20px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 16px;
}

.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--blue);
  font-family: 'Mona Sans', Calibri, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--cta);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 11px;
  letter-spacing: 2px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn-block { width: 100%; text-align: center; }

/* ── Inputs ── */

.input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-family: 'Mona Sans', Calibri, sans-serif;
  font-size: 14px;
  outline: none;
  width: 100%;
  color: var(--dark);
  background: var(--white);
}

.input:focus { border-color: var(--blue); }

.input-sm {
  padding: 8px 12px;
  font-size: 13px;
}

/* ── Question bar ── */

.question-bar {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  padding: 16px 20px;
  background: var(--cool);
  border-left: 4px solid var(--gold);
  margin-bottom: 20px;
}

/* ── Idea cards ── */

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.idea-card {
  background: var(--cool);
  padding: 14px 14px 14px 18px;
  border-left: 3px solid var(--blue);
  animation: fadeIn 0.3s ease;
}

.idea-card.gold { border-left-color: var(--gold); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.idea-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark);
}

.idea-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Rank list ── */

.rank-list { display: flex; flex-direction: column; gap: 6px; }

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--cool);
  border-left: 3px solid var(--blue);
  transition: all 0.3s;
}

.rank-item:first-child { border-left-color: var(--gold); }

.rank-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item:first-child .rank-num { color: var(--gold); }

.rank-bar {
  height: 5px;
  background: var(--blue);
  margin-top: 6px;
  transition: width 0.5s ease;
}

.rank-item:first-child .rank-bar { background: var(--gold); }

.rank-votes {
  background: var(--blue);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Action items ── */

.action-item {
  padding: 12px 16px;
  background: var(--cool);
  border-left: 3px solid var(--gold);
  margin-bottom: 6px;
}

.action-item-text { font-size: 14px; color: var(--dark); }

.action-item-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 4px;
}

/* ── Pair card ── */

.pair-card {
  background: var(--cool);
  padding: 14px;
  border-top: 3px solid var(--gold);
}

.pair-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pair-card-members {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

/* ── Topbar (host) ── */

.topbar {
  background: var(--blue);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar img { height: 28px; }

.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.topbar-phase {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--cool-light);
  text-transform: uppercase;
}

/* ── Sidebar (host) ── */

.sidebar {
  width: 300px;
  background: var(--cool);
  padding: 20px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-section { margin-bottom: 20px; }

.qr-box {
  background: var(--white);
  padding: 16px;
  text-align: center;
}

.qr-box svg { width: 100%; max-width: 180px; }

.qr-url {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  margin-top: 6px;
}

/* Phase nav */
.phase-nav { display: flex; flex-direction: column; gap: 3px; }

.phase-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  font-family: 'Mona Sans', Calibri, sans-serif;
  font-size: 13px;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.phase-btn:hover { border-left-color: var(--light-blue); }

.phase-btn.active {
  border-left-color: var(--gold);
  font-weight: 700;
}

.phase-letter {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  width: 20px;
}

.phase-btn.active .phase-letter { color: var(--gold); }

/* Participant chips */
.p-chip {
  padding: 5px 10px;
  background: var(--white);
  font-size: 12px;
  border-left: 2px solid var(--light-blue);
  margin-bottom: 3px;
}

/* ── Host layout ── */

.host-layout {
  display: flex;
  min-height: calc(100vh - 52px);
}

.host-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  max-height: calc(100vh - 52px);
}

.sidebar {
  max-height: calc(100vh - 52px);
}

/* ── Phone header (participant) ── */

.phone-header {
  background: var(--blue);
  padding: 16px 18px 14px;
  color: var(--white);
}

.phone-header .ph-phase {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.phone-header .ph-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.phone-body { padding: 16px; }

/* Phone idea items */
.phone-idea {
  padding: 8px 10px 8px 12px;
  background: var(--cool);
  border-left: 2px solid var(--blue);
  font-size: 13px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-idea .delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

/* Phone vote items */
.phone-vote-item {
  padding: 10px 12px;
  background: var(--cool);
  border-left: 3px solid var(--line);
  font-size: 13px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.phone-vote-item.voted {
  border-left-color: var(--gold);
  background: #f7f0e8;
}

.vote-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s;
}

.phone-vote-item.voted .vote-dot {
  background: var(--gold);
  border-color: var(--gold);
}

.vote-budget {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
}

/* Phone pair items */
.phone-pair-item {
  padding: 10px 12px;
  background: var(--cool);
  font-size: 13px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pair-req-btn {
  padding: 4px 10px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Mona Sans', Calibri, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

/* Pair request modal */
.pair-incoming {
  background: var(--cool);
  padding: 16px;
  border-left: 4px solid var(--gold);
  margin-bottom: 12px;
}

.pair-incoming-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.pair-incoming-actions {
  display: flex;
  gap: 8px;
}

/* ── Landing page ── */

.landing {
  background: var(--blue);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-hero {
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 520px;
}

.landing-hero img { width: 180px; margin-bottom: 40px; }

.landing-hero .kicker { color: var(--gold); margin-bottom: 10px; }

.landing-hero .title-lg { color: var(--white); margin-bottom: 8px; }

.landing-hero .gold-rule { margin: 16px auto 32px; }

.landing-tagline {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--cool-light);
  text-transform: uppercase;
  margin-top: 48px;
}

/* Session history (landing page) */
.history {
  width: 100%;
  max-width: 700px;
  padding: 0 24px 40px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--light-blue);
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--white);
}

.history-item:hover { background: rgba(255, 255, 255, 0.1); }

.history-date {
  font-size: 11px;
  color: var(--cool-light);
  width: 80px;
  flex-shrink: 0;
}

.history-question {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  font-size: 11px;
  color: var(--cool-light);
  flex-shrink: 0;
}

/* ── Triangle motifs ── */

.tri {
  position: fixed;
  width: 0;
  height: 0;
  border-left: solid transparent;
  border-right: solid transparent;
  border-bottom: solid;
  opacity: 0.08;
  pointer-events: none;
}

/* ── Empty state ── */

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* ── Utility ── */

.flex { display: flex; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.flex-1 { flex: 1; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }

/* ── Print styles (for summary page) ── */

@media print {
  .no-print { display: none !important; }
  body { color: #000; }
  .topbar { background: #0A2367 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rank-votes, .rank-bar, .idea-card, .action-item, .question-bar {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
