/* ===== RESULTS SCREEN ===== */

.results-container {
    width: 100%;
    max-width: 900px;
    padding: 60px;
    background: linear-gradient(135deg,
        rgba(255, 0, 110, 0.05) 0%,
        rgba(0, 212, 255, 0.05) 100%);
    border: 2px solid var(--neon-pink);
    border-radius: 15px;
    box-shadow: 
        inset 0 0 40px rgba(255, 0, 110, 0.15),
        0 0 60px rgba(255, 0, 110, 0.3);
    animation: slideInUp var(--transition-slow) ease-out;
}

/* ===== RESULTS TITLE ===== */

.results-title {
    text-align: center;
    color: var(--neon-green);
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green);
    margin-bottom: 50px;
    font-size: 2.5rem;
    animation:
        slideInDown var(--transition-slow) ease-out,
        glow 2s ease-in-out infinite;
}

/* ===== RESULTS STATS ===== */

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    animation: slideInUp calc(var(--transition-slow) + 0.1s) ease-out;
}

.stat-box {
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(currentColor, 0.1) 0%,
        transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-10px);
}

.stat-box:hover::before {
    opacity: 1;
}

/* Accuracy */
.stat-box.accuracy {
    border-color: var(--neon-gold);
    color: var(--neon-gold);
    box-shadow: 
        inset 0 0 25px rgba(255, 215, 0, 0.1),
        0 0 40px rgba(255, 215, 0, 0.2);
}

.stat-box.accuracy:hover {
    box-shadow: 
        inset 0 0 35px rgba(255, 215, 0, 0.2),
        0 0 60px rgba(255, 215, 0, 0.4);
}

/* Diamonds */
.stat-box.diamonds {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 
        inset 0 0 25px rgba(0, 212, 255, 0.1),
        0 0 40px rgba(0, 212, 255, 0.2);
}

.stat-box.diamonds:hover {
    box-shadow: 
        inset 0 0 35px rgba(0, 212, 255, 0.2),
        0 0 60px rgba(0, 212, 255, 0.4);
}

/* Hearts */
.stat-box.hearts {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 
        inset 0 0 25px rgba(255, 0, 110, 0.1),
        0 0 40px rgba(255, 0, 110, 0.2);
}

.stat-box.hearts:hover {
    box-shadow: 
        inset 0 0 35px rgba(255, 0, 110, 0.2),
        0 0 60px rgba(255, 0, 110, 0.4);
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px currentColor);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 0 15px currentColor;
    position: relative;
    z-index: 1;
}

/* ===== ERRORS LIST ===== */

.errors-list {
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-red);
    border-radius: 10px;
    margin-bottom: 40px;
    max-height: 300px;
    overflow-y: auto;
    animation: slideInUp calc(var(--transition-slow) + 0.2s) ease-out;
}

.errors-list.empty {
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--neon-green);
    color: var(--neon-green);
    text-align: center;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.errors-list.empty::before {
    content: '✓ PERFECT!';
    display: block;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 0 10px var(--neon-green);
}

.error-item {
    padding: 15px;
    background: rgba(255, 0, 85, 0.1);
    border-left: 3px solid var(--neon-red);
    margin-bottom: 12px;
    border-radius: 6px;
    animation: slideInLeft var(--transition-normal) ease-out;
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-question {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.error-your-answer {
    font-size: 0.85rem;
    color: var(--neon-red);
    margin-bottom: 6px;
}

.error-correct-answer {
    font-size: 0.85rem;
    color: var(--neon-green);
    margin-bottom: 6px;
}

.error-explanation {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 0, 85, 0.3);
    font-style: italic;
}

/* ===== RESULTS ACTIONS ===== */

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: slideInUp calc(var(--transition-slow) + 0.3s) ease-out;
}

.action-button {
    padding: 16px 50px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

/* Primary Action */
.action-button.primary {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 
        inset 0 0 25px rgba(0, 255, 136, 0.2),
        0 0 35px rgba(0, 255, 136, 0.3);
}

.action-button.primary:hover {
    background: rgba(0, 255, 136, 0.25);
    box-shadow: 
        inset 0 0 35px rgba(0, 255, 136, 0.3),
        0 0 50px rgba(0, 255, 136, 0.5);
    transform: translateY(-3px);
    text-shadow: 0 0 10px var(--neon-green);
}

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

/* Secondary Action */
.action-button.secondary {
    background: rgba(255, 0, 110, 0.15);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 
        inset 0 0 25px rgba(255, 0, 110, 0.2),
        0 0 35px rgba(255, 0, 110, 0.3);
}

.action-button.secondary:hover {
    background: rgba(255, 0, 110, 0.25);
    box-shadow: 
        inset 0 0 35px rgba(255, 0, 110, 0.3),
        0 0 50px rgba(255, 0, 110, 0.5);
    transform: translateY(-3px);
    text-shadow: 0 0 10px var(--neon-pink);
}

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

/* ===== REWARD ANIMATION ===== */

.reward-pop {
    position: fixed;
    pointer-events: none;
    font-weight: 700;
    font-size: 2rem;
    animation: energyRise 1s ease-out forwards;
    text-shadow: 0 0 15px currentColor;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .results-container {
        padding: 40px;
        max-width: 100%;
    }
    
    .results-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .results-container {
        padding: 30px;
        border-radius: 10px;
    }
    
    .results-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .results-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-box {
        padding: 20px;
        gap: 10px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .errors-list {
        padding: 15px;
        max-height: 250px;
    }
    
    .error-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .results-actions {
        flex-wrp: wrap;
        gap: 10px;
    }
    
    .action-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .results-container {
        padding: 20px;
    }
    
    .results-title {
        font-size: 1.4rem;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}
