/* =====================
   오늘의 추천 뷰 스타일
   ===================== */

/* 유틸리티 */
.hidden {
    display: none !important;
}

/* 추천 컨테이너 */
#recommended-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* 헤더 */
.recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.header-left h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.recommended-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.recommended-actions {
    display: flex;
    gap: 0.75rem;
}

/* 요약 카드 */
.recommended-summary {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-item {
    text-align: center;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #667eea;
}

.summary-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 추천 목록 */
.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 추천 Task 카드 */
.recommended-task-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.recommended-task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 사분면별 색상 */
.recommended-task-card.quadrant-q1 {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fef2f2, white);
}

.recommended-task-card.quadrant-q2 {
    border-left-color: #3b82f6;
    background: linear-gradient(to right, #eff6ff, white);
}

.recommended-task-card.quadrant-q3 {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb, white);
}

.recommended-task-card.quadrant-q4 {
    border-left-color: #10b981;
    background: linear-gradient(to right, #ecfdf5, white);
}

/* 순위 표시 */
.recommended-task-rank {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: currentColor;
    opacity: 0.15;
    line-height: 1;
}

/* 카드 헤더 */
.recommended-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}

.recommended-task-header .task-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* 카드 메타 정보 */
.recommended-task-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.task-time {
    display: inline-flex;
    align-items: center;
}

.task-due {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 추천 이유 */
.recommended-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reason-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 6px;
    font-size: 0.8125rem;
}

/* 카드 액션 */
.recommended-task-actions {
    display: flex;
    gap: 0.5rem;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 버튼 */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-outline {
    background: white;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 반응형 */
@media (max-width: 640px) {
    .recommended-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .recommended-actions {
        width: 100%;
        flex-direction: column;
    }

    .recommended-actions button {
        width: 100%;
    }

    .recommended-summary {
        flex-direction: column;
        gap: 1rem;
    }

    .recommended-task-card {
        padding: 1rem;
    }

    .recommended-task-rank {
        font-size: 2rem;
    }

    .recommended-task-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}
