/* 폰트 설정 (숫자가 예쁜 폰트 추천) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 1. 헤더 전체 컨테이너 */
.finance-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    white-space: nowrap; /* 줄바꿈 방지 */
}

/* 2. 티커 스크롤 영역 */
.ticker-container {
    display: flex;
    overflow-x: auto; /* 모바일에서 가로 스크롤 가능하게 */
    gap: 0; /* 박스 간격 */
    height: 100%;
    align-items: center;
    
    /* 스크롤바 숨기기 (크롬, 사파리) */
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
}
.ticker-container::-webkit-scrollbar {
    display: none;
}

/* 3. [핵심] 개별 지표 박스 */
.financial-figure-box {
    display: flex;
    flex-direction: column; /* 위:이름, 아래:가격 수직 배치 */
    justify-content: center;
    padding: 0 20px;
    border-right: 1px solid #f0f0f0; /* 칸막이 */
    min-width: 100px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.financial-figure-box:hover {
    background-color: #f9fafb;
}

/* 지표 이름 (S&P 500 등) */
.financial-figure-box .name {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
    font-weight: 500;
}

/* 가격 및 등락률 래퍼 */
.financial-figure-box .data-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

/* 상승/하락 색상 (한국형: 상승=빨강) */
.up { color: #d60000; }   /* 빨강 */
.down { color: #0051c7; } /* 파랑 */
.flat { color: #333; }    /* 보합 */

/* 업데이트 시간 표시 */
.update-time {
    font-size: 11px;
    color: #999;
    margin-left: 20px;
}