/**
 * 학습 분석 대시보드 스타일
 */

.analytics-summary {
    margin-bottom: 30px;
}

.analytics-section {
    margin-bottom: 30px;
}

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

/* 시간대 분석 */
.time-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.time-slot {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.time-slot.active {
    border-color: #ff6b00;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.time-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.time-count {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff6b00;
}

/* 성취 배지 */
.achievement-badge-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    height: 100%;
}

.achievement-badge-card.earned {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    border-color: #ff6b00;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.achievement-badge-card.locked {
    opacity: 0.5;
    filter: grayscale(50%);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.badge-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.badge-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.badge-earned {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-locked {
    color: #999;
    font-size: 0.9rem;
}

/* 추천 */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ff6b00;
}

.rec-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.rec-content h6 {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 700;
}

.rec-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* 차트 컨테이너 */
.card-custom canvas {
    padding: 20px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .time-analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .time-slot {
        padding: 12px;
    }
    
    .time-label {
        font-size: 0.8rem;
    }
    
    .time-count {
        font-size: 1.1rem;
    }
    
    .badge-icon {
        font-size: 2.5rem;
    }
    
    .badge-title {
        font-size: 1rem;
    }
    
    .badge-desc {
        font-size: 0.8rem;
    }
    
    .recommendation-item {
        padding: 12px;
    }
    
    .rec-icon {
        font-size: 1.5rem;
    }
    
    .rec-content h6 {
        font-size: 0.95rem;
    }
    
    .rec-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .time-analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-section h4 {
        font-size: 1.1rem;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analytics-section {
    animation: fadeInUp 0.5s ease-out;
}

.analytics-section:nth-child(2) {
    animation-delay: 0.1s;
}

.analytics-section:nth-child(3) {
    animation-delay: 0.2s;
}

.analytics-section:nth-child(4) {
    animation-delay: 0.3s;
}

.analytics-section:nth-child(5) {
    animation-delay: 0.4s;
}
