/* ===============================================
   Estilos principales del sistema - VERSIÓN CORREGIDA
   Sin conflictos con selects del modal
   =============================================== */

.clubpro-predictions-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.clubpro-layout {
    display: flex;
    gap: 30px;
    min-height: 600px;
}

.clubpro-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.clubpro-main-content {
    flex: 1;
    min-width: 0;
}

.clubpro-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.clubpro-content-header h1 {
    color: #212529;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.clubpro-user-timezone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e7f3ff;
    border-radius: 8px;
    font-size: 14px;
    color: #0056b3;
    font-weight: 500;
}

.clubpro-events-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.clubpro-date-section {
    background: #fff;
    border-radius: 12px;
    padding: 0;
}

.clubpro-date-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 20px 0;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clubpro-events-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0 20px 20px;
}

.clubpro-no-events {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.clubpro-no-events i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 16px;
}

.clubpro-no-events h3 {
    color: #495057;
    margin-bottom: 8px;
}

.clubpro-no-events p {
    color: #6c757d;
    margin: 0;
}

.clubpro-sidebar-fallback {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
}

/* ===============================================
   ESTILOS ESPECÍFICOS PARA BOTONES EXTERNOS
   =============================================== */

/* Estados de botón - Solo para botones específicos de tarjetas */
.wp-cbl-crd-evn-v01-details-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wp-cbl-crd-evn-v01-details-btn.loading {
    background: #6c757d !important;
}

/* ===============================================
   MODAL FALLBACK - ESTILOS AISLADOS
   =============================================== */

.clubpro-fallback-modal {
    font-family: Arial, sans-serif;
    z-index: 99999 !important;
}

.clubpro-modal-content {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

/* ===============================================
   PROTECCIÓN CONTRA CONFLICTOS CON SELECTS
   =============================================== */

/* Asegurar que NINGÚN estilo global afecte a los selects del modal */
.clubpro-prediction-modal select,
.clubpro-prediction-modal option {
    all: unset !important;
}

/* Reset específico para elementos dentro del modal de predicciones */
.clubpro-prediction-modal * {
    box-sizing: border-box;
}

/* Prevenir que estilos globales afecten el modal */
#prediction_amount,
#prediction_odds,
#prediction_bookmaker {
    /* Estos estilos se controlan exclusivamente en el CSS del modal */
    all: unset;
}

/* ===============================================
   RESPONSIVE - SIN AFECTAR SELECTS
   =============================================== */

@media (max-width: 1024px) {
    .clubpro-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .clubpro-sidebar {
        width: 100%;
    }
    
    .clubpro-events-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .clubpro-predictions-container {
        padding: 15px;
    }
    
    .clubpro-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .clubpro-events-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .clubpro-date-title {
        font-size: 16px;
    }
}

/* ===============================================
   REGLAS DE AISLAMIENTO CRÍTICAS
   =============================================== */

/* Prevenir que WordPress u otros temas afecten nuestros selects */
body .clubpro-prediction-modal select,
body .clubpro-prediction-modal option {
    background: initial !important;
    color: initial !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

/* Asegurar que no haya estilos conflictivos de normalize.css o reset.css */
.clubpro-prediction-modal select:focus,
.clubpro-prediction-modal select:hover {
    outline: none;
}

/* Reset para inputs dentro del modal específicamente */
.clubpro-prediction-modal input,
.clubpro-prediction-modal textarea,
.clubpro-prediction-modal select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}





/* ===============================================
   CORRECCIÓN RÁPIDA - TEXTO BLANCO EN SELECTS
   =============================================== */

.clubpro-form-group select {
    color: #ffffff !important;
    background-color: #1a2035 !important;
}

.clubpro-form-group select option {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* Flecha blanca para el select */
.clubpro-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
}