/**
 * PS Shield - Challenge Page Styles
 * Estilos para la página de reto (v3 runner y v2 checkbox)
 */

/* Reset básico */
.pshield-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Contenedor principal */
.pshield-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: pshield-fadeIn 0.3s ease-out;
}

@keyframes pshield-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.pshield-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Título */
.pshield-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Subtítulo */
.pshield-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Loading spinner */
.pshield-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pshield-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: pshield-spin 1s linear infinite;
}

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

/* Contenedor v2 */
.pshield-v2-container {
    display: none;
    margin-top: 20px;
}

.pshield-v2-container.active {
    display: block;
}

/* Mensaje de error */
.pshield-error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    display: none;
    font-size: 14px;
    border: 1px solid #fcc;
}

.pshield-error.active {
    display: block;
    animation: pshield-shake 0.5s ease-out;
}

@keyframes pshield-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* reCAPTCHA badge adjustment */
.grecaptcha-badge {
    bottom: 10px !important;
}

/* Responsive */
@media (max-width: 480px) {
    .pshield-container {
        padding: 30px 20px;
    }

    .pshield-title {
        font-size: 20px;
    }

    .pshield-subtitle {
        font-size: 13px;
    }

    .pshield-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}
