/**
 * Estilos del frontend
 * Archivo: public/css/public-styles.css
 */

/* Contenedor principal */
.geq-evento {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header del evento */
.geq-evento-header {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.geq-evento-header img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

/* Información del evento */
.geq-evento-info {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.geq-evento-info h2 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 28px;
}

.geq-evento-info p {
    line-height: 1.6;
    color: #555;
    margin: 0 0 10px 0;
}

/* Detalles del evento */
.evento-details {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.evento-details p {
    margin: 8px 0;
    color: #333;
}

.evento-details strong {
    color: #0073aa;
}

/* Sección de compra */
.geq-evento-compra {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.geq-evento-compra h3 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 10px;
}

.geq-evento-compra > p {
    color: #666;
    margin: 0 0 20px 0;
}

/* Formulario */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
    outline: none;
}

/* Mapa de asientos */
.mapa-asientos {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.mapa-asientos h4 {
    margin-top: 0;
    color: #333;
}

#asientos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.asiento {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s;
    text-align: center;
}

.asiento:hover:not(:disabled) {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: scale(1.05);
}

.asiento:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.asiento.seleccionado {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

/* Mensajes */
.mensaje-validacion {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.mensaje-validacion.success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.mensaje-validacion.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.mensaje-validacion.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

/* Botones */
.button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.button-primary {
    background: #0073aa;
    color: white;
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
}

.button-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.button-primary:active {
    transform: translateY(0);
}

/* Validador QR */
.geq-validar-boleta {
    max-width: 800px;
    margin: 40px auto;
}

.validar-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.validar-container h1 {
    color: #0073aa;
    margin: 0 0 10px 0;
    text-align: center;
}

.validar-container p {
    color: #666;
    margin: 0;
    text-align: center;
}

#codigo_qr {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

#codigo_qr:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
    outline: none;
}

/* Resultado de validación */
.resultado {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid;
}

.resultado.success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.resultado.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.resultado.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.resultado h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

/* Tabla de histórico */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.wp-list-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.wp-list-table th {
    padding: 10px;
    text-align: left;
    font-weight: bold;
    color: #333;
}

.wp-list-table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

.wp-list-table tbody tr:hover {
    background: #f9f9f9;
}

.wp-list-table td {
    padding: 10px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .geq-evento {
        margin: 10px;
    }
    
    .geq-evento-info,
    .geq-evento-compra {
        padding: 15px;
    }
    
    .geq-evento-info h2 {
        font-size: 20px;
    }
    
    #asientos-container {
        grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
    }
    
    .asiento {
        padding: 6px;
        font-size: 10px;
    }
    
    .validar-container {
        margin: 20px;
        padding: 20px;
    }
    
    .form-group input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .geq-evento {
        margin: 5px;
    }
    
    #asientos-container {
        grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
        gap: 5px;
    }
    
    .asiento {
        padding: 4px;
        font-size: 9px;
    }
}
