/**
 * Estilos básicos para el frontend
 * Estos estilos son básicos y pueden ser sobrescritos por el theme
 */

.polla-partidos-pendientes,
.polla-partidos-pronosticados {
    margin: 20px 0;
}

.polla-partido-item,
.polla-partido-pronosticado-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
}

.polla-partido-equipos {
    font-weight: bold;
    margin-bottom: 10px;
}

.polla-equipo-local,
.polla-equipo-visitante {
    display: inline-block;
}

.polla-vs {
    margin: 0 10px;
    color: #666;
}

.polla-pronostico-usuario {
    margin: 0 10px;
    font-size: 1.2em;
    color: #2271b1;
}

.polla-partido-info {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.polla-partido-info span {
    margin-right: 15px;
}

.polla-pronostico-existente,
.polla-pendiente-pronostico {
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
}

.polla-pronostico-existente {
    background: #e7f5e7;
    color: #2d5016;
}

.polla-pendiente-pronostico {
    background: #fff3cd;
    color: #856404;
}

.polla-resultado-real,
.polla-puntos-obtenidos {
    margin-top: 10px;
    padding: 5px 10px;
    background: #f0f0f1;
    border-radius: 3px;
}

.polla-puntos-obtenidos {
    background: #e7f5e7;
    font-weight: bold;
}

.polla-pendiente-resultado {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

/* Formulario de pronóstico */
.polla-form-pronostico {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.polla-form-hidden {
    display: none;
}

.polla-inputs-goles {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.polla-inputs-goles label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.polla-inputs-goles label span {
    font-weight: bold;
    font-size: 0.9em;
}

.polla-inputs-goles input[type="number"] {
    width: 60px;
    padding: 8px;
    text-align: center;
    font-size: 1.2em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.polla-separador {
    font-size: 1.5em;
    font-weight: bold;
    color: #666;
}

.polla-form-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.polla-btn-guardar,
.polla-btn-cancelar,
.polla-btn-eliminar,
.polla-editar-pronostico {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.polla-btn-guardar {
    background: #2271b1;
    color: white;
}

.polla-btn-guardar:hover:not(:disabled) {
    background: #135e96;
}

.polla-btn-cancelar {
    background: #666;
    color: white;
}

.polla-btn-cancelar:hover {
    background: #555;
}

.polla-btn-eliminar {
    background: #d63638;
    color: white;
}

.polla-btn-eliminar:hover:not(:disabled) {
    background: #b32d2e;
}

.polla-editar-pronostico {
    background: #f0f0f1;
    color: #333;
    margin-left: 10px;
}

.polla-editar-pronostico:hover {
    background: #ddd;
}

.polla-btn-guardar:disabled,
.polla-btn-eliminar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.polla-form-mensaje {
    margin-top: 10px;
    min-height: 20px;
}

/* Ranking */
.polla-ranking {
    margin: 20px 0;
}

.polla-ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.polla-ranking-table thead {
    background: #f0f0f1;
}

.polla-ranking-table th,
.polla-ranking-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.polla-ranking-table th {
    font-weight: bold;
}

.polla-ranking-row:hover {
    background: #f9f9f9;
}

.polla-posicion {
    width: 50px;
    text-align: center;
    font-weight: bold;
}

.polla-puntos {
    font-weight: bold;
    color: #2271b1;
}

/* Links en ranking */
.polla-link-usuario {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.polla-link-usuario:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Perfil de usuario */
.polla-perfil-usuario {
    margin: 20px 0;
}

.polla-perfil-header {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 30px;
}

.polla-perfil-nombre {
    margin: 0 0 20px 0;
    font-size: 2em;
    color: #333;
}

.polla-perfil-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.polla-stat-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.polla-stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.polla-stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #2271b1;
}

.polla-perfil-pronosticos {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.polla-perfil-pronosticos h3 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    color: #333;
}

.polla-pronosticos-terminados {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.polla-pronostico-terminado-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.polla-pronostico-terminado-item.polla-acierto-exacto {
    border-left: 4px solid #46b450;
    background: #f0f9f0;
}

.polla-pronostico-terminado-item.polla-acierto-parcial {
    border-left: 4px solid #ffb900;
    background: #fffbf0;
}

.polla-pronostico-terminado-item.polla-fallo {
    border-left: 4px solid #dc3232;
    background: #fff5f5;
}

.polla-partido-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.polla-partido-equipos {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.polla-partido-fecha,
.polla-partido-fase {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.polla-resultados-comparacion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.polla-pronostico-usuario,
.polla-resultado-real {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.polla-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.polla-marcador {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.polla-puntos-item {
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.polla-puntos-valor {
    font-size: 1.5em;
    font-weight: bold;
    color: #2271b1;
}

.polla-mensaje-error {
    padding: 15px;
    background: #fff5f5;
    border: 1px solid #dc3232;
    border-radius: 4px;
    color: #dc3232;
}

.polla-mensaje-info {
    padding: 15px;
    background: #f0f6fc;
    border: 1px solid #2271b1;
    border-radius: 4px;
    color: #2271b1;
}

