/* ===================================================================== */
/*         Estilos Inspirados en la App de Quiz (Imagen)                 */
/* ===================================================================== */

/* Variables de Color para fácil personalización */
:root {
    --bg-gradient-start: #1e3a2a; /* Verde oscuro profundo */
    --bg-gradient-end: #3a5a40;   /* Verde oscuro más suave */
    --accent-green-light: #6fd48b; /* Verde claro para botones y elementos activos */
    --accent-green-dark: #55b76b;  /* Sombra del verde para gradientes */
    --inactive-gray: #3a3a3c;     /* Gris oscuro para opciones no seleccionadas */
    --question-bg: rgba(25, 25, 27, 0.7); /* Fondo de la tarjeta de pregunta */
    --text-light: #f8f9fa;        /* Color de texto principal (casi blanco) */
    --accent-blue: #3b82f6;       /* Azul para etiquetas como 'Ark' */
    --accent-yellow-green: #bacc65; /* Verde amarillento para puntos */
    --progress-bar-active: #4ce0d2; /* Turquesa para la barra de progreso */
    --progress-bar-bg: rgba(76, 224, 210, 0.2);
}


/* General Body Styles */
body {
    /* Usando una fuente más redondeada y moderna como en la app */
    font-family: 'Poppins', 'Roboto', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
    background-color: var(--bg-gradient-start); /* Color de fondo base */
}

/* Font Imports */
h1, h2, h3, .font-orbitron {
     /* Orbitron es muy tech, una sans-serif limpia encaja mejor */
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    font-weight: 600;
}

/* Background Animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-shift {
    background: linear-gradient(-45deg, var(--bg-gradient-start), var(--bg-gradient-end), #2a4836, #1c3326);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Dots pattern no está en el diseño, lo hacemos transparente */
.dots-pattern {
    background-image: radial-gradient(circle, transparent 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Blob no está en el diseño, pero se adapta a la paleta de colores por si se usa */
@keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(30px, -50px) scale(1.1); }
    60% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-blob {
    animation: blob 10s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
    background: rgba(111, 212, 139, 0.1); /* Usando el verde de acento muy tenue */
}

.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Pulse Glow adaptado a la nueva paleta */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(111, 212, 139, 0.2); }
    50% { box-shadow: 0 0 30px rgba(111, 212, 139, 0.5), 0 0 60px rgba(76, 224, 210, 0.4); }
    100% { box-shadow: 0 0 10px rgba(111, 212, 139, 0.2); }
}

.animate-pulse-glow {
    animation: pulse-glow 4s infinite alternate;
}

/* Starfield no está en el diseño, pero se mantiene la definición */
.starfield {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    overflow: hidden;
}

.star {
    position: absolute; background: white; border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite ease-in-out alternate;
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* Text Animations (sin cambios, son universales) */
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 1s ease-out forwards; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-1000 { animation-delay: 1s; }

/* Feature Card Styles - Adaptado para la tarjeta de pregunta */
.feature-card {
    background: var(--question-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px; /* Bordes más redondeados como en la imagen */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-card::before {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    /* El borde rotatorio ahora usa los colores de la app */
    background: conic-gradient(from 0deg, transparent 0%, var(--accent-green-light) 20%, transparent 40%, transparent 60%, var(--accent-blue) 80%, transparent 100%);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before { opacity: 0.5; }

.feature-card:hover {
    background: rgba(35, 35, 37, 0.8);
    transform: translateY(-5px); /* Simplificado, el efecto 3D no está en la imagen */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

/* Glassmorphism Effect - Similar a Feature Card, unificamos el estilo */
.glass-effect {
    background: var(--question-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-effect:hover {
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Gradient Text - Adaptado a los nuevos colores */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.gradient-purple-blue { /* Renombrado para más claridad */
    background-image: linear-gradient(to right, var(--accent-green-light), var(--accent-blue));
}

.gradient-pink-purple { /* Renombrado para más claridad */
    background-image: linear-gradient(to right, var(--accent-yellow-green), var(--accent-green-light));
}

/* Button Hover Effects - Estilo de los botones de respuesta */
.btn-quiz {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 9999px; /* Botones tipo píldora */
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-quiz.inactive {
    background-color: var(--inactive-gray);
}
.btn-quiz.inactive:hover {
    background-color: #505052;
}

.btn-quiz.selected {
    background-image: linear-gradient(to bottom, var(--accent-green-light), var(--accent-green-dark));
    box-shadow: 0 4px 15px rgba(111, 212, 139, 0.3);
}

/* Efecto de brillo quitado, no está en el diseño de la app */
.btn-primary::before {
    content: none;
}

/* Border Light Effect adaptado a la nueva paleta */
.btn-border-light {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-border-light::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--accent-green-light), var(--accent-yellow-green), var(--progress-bar-active), var(--accent-green-light));
    background-size: 400%;
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: border-light-anim 4s linear infinite;
}

.btn-border-light:hover::after {
    opacity: 1;
}

@keyframes border-light-anim {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Form Input Styles adaptados */
input[type="text"],
input[type="email"],
textarea {
    background-color: var(--inactive-gray);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--accent-green-light);
    box-shadow: 0 0 0 3px rgba(111, 212, 139, 0.5);
    background-color: var(--inactive-gray);
}