/* LOTOMAX - Estilos Frontend */

/* Contenedores principales */
.lotomax-registration-container,
.lotomax-game-container,
.lotomax-results-container,
.lotomax-tickets-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.lotomax-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.lotomax-header h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
}

.lotomax-header p {
    margin: 5px 0;
    opacity: 0.9;
}

.lotomax-header .game-info {
    font-size: 1.1em;
    margin-top: 10px;
}

/* Cajas de información */
.lotomax-info-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.lotomax-info-box h3 {
    margin-top: 0;
    color: #333;
}

.lotomax-info-box ol {
    margin: 10px 0;
    padding-left: 20px;
}

.lotomax-info-box li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Formularios */
.lotomax-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group,
.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.lotomax-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

/* Inputs */
.lotomax-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.lotomax-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Checkbox */
.lotomax-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.lotomax-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Botones */
.lotomax-button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.lotomax-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.lotomax-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lotomax-button-secondary {
    background: #6c757d;
    color: white;
    margin-right: 10px;
}

.lotomax-button-secondary:hover {
    background: #5a6268;
}

.lotomax-button-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.lotomax-button-outline:hover {
    background: #667eea;
    color: white;
}

.lotomax-button-large {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 20px;
}

/* Grilla de números */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.numbers-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}

.number-button {
    padding: 15px 10px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.number-button:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.number-button.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.number-button-special.selected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
}

.number-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Números seleccionados */
.selected-numbers {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.selected-display {
    display: inline-block;
    margin-left: 10px;
    color: #667eea;
    font-weight: 600;
}

/* Mensajes */
.lotomax-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.lotomax-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.lotomax-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Alertas */
.lotomax-alert {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.lotomax-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.lotomax-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Resultados */
.results-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.results-box h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.winning-numbers {
    text-align: center;
    margin: 30px 0;
}

.winning-numbers h4 {
    color: #667eea;
    margin-bottom: 20px;
}

.numbers-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.winning-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.winning-number-special {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Estadísticas de ganadores */
.winners-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.winner-stat {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.winner-stat strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.winner-count {
    display: block;
    font-size: 2em;
    color: #667eea;
    font-weight: bold;
}

.game-stats {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Footer info */
.lotomax-info-footer {
    text-align: center;
    margin-top: 20px;
    color: #777;
}

/* Form inline */
.lotomax-form-inline {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.lotomax-form-inline .lotomax-input {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .lotomax-registration-container,
    .lotomax-game-container,
    .lotomax-results-container,
    .lotomax-tickets-container {
        padding: 10px;
    }
    
    .lotomax-form {
        padding: 20px;
    }
    
    .lotomax-header h2 {
        font-size: 1.5em;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 8px;
    }
    
    .number-button {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .winners-summary {
        grid-template-columns: 1fr;
    }
    
    .winning-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .numbers-display {
        gap: 10px;
    }
}

/* Loading spinner */
.lotomax-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
