/* ESTILOS ESPECÍFICOS PARA BALONMANO */

/* Fondo y tema */
body.theme-balonmano {
  background: linear-gradient(135deg, #2c3e50, #e67e22);
}

.clock-container-balonmano {
  background-color: rgba(230, 126, 34, 0.9); /* Naranja */
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.game-rules-balonmano {
  color: #f39c12;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.current-set-info-balonmano {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.1rem;
  border-left: 4px solid #e67e22;
}

/* Scoreboard */
.scoreboard-balonmano {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.team-balonmano {
  background-color: rgba(44, 62, 80, 0.9);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  flex: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  border-top: 5px solid #e67e22;
}

.team-name-balonmano {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
}

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

.score-balonmano {
  font-size: 5rem;
  font-weight: bold;
  margin: 20px 0;
  color: #fff;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.5);
  font-family: 'Courier New', monospace;
}

/* Botón nueva parte */
#new-period {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

/* Responsive */
@media (max-width: 768px) {
  .scoreboard-balonmano {
    flex-direction: column;
  }

  .score-balonmano {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .score-balonmano {
    font-size: 6rem;
    margin: 5px 0;
    line-height: 1;
  }
  
  .team-balonmano {
    padding: 10px;
  }
}

/* Cronómetro Principal */
.timer-container-main {
    text-align: center;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
}

.period-display {
    font-size: 1.2rem;
    color: #f39c12;
    margin-bottom: 5px;
    font-weight: bold;
}

.main-timer-display {
    font-size: 4rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
}

.btn-timer {
    background: #e67e22;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Paneles de Estadísticas */
.stats-panel {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.stat-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 20px;
}

.btn-mini {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
}

/* Tarjetas */
.cards-panel {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-card {
    width: 30px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-card:hover { transform: scale(1.1); }
.card-yellow { background-color: #f1c40f; }
.card-red { background-color: #e74c3c; }
.card-blue { 
    background-color: #3498db; 
    color: white; 
    font-weight: bold; 
    font-size: 0.8rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* Eventos */
.events-container {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.events-list {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 10px;
}

.event-item {
    padding: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.event-time {
    color: #f39c12;
    font-weight: bold;
    margin-right: 5px;
}