/* cogitator/army-builder-col3.css v6 */
/* Army Builder Column 3 — Col3-specific styles only */

/* DevAgent6 - 2026-05-28
   What: v6 — Four tweaks:
         1. .al-card-strip width 15px → 20px.
         2. .al-card-menu: top:0; bottom:0 so it matches card height exactly.
         3. .al-card-menu__item separator: border-bottom on Duplicate item.
         4. .al-card-menu__item padding-top nudged up 1px.
   Why: Visual polish per Jérôme review. */
         .al-card-strip: 15px right-edge strip with ⋮ trigger.
         .al-card-strip__dots: vertical ellipsis, centred in strip.
         .al-card-menu: floating popup anchored to strip, above card.
         .al-card-menu__item: Duplicate / Remove buttons.
         .al-card-menu__item--remove: red text variant.
         Also removed .al-remove-btn (no longer in markup).
   Why: Card menu strip replaces remove button per Jérôme review. */

/* DevAgent6 - 2026-05-28
   What: v4 — al-card rule family removed. Cards use ub-card classes from col1.css.
   Why: Phase 2 fixes. */

/* ── Col 3 header — no overrides; inherits .ab-col__header from col1.css ── */

.ab-col-3__header {
  /* inherits .ab-col__header layout */
}

/* ── Scrollable body ── */

.ab-col-3__body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ── Empty state ── */

.ab-col-3__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 80px;
  padding: var(--space-6) var(--space-4);
}

.ab-col-3__empty-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}

/* ── Card menu strip ── */

/* 15px strip on the right edge of each ub-card.
   Sits as a sibling after ub-card__info — requires ub-card to have position:relative
   (set via inline style on the card root). */
.al-card-strip {
  width: 20px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-left: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: background var(--transition-fast);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.al-card-strip:hover {
  background: var(--surface-lo);
}

.al-card-strip__dots {
  font-size: 12px;
  color: var(--text-dim);
  user-select: none;
  line-height: 1;
  /* Rotate so ⋮ is vertical (it already is, just ensure no odd transforms) */
}

/* ── Floating card menu ── */

.al-card-menu {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 21px; /* appears to the left of the 20px strip + 1px border */
  z-index: var(--z-above, 100);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 130px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.al-card-menu__item {
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  padding: calc(var(--space-2) - 1px) var(--space-3);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

/* Separator between Duplicate and Remove */
.al-card-menu__item:first-child {
  border-bottom: 1px solid var(--border);
}

.al-card-menu__item:hover {
  background: var(--surface-lo);
}

.al-card-menu__item--remove {
  color: var(--red, #c0392b);
}

.al-card-menu__item--remove:hover {
  background: var(--red-light, #fde8e8);
}

/* ── Pinned footer ── */

.ab-col-3__footer {
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface);
}

/* ── Points display — centered, larger ── */

.ab-col-3__points-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.ab-col-3__totals-pts {
  font-family: var(--font-heading);
  font-size: calc(var(--text-base) * 1.25);
  font-weight: var(--heading-weight);
  color: var(--text-hi);
  letter-spacing: var(--heading-tracking);
  text-align: center;
}

.ab-col-3__totals-pts--over {
  color: var(--red);
}

.ab-col-3__totals-warn {
  color: #c8860a;
  font-size: var(--text-base);
}

/* ── Save button ── */

.ab-col-3__save-btn {
  width: 100%;
  height: 44px;
  background: var(--amber);
  color: var(--text-inv);
  border: none;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-transform);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: var(--touch-target);
  transition: background var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-col-3__save-btn:hover:not(:disabled) { background: var(--amber-dim); }
.ab-col-3__save-btn:disabled             { opacity: 0.45; cursor: not-allowed; }
.ab-col-3__save-btn--saving              { opacity: 0.7;  cursor: not-allowed; }

.ab-col-3__save-btn__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
