/**
 * Estilos para el Contenedor QR
 * Centro de Estudios Plugin
 * 
 * @package Centro_Estudios
 * @subpackage Inscripciones_Public
 * @version 2.7.0
 * @since 2.7.0
 */

/* Contenedor principal del QR */
.ces-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ces-qr-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.ces-qr-content h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.ces-qr-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

/* Contenedor del código QR */
.ces-qr-code {
    margin: 32px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

#ces-qr-generator {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Estados del QR */
.ces-qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ces-qr-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: ces-spin 1s linear infinite;
}

@keyframes ces-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ces-qr-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ces-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    color: #666;
}

.ces-qr-placeholder span {
    font-size: 48px;
    opacity: 0.5;
}

.ces-qr-placeholder p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.ces-qr-placeholder small {
    font-size: 14px;
    opacity: 0.7;
}

/* Instrucciones */
.ces-qr-instructions {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.4;
}

.ces-qr-instructions a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.ces-qr-instructions a:hover {
    text-decoration: underline;
}

/* Botón de acción */
.ces-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.ces-btn-primary {
    background: #0073aa;
    color: #fff;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .ces-qr-container {
        padding: 16px;
        min-height: 100vh;
    }
    
    .ces-qr-content {
        padding: 24px;
        border-radius: 12px;
    }
    
    .ces-qr-content h2 {
        font-size: 20px;
    }
    
    .ces-qr-content p {
        font-size: 14px;
    }
    
    .ces-qr-code {
        margin: 24px 0;
        padding: 16px;
    }
    
    #ces-qr-generator {
        min-height: 150px;
    }
    
    .ces-qr-placeholder span {
        font-size: 36px;
    }
    
    .ces-qr-placeholder p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ces-qr-content {
        padding: 20px;
        margin: 0;
    }
    
    .ces-qr-content h2 {
        font-size: 18px;
    }
    
    .ces-qr-instructions {
        padding: 12px;
        font-size: 13px;
    }
    
    .ces-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}
