/* wp-content/plugins/liga-billar/assets/css/handicap.css */
.fc7-handicaps-container { 
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #2ecc71;
    --light: #ecf0f1;
    --dark: #34495e;
    --warning: #f39c12;
    --border: #ddd;
    --bg-light: #f8f9fa;
    --text-muted: #6c757d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    overflow-x: hidden;
}

.fc7-handicaps-container * {
    box-sizing: border-box;
}

.fc7-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.fc7-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    line-height: 1.3;
}

.fc7-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.fc7-info-box {
    background-color: #e8f4fc;
    padding: 1rem;
    border-left: 4px solid var(--secondary);
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fc7-info-box h3 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.fc7-table-container {
    overflow-x: auto;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    -webkit-overflow-scrolling: touch;
}

.fc7-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.fc7-table th {
    background-color: var(--secondary);
    color: white;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    white-space: nowrap;
    font-size: 0.85rem;
}

.fc7-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.9rem;
}

.fc7-table tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.fc7-table .highlight {
    font-weight: 600;
    color: var(--primary);
}

.handicap-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    min-width: 28px;
}

.handicap-0 { background-color: #e8f5e9; color: #2e7d32; }
.handicap-1 { background-color: #fff3e0; color: #ef6c00; }
.handicap-2 { background-color: #ffebee; color: #c62828; }

.fc7-guide-section {
    margin-top: 1.5rem;
}

.fc7-guide-section h2 {
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.fc7-guide-section h3 {
    color: var(--dark);
    margin: 1.25rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.fc7-guide-section ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.fc7-guide-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Vista móvil mejorada */
.fc7-mobile-row {
    display: none;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary);
}

.fc7-mobile-player {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.fc7-mobile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.fc7-mobile-stat {
    background: var(--bg-light);
    padding: 0.6rem;
    border-radius: 6px;
    text-align: center;
}

.fc7-mobile-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.fc7-mobile-value {
    font-weight: 600;
    font-size: 1rem;
}

.fc7-mobile-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.fc7-mobile-point {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.fc7-mobile-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Mejoras específicas para móviles muy pequeños */
@media (max-width: 768px) {
    .fc7-table-container {
        display: none;
    }
    
    .fc7-mobile-row {
        display: block;
    }
    
    .fc7-header {
        padding: 0.8rem;
        margin: 0 -0.5rem 1rem -0.5rem;
        border-radius: 0;
    }
    
    .fc7-header h1 {
        font-size: 1.3rem;
    }
    
    .fc7-card {
        padding: 0.8rem;
        margin: 0 -0.5rem 1rem -0.5rem;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }
    
    .fc7-info-box {
        margin: 0 0 1rem 0;
        padding: 0.8rem;
    }
    
    .fc7-mobile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fc7-mobile-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fc7-mobile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fc7-mobile-player {
        font-size: 1rem;
    }
    
    .fc7-mobile-value {
        font-size: 0.9rem;
    }
    
    .fc7-mobile-total {
        font-size: 1rem;
    }
    
    .handicap-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        min-width: 24px;
    }
}

/* Estilos para la notificación */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    opacity: 0.95;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    max-width: 300px;
}

.notification.success {
    background-color: var(--success);
}

.notification.error {
    background-color: var(--accent);
}
/* Añadir al archivo handicap.css */
.partido-handicap-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
}

.handicap-local, .handicap-visitante {
    display: flex;
    align-items: center;
    gap: 5px;
}

.handicap-value {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.handicap-bonus {
    background: #27ae60;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    animation: pulse 2s infinite;
}

.handicap-vs {
    font-weight: bold;
    color: #7f8c8d;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Estilos para la tabla de handicaps */
.handicap-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    color: white;
}

.handicap-0 { background: #e74c3c; } /* Rojo - Jugador fuerte */
.handicap-1 { background: #f39c12; } /* Naranja - Jugador medio */
.handicap-2 { background: #27ae60; } /* Verde - Jugador con ventaja */
