/* Light theme — voter & admin */
body {
  background: var(--color-light-bg);
  color: var(--color-text-light);
}

/* Topbar */
.topbar {
  background: var(--color-light-surface);
  border-bottom: 1px solid var(--color-light-border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar .logo {
  font-size: var(--text-lg);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}

.topbar .logo img,
.topbar .logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

main { max-width: 680px; margin: 2rem auto; padding: 0 1.25rem; }
main.wide { max-width: 900px; }

/* Section headers */
.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -.02em;
  flex: 1;
}

/* === Vote buttons === */
.answer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--color-light-border);
  border-radius: var(--radius-lg);
  background: var(--color-light-surface);
  color: var(--color-text-light);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: 0.625rem;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.answer-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(233,30,140,.08);
}
.answer-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(233,30,140,.12);
}
.answer-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.answer-btn .checkmark { color: var(--color-primary); font-weight: 700; font-size: var(--text-lg); }

/* Scale grid buttons */
.scale-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 2px solid var(--color-light-border);
  border-radius: var(--radius-lg);
  background: var(--color-light-surface);
  color: var(--color-text-light);
  font-size: var(--text-xl);
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.scale-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.scale-btn.selected {
  border-color: var(--color-primary);
  background: var(--gradient-primary);
  color: #fff;
}
.scale-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* === Waiting screen === */
.waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem 1rem;
  text-align: center;
}
.waiting-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-primary-light);
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}
.waiting-circle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(233,30,140,.2);
  animation: pulse 2s ease-in-out infinite .3s;
}

/* === Success / confirmation === */
.success-banner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #ECFDF5;
  border: 2px solid var(--color-success);
  border-radius: var(--radius-lg);
  color: #065F46;
  padding: 1rem 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* === Form groups === */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.375rem;
}

/* === Modal === */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: float-in 200ms ease-out;
}
.modal {
  background: var(--color-light-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { font-size: var(--text-xl); font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -.02em; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* === Admin session card overrides === */
.question-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
.question-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.question-actions button, .question-actions a {
  min-height: 36px;
  padding: .375rem .875rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
}

/* === Divider === */
hr { border: none; border-top: 1px solid var(--color-light-border); margin: 1.5rem 0; }

/* === Q&A tab bar === */
.tab-bar {
  display: flex;
  gap: .25rem;
  background: var(--color-light-bg);
  border-radius: var(--radius-pill);
  padding: .25rem;
  margin-bottom: 1.5rem;
}
.tab-bar button {
  flex: 1;
  min-height: 40px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  box-shadow: none;
}
.tab-bar button.active {
  background: var(--color-light-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* === Mobile === */
@media (max-width: 480px) {
  main { margin: 1rem auto; }
  .page-header { flex-wrap: wrap; }
  .modal { padding: 1.5rem; }
}
