/* Mobile-First Gamification UI */
.mobile-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.progress-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

.daily-section, .weekly-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1d3557;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-available {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-completed {
    background: #e3f2fd;
    color: #1976d2;
}

.status-locked {
    background: #fafafa;
    color: #757575;
}

.play-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.play-button:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}

.streak-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.streak-flame {
    font-size: 24px;
    margin-right: 8px;
}

.streak-text {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
}

.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 1000;
    max-width: 300px;
    animation: achievementBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes achievementBounce {
    0% { transform: translate(-50%, -50%) scale(0.3) rotate(-10deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.achievement-title {
    font-size: 20px;
    font-weight: bold;
    color: #1d3557;
    margin-bottom: 5px;
}

.achievement-desc {
    color: #6c757d;
    font-size: 14px;
}

.question-interface {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 15px 0;
}

.question-text {
    font-size: 18px;
    color: #1d3557;
    margin-bottom: 20px;
    line-height: 1.5;
}

.answer-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.answer-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.answer-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.answer-option.correct {
    border-color: #4caf50;
    background: #e8f5e8;
    color: #2e7d32;
}

.answer-option.incorrect {
    border-color: #f44336;
    background: #ffebee;
    color: #c62828;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.results-summary {
    text-align: center;
    padding: 20px;
}

.score-display {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

.points-earned {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin: 10px 5px;
}

@media (max-width: 480px) {
    .mobile-container {
        padding: 5px;
    }
    
    .progress-dashboard {
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}