/**
 * DarkFina - 종목 헤더 (includes/components/ticker_header.php)
 * 종목 탭 5개(인사이트·다크풀·공매도·옵션·기관) 공용. 종목 헤더 규칙은 이 파일에만 둔다
 * 세션 배지(Closed·After Hours 등)는 모바일에서도 표시
 */

/* 티커 헤더 컨테이너 */
.ticker-header {
    background: var(--df-bg-secondary, #1a1a2e);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid var(--df-border, rgba(255,255,255,0.08));
}

.ticker-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 심볼 영역 */
.ticker-id {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.ticker-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--df-cyan, #00d4ff), var(--df-purple, #667eea));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.ticker-symbol {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.ticker-name {
    font-size: 12px;
    color: var(--df-text-secondary, #8b8b9a);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 가격 영역 */
.ticker-price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-now {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-change {
    font-size: 14px;
    font-weight: 500;
    color: var(--df-text-secondary);
}

.price-change.positive,
.ticker-header .positive {
    color: var(--df-green, #22c55e);
}

.price-change.negative,
.ticker-header .negative {
    color: var(--df-pink, #ef4444);
}

.session-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    white-space: nowrap;
}

.session-tag:empty {
    display: none;
}

/* 통계 영역 - PC만 표시 */
.ticker-stats {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.stat-item {
    text-align: right;
}

.stat-label {
    font-size: 10px;
    color: var(--df-text-muted, #6b6b7a);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
    .ticker-header {
        padding: 12px 14px;
    }

    .ticker-row {
        gap: 12px;
    }

    .ticker-id {
        min-width: auto;
    }

    .ticker-logo {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .ticker-symbol {
        font-size: 17px;
    }

    .ticker-name {
        display: none;
    }

    .price-now {
        font-size: 18px;
    }

    .price-change {
        font-size: 13px;
    }

    .ticker-stats {
        display: none;
    }
}

@media (max-width: 480px) {
    .ticker-header {
        padding: 10px 12px;
    }

    .ticker-logo {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .ticker-symbol {
        font-size: 16px;
    }

    .price-now {
        font-size: 16px;
    }

    .price-change {
        font-size: 12px;
    }
}
