/* Estilos base */
.wp-clubpro-team-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cabecera del equipo */
.wp-clubpro-team-header {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.wp-clubpro-team-logo {
    width: 80px;
    height: 80px;
    margin-right: 25px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
}

.wp-clubpro-team-logo img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
}

.wp-clubpro-team-info h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wp-clubpro-team-info h2 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.wp-clubpro-team-info h2 a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

/* Secciones de partidos */
.wp-clubpro-fixtures-section {
    padding: 0 20px 20px;
}

.wp-clubpro-fixtures-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e3c72;
    margin: 20px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Tarjetas de partidos */
.wp-clubpro-fixture {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wp-clubpro-fixture:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wp-clubpro-fixture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.wp-clubpro-fixture-date {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.wp-clubpro-fixture-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    background-color: #e0e0e0;
    color: #333;
}

.wp-clubpro-fixture-status.NS {
    background-color: #3498db;
    color: white;
}

.wp-clubpro-fixture-status.FT {
    background-color: #2ecc71;
    color: white;
}

.wp-clubpro-fixture-content {
    padding: 15px;
}

.wp-clubpro-fixture-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-clubpro-fixture-team {
    display: flex;
    align-items: center;
}

.wp-clubpro-fixture-team-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    object-fit: contain;
}

.wp-clubpro-fixture-team-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.wp-clubpro-fixture-team-name a {
    color: inherit;
    text-decoration: none;
}

.wp-clubpro-fixture-team-name a:hover {
    text-decoration: underline;
    color: #1e3c72;
}

.wp-clubpro-fixture-team-goals {
    font-weight: bold;
    min-width: 24px;
    text-align: center;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 15px;
}

.wp-clubpro-fixture-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

.wp-clubpro-fixture-venue i {
    margin-right: 5px;
}

.wp-clubpro-fixture-league {
    display: flex;
    align-items: center;
}

.wp-clubpro-fixture-league img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border-radius: 50%;
}

/* Colores de resultados */
.wp-clubpro-win .wp-clubpro-fixture-team-goals {
    background-color: #2ecc71;
    color: white;
}

.wp-clubpro-loss .wp-clubpro-fixture-team-goals {
    background-color: #e74c3c;
    color: white;
}

.wp-clubpro-draw .wp-clubpro-fixture-team-goals {
    background-color: #f39c12;
    color: white;
}

/* Estados de carga y errores */
.wp-clubpro-loading {
    padding: 20px;
    text-align: center;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-clubpro-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #1e3c72;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 10px;
    animation: wp-clubpro-spin 0.8s linear infinite;
}

.wp-clubpro-error {
    padding: 15px;
    margin: 10px;
    background-color: #fdecea;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
}

.wp-clubpro-no-fixtures {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

@keyframes wp-clubpro-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wp-clubpro-team-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .wp-clubpro-team-logo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 70px;
        height: 70px;
    }
    
    .wp-clubpro-team-info h2 {
        font-size: 24px;
    }
    
    .wp-clubpro-fixture-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .wp-clubpro-fixture-footer {
        flex-direction: column;
        gap: 5px;
    }
    
    .wp-clubpro-fixture-league {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .wp-clubpro-team-info h2 {
        font-size: 20px;
    }
    
    .wp-clubpro-fixture-team-name {
        max-width: 100px;
    }
}