/* ESTILOS ESPECÍFICOS PARA PÁDEL */
/* Compatibilidad con estructura antigua y modular */

/* Fondo degradado específico - ya se aplica desde themes.css */
body.theme-padel {
    background: var(--gradient);
}

/* Reloj con color específico */
.clock-container-padel {
    background-color: rgba(52, 152, 219, 0.8);
}

/* Botón de inicio con color específico */
.btn-home-padel {
    background-color: #9b59b6;
}

/* Reglas del juego - diseño específico */
.game-rules-padel {
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.game-rules-padel i {
    color: var(--warning-color);
}

/* Información del set actual */
.current-set-info-padel {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Scoreboard específico - COMPATIBILIDAD CON CLASES ANTIGUAS */
.scoreboard, .scoreboard-padel {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.team, .team-padel {
    background-color: rgba(44, 62, 80, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    flex: 1;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.team:hover, .team-padel:hover {
    transform: translateY(-5px);
}

.team-name, .team-name-padel {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: var(--transition);
}

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

/* Inputs para jugadores */
.players-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.player-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.player-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.player-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.score, .score-padel {
    font-size: 4rem;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Indicador de tie-break */
.tie-break-indicator {
    background-color: var(--warning-color);
    color: black;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 10px 0;
    display: inline-block;
}

.tie-break-score {
    font-size: 2rem;
    color: var(--warning-color);
    margin: 5px 0;
    font-weight: bold;
}

/* Contenedor de sets - COMPATIBILIDAD */
.sets, .sets-container, .sets-container-padel {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Sets individuales - COMPATIBILIDAD */
.set, .set-padel {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.set.won, .set-padel.won {
    background-color: var(--success-color);
}

/* Set actual */
.current-set {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* COMPATIBILIDAD con controles de puntuación antiguos */
.score-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* COMPATIBILIDAD con botones antiguos */
.btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* COMPATIBILIDAD con entrada de ubicación */
.location-edit {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#match-location-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

/* COMPATIBILIDAD con historial */
.history-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.history-teams {
    flex: 1;
    min-width: 200px;
}

.history-score {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 15px;
}

.history-info {
    font-size: 0.9rem;
    opacity: 0.8;
    width: 100%;
    margin-top: 5px;
}

.history-location {
    color: var(--primary-color);
    font-style: italic;
}

/* COMPATIBILIDAD con vista previa de compartir */
.share-preview {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.share-preview h3 {
    margin-bottom: 15px;
}

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

    .team-padel {
        padding: 15px;
    }

    .score-padel {
        font-size: 3rem;
    }

    .players-input {
        flex-direction: row;
        gap: 5px;
    }

    .player-input {
        flex: 1;
        font-size: 0.8rem;
        padding: 6px 8px;
    }

    .current-set-info-padel {
        font-size: 0.9rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .players-input {
        flex-direction: column;
    }

    .score-controls {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 12px;
    }
}

/* Estilo para botones con iconos */
.btn-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 90px;
    padding: 10px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 0.8rem;
    text-align: center;
    gap: 8px;
    position: relative;
}

.btn-icon i {
    font-size: 1.8rem;
    margin: 0;
}

/* Colores específicos para cada botón */
.btn-new-set {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.btn-reset {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-save {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.btn-share-current {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.btn-share-history {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.btn-share-link {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Efectos hover */
.btn-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.btn-icon:active {
    transform: translateY(0);
}

/* Tooltips para los botones */
.btn-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Contenedor para grupos de botones */
.control-group {
    background-color: rgba(44, 62, 80, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.control-group-label {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light-color);
}