/* =====================
   리포트 데스크탑 전용 스타일
   ===================== */

/* 데스크탑 뷰 컨테이너 */
.report-desktop {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 헤더 */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.report-header-left h2 {
    margin: 0;
    font-size: 1.8rem;
}

.report-period {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.report-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* 그리드 레이아웃 */
.report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* 카드 기본 스타일 */
.report-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.report-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #202124;
}

/* 너비 수정자 */
.report-card.full-width {
    grid-column: 1 / -1;
}

.report-card.half-width {
    grid-column: span 1.5;
}

/* 통계 카드 */
.stat-card {
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: #5f6368;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a73e8;
    line-height: 1;
}

.stat-change {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.stat-detail {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #5f6368;
}

/* 레벨 카드 */
.level-card {
    text-align: center;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border-radius: 50px;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.level-icon {
    font-size: 1.5rem;
}

.level-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #202124;
    margin-bottom: 1rem;
}

.level-progress-text {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 0.5rem;
}

/* 연속 달성 카드 */
.streak-card {
    text-align: center;
}

.streak-icon {
    font-size: 2rem;
}

.streak-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ea4335;
    margin: 0.5rem 0;
}

.streak-label {
    font-size: 0.9rem;
    color: #5f6368;
    margin-bottom: 0.25rem;
}

.streak-detail {
    font-size: 0.85rem;
    color: #5f6368;
}

/* 포모도로 카드 */
.pomodoro-card {
    text-align: center;
}

.pomodoro-icon {
    font-size: 2rem;
}

.pomodoro-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ea4335;
    margin: 0.5rem 0;
}

.pomodoro-label {
    font-size: 0.9rem;
    color: #5f6368;
    margin-bottom: 0.25rem;
}

.pomodoro-detail {
    font-size: 0.85rem;
    color: #5f6368;
}

/* 차트 카드 */
.chart-card {
    min-height: 300px;
}

.chart-container {
    position: relative;
    height: 250px;
}

.chart-container-small {
    position: relative;
    height: 180px;
}

/* 히트맵 */
.heatmap-card {
    min-height: auto;
}

.heatmap-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #5f6368;
}

.legend-scale {
    display: flex;
    gap: 2px;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.level-0 { background: #f0f0f0; }
.legend-color.level-1 { background: #c8e6c9; }
.legend-color.level-2 { background: #81c784; }
.legend-color.level-3 { background: #4caf50; }
.legend-color.level-4 { background: #2e7d32; }

.heatmap-container {
    display: grid;
    grid-template-columns: 40px repeat(7, 1fr);
    gap: 2px;
}

.heatmap-row-labels {
    display: contents;
}

.heatmap-corner {
    grid-column: 1;
}

.heatmap-weekday-label {
    text-align: center;
    font-size: 0.75rem;
    color: #5f6368;
    padding: 0.25rem 0;
}

.heatmap-row {
    display: contents;
}

.heatmap-hour-label {
    text-align: right;
    font-size: 0.7rem;
    color: #5f6368;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    transition: transform 0.2s;
}

.heatmap-cell:hover {
    transform: scale(1.15);
}

.heatmap-cell.level-0 { background: #f0f0f0; }
.heatmap-cell.level-1 { background: #c8e6c9; }
.heatmap-cell.level-2 { background: #81c784; }
.heatmap-cell.level-3 { background: #4caf50; }
.heatmap-cell.level-4 { background: #2e7d32; }

.heatmap-summary {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #5f6368;
}

/* 태그 리스트 */
.tag-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tag-name {
    min-width: 60px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.tag-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #5f6368;
}

.tag-percent {
    min-width: 40px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: bold;
    color: #202124;
}

/* 반응형 */
@media (max-width: 1024px) {
    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-card.half-width {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .report-desktop {
        display: none;
    }
}
