/**
 * 일일 학습 & 복습 시스템 스타일
 */

/* 일일 학습 통계 */
.daily-stats, .review-stats {
    margin-bottom: 20px;
}

.daily-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.1);
}

.daily-section h4 {
    color: #ff6b00;
    font-weight: 700;
    margin-bottom: 15px;
}

.daily-item {
    padding: 15px;
    transition: all 0.3s ease;
}

.daily-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.15);
}

.example-text {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

/* 복습 카드 */
.review-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.review-card-front, .review-card-back {
    padding: 30px;
}

.review-progress {
    margin-bottom: 20px;
}

.review-progress .progress {
    height: 30px;
    border-radius: 15px;
    background: #f0f0f0;
}

.review-progress .progress-bar {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.review-buttons {
    margin-top: 20px;
}

.review-buttons .btn {
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.review-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 학습 완료 애니메이션 */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completed-animation {
    animation: checkmark 0.5s ease-in-out;
}

/* 연속 학습일 강조 */
#dailyStreak {
    background: linear-gradient(135deg, #ff6b00 0%, #ff9a56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .daily-section {
        padding: 15px;
    }
    
    .review-card {
        min-height: 350px;
    }
    
    .review-card-front, .review-card-back {
        padding: 20px;
    }
    
    .review-buttons .btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .daily-item {
        padding: 12px;
    }
    
    .review-card {
        min-height: 300px;
    }
    
    .review-buttons h6 {
        font-size: 0.9rem;
    }
}

/* 진행률 표시 */
.progress-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* 목표 달성 배지 */
.achievement-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 20px;
    font-weight: 700;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 복습 난이도 표시 */
.difficulty-easy {
    color: #28a745;
}

.difficulty-medium {
    color: #ffc107;
}

.difficulty-hard {
    color: #dc3545;
}

/* 학습 스트릭 불꽃 효과 */
.streak-fire {
    display: inline-block;
    animation: fire 1s ease-in-out infinite;
}

@keyframes fire {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}
