/* ==========================================================================
   match-pick-a3.css — koło prawdopodobieństwa + przycisk kursu (analytical-3)
   Wymaga: variables.css
   ========================================================================== */

.match-pick-a3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  width: 100%;
  position: relative;
}

/* --- Progress circle (SVG) --- */
.match-pick-prob {
  --prob-size: 42px;
  --prob-track-width: 4px;
  --prob-arc-width: 4px;
  --prob-fill: #6cd896;
  --prob-track: rgba(20, 20, 20, 0.12);

  position: relative;
  display: grid;
  place-items: center;
  width: var(--prob-size);
  height: var(--prob-size);
  flex: 0 0 auto;
}

html[data-theme="dark"] .match-pick-prob {
  --prob-track: rgba(255, 255, 255, 0.14);
}

.match-pick-prob__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.match-pick-prob__track,
.match-pick-prob__arc {
  fill: none;
}

.match-pick-prob__track {
  stroke: var(--prob-track);
  stroke-width: var(--prob-track-width);
}

.match-pick-prob__arc {
  stroke: var(--prob-fill);
  stroke-width: var(--prob-arc-width);
  stroke-linecap: round;
}

.match-pick-prob__value {
  position: relative;
  z-index: 1;
  font-size: var(--fs-14);
  font-weight: var(--fw-400);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--fg);
}

.match-pick-prob--low {
  --prob-fill: #f1757f;
}

.match-pick-prob--mid-low {
  --prob-fill: #f0a060;
}

.match-pick-prob--mid {
  --prob-fill: #eec170;
}

.match-pick-prob--high {
  --prob-fill: #6cd896;
}

.match-pick-prob--empty {
  --prob-fill: var(--muted-2);
  --prob-track: rgba(20, 20, 20, 0.08);
}

html[data-theme="dark"] .match-pick-prob--empty {
  --prob-track: rgba(255, 255, 255, 0.08);
}

.match-pick-prob--empty .match-pick-prob__value {
  font-size: var(--fs-14);
  font-weight: var(--fw-400);
  color: var(--muted);
}

/* --- Przycisk kursu --- */
.match-pick-odd {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  min-width: 3.25rem;
  height: 26px;
  padding: 0 var(--space-8);
  border: 1px solid var(--border);
  border-radius: 50px;
  background: #0000000d;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}

html[data-theme="dark"] .match-pick-odd {
  background: #ffffff0d;
  border-color: rgba(255, 255, 255, 0.14);
}

.match-pick-odd:hover:not(:disabled) {
  background: #00000014;
  border-color: var(--border-strong);
}

html[data-theme="dark"] .match-pick-odd:hover:not(:disabled) {
  background: #ffffff14;
  border-color: rgba(255, 255, 255, 0.24);
}

.match-pick-odd:active:not(:disabled) {
  transform: scale(0.97);
}

.match-pick-odd:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.match-pick-odd--empty,
.match-pick-odd:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.match-pick-odd--active,
.match-pick-odd[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--surface-1);
}

.match-pick-odd--active:hover:not(:disabled),
.match-pick-odd[aria-pressed="true"]:hover:not(:disabled) {
  background: #222222;
  border-color: #222222;
  color: #ffffff;
}

html[data-theme="dark"] .match-pick-odd--active,
html[data-theme="dark"] .match-pick-odd[aria-pressed="true"] {
  background: #ffffff;
  border-color: #ffffff;
  color: #141414;
}

html[data-theme="dark"] .match-pick-odd--active:hover:not(:disabled),
html[data-theme="dark"] .match-pick-odd[aria-pressed="true"]:hover:not(:disabled) {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #141414;
}

/* --- Trafiony typ (checkmark na przycisku kursu) --- */
.match-pick-odd--hit {
  overflow: visible;
}

.match-pick-odd__hit-mark {
  position: absolute;
  top: -5px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6cd896;
  color: #ffffff;
  pointer-events: none;
}

.match-pick-odd__hit-mark i {
  display: block;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

html[data-theme="dark"] .match-pick-odd__hit-mark {
  color: #333333;
}
