/* =========================================================
   battles.styles.css — Case Battles page specific rules
   ========================================================= */

/* Toolbar */
.battles-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.battle-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.battle-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.battle-chip:hover {
  color: #fff;
  border-color: var(--orange);
}
.battle-chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #111827;
}

/* Battle list */
.battles-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.battle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color .15s ease, transform .15s ease;
}
.battle-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* Left cluster: status + thumbnails */
.battle-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.battle-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.battle-status.is-waiting {
  background: rgba(245, 158, 11, .16);
  color: var(--orange-hi);
}
.battle-status.is-live {
  background: rgba(55, 201, 139, .16);
  color: var(--green);
}
.battle-thumbs {
  display: flex;
  gap: 6px;
}
.battle-thumbs img {
  width: 54px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}

/* Middle: stat columns */
.battle-stats {
  display: flex;
  gap: 22px;
}
.battle-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.battle-stat small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-2);
}
.battle-stat b {
  font-size: 14px;
  font-weight: 700;
}

/* Right: pot + action */
.battle-end {
  display: flex;
  align-items: center;
  gap: 16px;
}
.battle-pot {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.battle-pot__label {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.battle-pot__val {
  font-size: 18px;
  font-weight: 800;
  color: var(--orange-hi);
}

/* Responsive */
@media (max-width: 760px) {
  .battle-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .battle-lead {
    justify-content: space-between;
  }
  .battle-stats {
    justify-content: space-around;
    gap: 12px;
  }
  .battle-end {
    justify-content: space-between;
  }
  .battle-pot {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .battle-thumbs img { width: 44px; }
  .battle-stats { gap: 8px; }
}
