/*
 * SUME DOCBLOCK
 * Nombre: Estilos base de la app (antes dentro de index.html)
 * Tipo: Salida
 * Entradas: ninguna
 * Acciones: variables de color, tipografía y estilos comunes que usan las pantallas
 * Salidas: estilos globales; se carga antes que inicio.css y el resto (mismo orden que tenía)
 */
body {
    font-family: 'Inter', sans-serif;
}

/* Variables CSS para compatibilidad con app.js */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --text-secondary: #94a3b8;
    --border: #334155;
}

/* Focus Mode */
.focus-mode .hide-on-focus {
    display: none;
}

/* Glassmorphism Pro */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animaciones */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.option:hover:not(.disabled) {
    transform: translateX(10px);
}

.option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.option.selected .option-letter {
    background: var(--primary) !important;
    color: white !important;
}

.option.correct {
    border-color: var(--success) !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.option.correct .option-letter {
    background: var(--success) !important;
    color: white !important;
}

.option.incorrect {
    border-color: var(--error) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.option.incorrect .option-letter {
    background: var(--error) !important;
    color: white !important;
}

.progress-bar {
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Clases de compatibilidad */
.show {
    display: block !important;
}

.topic-item {
    cursor: pointer;
    transition: all 0.2s;
}

.topic-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.article-link {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #818cf8;
    margin: 4px;
}
