/* jugger.css - Estilos específicos para el marcador de Jugger */

body.theme-jugger {
  background:
    radial-gradient(circle at top, rgba(241, 196, 15, 0.12), transparent 32%),
    linear-gradient(145deg, #07161d 0%, #102831 48%, #18262e 100%);
}

.clock-container-jugger {
  background-color: rgba(8, 16, 22, 0.82);
  border: 1px solid rgba(241, 196, 15, 0.24);
}

.game-rules-jugger {
  color: #ffd857;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.current-set-info-jugger {
  background: rgba(8, 16, 22, 0.72);
  border: 1px solid rgba(241, 196, 15, 0.18);
  color: #f7f9fb;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.5;
}

.scoreboard-jugger {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.match-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.meta-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 14px;
}

.match-clock-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.clock-caption {
  color: rgba(236, 240, 241, 0.78);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-clock-value {
  font-size: 2.7rem;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  min-width: 240px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.clock-running {
  border: 2px solid #2ecc71;
  color: #2ecc71;
}

.clock-paused {
  border: 2px solid #f1c40f;
  color: #f1c40f;
}

.clock-finished {
  border: 2px solid #ff7b5a;
  color: #ff7b5a;
}

.clock-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.team-jugger {
  background:
    linear-gradient(180deg, rgba(20, 28, 36, 0.96), rgba(11, 16, 22, 0.98)),
    rgba(20, 28, 36, 0.96);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  flex: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.team-jugger:hover {
  transform: translateY(-3px);
  border-color: rgba(241, 196, 15, 0.3);
}

.team-name-jugger {
  font-size: 1.55rem;
  margin-bottom: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.team-name-jugger:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.score-jugger {
  font-size: 4.1rem;
  font-weight: 800;
  margin: 20px 0;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.score-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.team-meta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.panel-section-title {
  margin-top: 18px;
  margin-bottom: 8px;
  color: #cfd8dc;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.players-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.player-row.player-bench {
  opacity: 0.82;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-meta {
  color: rgba(236, 240, 241, 0.78);
  font-size: 0.9rem;
}

.player-status {
  color: #ffd857;
  font-size: 0.88rem;
  font-weight: 700;
}

.player-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stun-active {
  border-color: rgba(255, 193, 7, 0.76);
  box-shadow: 0 0 16px rgba(255, 193, 7, 0.18);
}

.penalties-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.penalty-item {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.32);
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
}

.penalty-item strong {
  display: block;
  color: #ffe2dc;
  margin-bottom: 4px;
}

.penalty-item small {
  color: rgba(236, 240, 241, 0.76);
}

.penalty-impact {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #e8eef2;
  font-size: 0.92rem;
}

.empty-state {
  color: rgba(236, 240, 241, 0.68);
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.event-feed-panel {
  background: rgba(8, 16, 22, 0.75);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 15px;
  margin-bottom: 20px;
}

.event-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.event-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.92rem;
  border-left: 4px solid rgba(255, 255, 255, 0.2);
}

.event-jugg {
  border-left-color: #2ecc71;
}

.event-penalty {
  border-left-color: #ff7b5a;
}

.event-stun {
  border-left-color: #f39c12;
}

.event-round {
  border-left-color: #3498db;
}

.event-state {
  border-left-color: #9b59b6;
}

button:focus-visible,
.btn:focus-visible,
.btn-icon:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid #ffd857;
  outline-offset: 2px;
}

#penalty-notes {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 10px 12px;
  resize: vertical;
}

#penalty-notes::placeholder {
  color: rgba(236, 240, 241, 0.56);
}

.light-mode .team-jugger,
.light-mode .event-feed-panel,
.light-mode .current-set-info-jugger,
.light-mode .meta-item,
.light-mode .team-meta-row,
.light-mode .player-row,
.light-mode .penalty-impact {
  background: #ffffff;
  color: #24323d;
  border-color: rgba(36, 50, 61, 0.12);
}

.light-mode .event-item {
  background: rgba(36, 50, 61, 0.06);
}

.light-mode .penalty-item {
  background: rgba(231, 76, 60, 0.08);
}

.light-mode .player-meta,
.light-mode .empty-state {
  color: rgba(36, 50, 61, 0.72);
}

@media (max-width: 900px) {
  .scoreboard-jugger {
    flex-direction: column;
  }

  .match-clock-value {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .score-jugger {
    font-size: 3.2rem;
  }

  .player-row {
    flex-direction: column;
    align-items: stretch;
  }

  .player-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .current-set-info-jugger {
    font-size: 0.92rem;
  }

  .match-clock-value {
    font-size: 2rem;
    padding: 12px 18px;
  }

  .event-feed {
    max-height: 220px;
  }
}
