/* Scoring & Progress UI
 * Auto-save notification, session recovery modal, Personal Best Consistency Score,
 * score breakdown info.
 */
/* Auto-save notification styles */
.auto-save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10000;
    font-size: 14px;
    opacity: 0;
    animation: slideInOut 2s ease-in-out;
}

.auto-save-notification.recovery {
    background: #FF9800;
    animation: none;
    opacity: 1;
}

.auto-save-notification.error {
    background: #f44336;
    animation: none;
    opacity: 1;
    border-left: 4px solid #d32f2f;
}

@keyframes slideInOut {
    0% { opacity: 0; transform: translateX(100%); }
    15% { opacity: 1; transform: translateX(0); }
    85% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .auto-save-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* Session recovery modal */
.session-recovery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.session-recovery-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.session-recovery-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.session-recovery-buttons .btn {
    flex: 1;
    max-width: 150px;
}

/* Personal Best Consistency Score styling */
.stat-item.consistency-bonus {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 8px;
    animation: pulse-green 2s infinite;
}

.stat-item.pr-bonus {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border-radius: 8px;
    animation: pulse-gold 2s infinite;
}

.stat-item.consistency-bonus .stat-value,
.stat-item.pr-bonus .stat-value {
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-item.consistency-bonus .stat-label,
.stat-item.pr-bonus .stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

/* Score breakdown info styling */
.score-breakdown {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.score-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-item strong {
    color: #60a5fa;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.score-item ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
    list-style-type: disc;
}

.score-item li {
    margin: 0.25rem 0;
    color: var(--text-primary) !important;
}

/* Mobile responsiveness for new scoring elements */
@media (max-width: 768px) {
    .user-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-item.consistency-bonus,
    .stat-item.pr-bonus {
        min-width: 100px;
    }
    
    .score-breakdown {
        gap: 1rem;
    }
    
    .score-item {
        padding: 1rem;
    }
}

