/* ============================================================
   agreement-grid.css — Agreement grid (statement battery)
   ============================================================ */

.ag-container {
  width: 100%; display: flex; flex-direction: column;
  gap: 10px; user-select: none;
}

/* shared 5-point legend */
.ag-legend {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding-bottom: 4px; margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ag-legend-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(255,255,255,0.65);
}
.ag-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.ag-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.ag-stmt {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.ag-dots {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.ag-dot {
  width: 26px; height: 26px; border-radius: 50%;
  /* Always show each point's colour (red = disagree … green = agree) so the row
     reads left→right even before a tap. */
  border: 2.5px solid var(--ag-color, rgba(255,255,255,0.3));
  background: rgba(18,20,28,0.55);
  cursor: pointer; padding: 0; outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.13s ease, box-shadow 0.13s ease,
              background 0.13s ease, border-color 0.13s ease;
}
.ag-dot:hover {
  transform: scale(1.15);
  background: color-mix(in srgb, var(--ag-color) 30%, rgba(18,20,28,0.55));
}
.ag-dot:active { transform: scale(0.95); }
.ag-dot.selected {
  background: var(--ag-color, #2ecc71);
  border-color: var(--ag-color, #2ecc71);
  transform: scale(1.25);
  box-shadow: 0 0 12px var(--ag-color, #2ecc71), 0 2px 8px rgba(0,0,0,0.35);
}

@media (max-width: 600px) {
  .ag-legend-item { font-size: 10px; gap: 4px; }
  .ag-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .ag-stmt { font-size: 13px; }
  .ag-dots { justify-content: space-between; gap: 4px; }
  .ag-dot { width: 30px; height: 30px; }
}
