/* Tabela wartości — layered on top of styles.css and kolo-zycia.css.
   One forest accent for selection; every value stays visible by design. */

.values-panel {
  padding: 30px 32px 28px;
  background: oklch(99% 0.008 95 / 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px oklch(32% 0.04 125 / 0.08);
}

/* The grid itself: 5 columns on desktop, collapsing down on smaller screens.
   Auto-fit lets the layout adapt smoothly without media-query thresholds. */
.values-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.values-grid li {
  display: flex;
}

.value-cell {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition:
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 200ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .value-cell:hover {
    border-color: var(--forest);
    transform: translateY(-1px);
  }
}

.value-cell:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px oklch(42% 0.1 153 / 0.22);
}

.value-cell.is-selected {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 6px 14px oklch(35% 0.08 150 / 0.18);
}

.value-cell.is-selected:hover {
  background: var(--ink-green);
  border-color: var(--ink-green);
}

/* Subtle pop animation when toggling on, to confirm the click. */
@keyframes value-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.value-cell.just-selected {
  animation: value-pop 280ms var(--ease);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .values-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .value-cell {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}

@media (max-width: 380px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}
