/* Estilos generales */
.wpfc-players-template,
.wpfc-matches-template,
.wpfc-standings-template {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wpfc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.wpfc-header h1 {
    color: #333;
    margin: 0;
}

/* Filtros */
.wpfc-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wpfc-filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.wpfc-filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.wpfc-filter-btn {
    padding: 8px 16px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wpfc-filter-btn:hover {
    background: #135e96;
}

/* Jugadores */
.wpfc-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.wpfc-player-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpfc-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.player-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-photo.placeholder .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #ccc;
}

.player-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2271b1;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 3px solid white;
}

.player-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2em;
}

.player-position {
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.player-age,
.player-nationality {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 2px;
}

/* Partidos */
.wpfc-match-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
    transition: background-color 0.3s ease;
}

.wpfc-match-item:hover {
    background: #f9f9f9;
}

.match-date {
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    min-width: 80px;
    margin-right: 20px;
}

.match-day {
    font-size: 1.5em;
    font-weight: bold;
    color: #2271b1;
}

.match-month {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
}

.match-time {
    font-size: 0.8em;
    color: #888;
}

.match-details {
    flex-grow: 1;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.team {
    font-weight: 600;
}

.home-team {
    color: #2271b1;
}

.vs {
    color: #666;
    font-weight: 500;
}

.match-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #888;
}

.match-result {
    min-width: 80px;
    text-align: center;
}

.score {
    font-size: 1.3em;
    font-weight: bold;
    color: #2271b1;
}

.live-indicator {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.upcoming {
    color: #28a745;
    font-weight: 500;
}

.cancelled {
    color: #6c757d;
    font-style: italic;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Clasificación */
.wpfc-standings-table {
    overflow-x: auto;
}

.wpfc-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wpfc-table th {
    background: #2271b1;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

.wpfc-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.wpfc-table tr:last-child td {
    border-bottom: none;
}

.wpfc-table tr.our-team {
    background: #e7f3ff;
    font-weight: 600;
}

.wpfc-table .position {
    font-weight: bold;
    color: #333;
}

.wpfc-table .team-name {
    text-align: left;
    font-weight: 500;
}

.wpfc-table .points {
    font-weight: bold;
    color: #2271b1;
    font-size: 1.1em;
}

.wpfc-table .goal-difference {
    color: #666;
    font-weight: 500;
}

.wpfc-standings-legend {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.our-team {
    background: #e7f3ff;
    border: 2px solid #2271b1;
}

/* Estados vacíos */
.wpfc-no-matches,
.wpfc-no-standings {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .wpfc-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wpfc-filters {
        width: 100%;
    }
    
    .wpfc-filter-form {
        width: 100%;
    }
    
    .wpfc-filter-form select {
        flex-grow: 1;
    }
    
    .wpfc-match-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .match-date {
        margin-right: 0;
    }
    
    .match-teams {
        justify-content: center;
    }
    
    .wpfc-table {
        font-size: 0.9em;
    }
    
    .wpfc-table th,
    .wpfc-table td {
        padding: 8px 4px;
    }
    
}
/* Next Match Shortcode */
.wpfc-next-match {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.next-match-header {
    margin-bottom: 20px;
}

.next-match-header h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.match-date {
    color: #666;
    font-size: 0.9em;
}

.next-match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.next-match-teams .team {
    flex: 1;
    min-width: 120px;
}

.team-name {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.team-label {
    display: block;
    font-size: 0.8em;
    color: #666;
    text-transform: uppercase;
}

.next-match-teams .vs {
    font-weight: bold;
    color: #2271b1;
    font-size: 1.2em;
}

.next-match-competition {
    font-style: italic;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.no-matches {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Team Stats Shortcode */
.wpfc-team-stats {
    margin: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .next-match-teams {
        flex-direction: column;
        gap: 10px;
    }
    
    .next-match-teams .team {
        min-width: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .stat-number {
        font-size: 1.5em;
    }
}