/* * css/stats-trend.css
 * 통계 및 트렌드 차트 스타일
 * js/stats-trend-renderer.js 의 클래스명과 매칭됨
 */

/* 메인 래퍼: 카드 형태 디자인 */
.stats-trend-wrapper {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

/* 헤더 영역 */
.trend-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.trend-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trend-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

/* 차트 컨테이너: 높이값 강제 지정 (중요) */
.trend-chart-container {
    width: 100%;
    min-height: 250px; /* 높이가 없으면 차트가 안 보일 수 있음 */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 데이터 없음 / 로딩 상태 */
.trend-empty-state {
    color: var(--text-tertiary);
    font-style: italic;
    font-size: 0.9rem;
}

/* 바 차트 레이아웃 */
.trend-bar-chart {
    display: flex;
    width: 100%;
    height: 200px;
    gap: 10px;
}

/* Y축 (점수 표시) */
.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    padding-right: 10px;
    border-right: 1px dashed var(--border-color);
}

/* 막대 영역 */
.chart-bars-area {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: flex-end; /* 바닥 정렬 */
    height: 100%;
    padding-left: 10px;
}

/* 개별 막대 그룹 */
.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
}

/* 막대 디자인 */
.bar-item {
    width: 12px; /* 막대 두께 */
    background: linear-gradient(to top, #4facfe 0%, #00f2fe 100%); /* 그라데이션 컬러 */
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease-out;
    min-height: 4px; /* 최소 높이 */
    position: relative;
}

/* 호버 시 점수 표시 */
.bar-item:hover::after {
    content: attr(data-score);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* X축 레이블 (요일) */
.bar-label {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}