/* 나스닥선물 실시간지수 - 블루 테마 */

:root {
    --nf-bg: #F0F4FF;
    --nf-card-bg: #ffffff;
    --nf-text: #2D2D3F;
    --nf-text-light: #7B7B8E;
    --nf-pink: #2563EB;
    --nf-pink-light: #DBEAFE;
    --nf-mint: #16A34A;
    --nf-mint-light: #DCFCE7;
    --nf-lavender: #7C3AED;
    --nf-lavender-light: #EDE9FE;
    --nf-up: #FF4D6A;
    --nf-up-bg: #FFF0F3;
    --nf-down: #4B9EFF;
    --nf-down-bg: #F0F7FF;
    --nf-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
    --nf-shadow-hover: 0 6px 24px rgba(37, 99, 235, 0.15);
    --nf-radius: 16px;
}

body {
    background: var(--nf-bg) !important;
    color: var(--nf-text) !important;
}

/* 네비바 */
.site-nav {
    background: #fff;
    border-bottom: 2px solid var(--nf-pink-light);
    box-shadow: 0 1px 8px rgba(37,99,235,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-nav-logo {
    font-size: .92rem;
    font-weight: 800;
    color: var(--nf-pink);
    text-decoration: none;
}
.site-nav-links { display: flex; gap: 16px; }
.site-nav-links a {
    font-size: .82rem;
    color: var(--nf-text-light);
    text-decoration: none;
    transition: color .15s;
}
.site-nav-links a:hover { color: var(--nf-pink); }

/* 푸터 */
.site-footer {
    margin-top: 0;
    border-top: 1px solid var(--nf-pink-light);
    background: #fff;
}
.site-footer-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
}
.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}
.site-footer-links a {
    font-size: .82rem;
    color: var(--nf-text-light);
    text-decoration: none;
}
.site-footer-links a:hover { color: var(--nf-pink); }
.site-footer-copy { font-size: .72rem; color: #aaa; }

/* 히어로 */
.hub-hero { padding: 20px 0 16px !important; margin-bottom: 12px !important; border-bottom: none !important; }
.hub-hero-sub { font-size: .85rem; color: var(--nf-text-light) !important; opacity: .7; margin-bottom: 2px !important; letter-spacing: .5px; }
.hub-hero h1 { color: var(--nf-pink) !important; margin-bottom: 6px !important; }
.hub-hero p { color: var(--nf-text-light) !important; font-size: 1rem; }

/* 컨테이너 */
.hub-container { max-width: 880px !important; padding-bottom: 24px !important; }

/* ===== 섹션 타이틀 ===== */
.nf-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nf-text);
    margin: 20px 0 8px 4px;
}

/* ===== 차트 ===== */
.nf-chart-section {
    margin-bottom: 8px;
}
.nf-chart-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.nf-tab {
    padding: 8px 18px;
    border: 2px solid var(--nf-pink-light);
    border-radius: 24px;
    background: var(--nf-card-bg);
    color: var(--nf-text-light);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.nf-tab:hover {
    border-color: var(--nf-pink);
    color: var(--nf-pink);
}
.nf-tab.active {
    background: var(--nf-pink);
    border-color: var(--nf-pink);
    color: #fff;
}
.nf-tab.closed {
    border-color: #e0e0e0;
    color: #b0b0b0;
    background: #f5f5f5;
}
.nf-tab.closed:hover {
    border-color: #ccc;
    color: #999;
}
.nf-tab.closed.active {
    background: #b0b0b0;
    border-color: #b0b0b0;
    color: #fff;
}
.nf-tab-hint {
    font-size: 0.75rem;
    color: #b0b0b0;
    align-self: center;
    margin-left: 4px;
}
.nf-chart-wrap {
    position: relative;
    background: var(--nf-card-bg);
    border-radius: var(--nf-radius) var(--nf-radius) 0 0;
    padding: 16px;
    box-shadow: var(--nf-shadow);
    border: 2px solid var(--nf-pink-light);
    border-bottom: none;
    height: 400px;
}
.nf-chart-summary {
    background: var(--nf-card-bg);
    border-radius: 0 0 var(--nf-radius) var(--nf-radius);
    padding: 14px 20px;
    box-shadow: var(--nf-shadow);
    border: 2px solid var(--nf-pink-light);
    border-top: 1px solid #f0f0f5;
}
.nf-night-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.nf-night-label {
    font-size: 0.82rem;
    color: var(--nf-text-light);
    font-weight: 600;
}
.nf-night-val {
    font-size: 1.5rem;
    font-weight: 900;
}
.nf-night-change {
    font-size: 0.9rem;
    font-weight: 700;
}
.nf-night-detail-row {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--nf-text-light);
}
.nf-night-detail-row b {
    color: var(--nf-text);
    font-weight: 600;
}
.nf-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
.nf-chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    color: var(--nf-text-light);
}
.nf-chart-loading.hidden { display: none; }

/* 등락 색상 */
.nf-color-up { color: var(--nf-up); }
.nf-color-down { color: var(--nf-down); }
.nf-color-flat { color: var(--nf-text-light); }

/* ===== TradingView 미니 위젯 ===== */
.nf-tv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.nf-tv-card {
    background: var(--nf-card-bg);
    border-radius: var(--nf-radius);
    box-shadow: var(--nf-shadow);
    overflow: hidden;
    height: 180px;
    position: relative;
}
.nf-tv-card .tradingview-widget-container {
    width: 100%;
    height: 100%;
}
.nf-tv-card .tradingview-widget-container__widget {
    width: 100%;
    height: 100%;
}
.nf-tv-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: default;
}

/* ===== 거래 시간 ===== */
.nf-schedule {
    background: var(--nf-card-bg);
    border-radius: var(--nf-radius);
    padding: 18px 22px;
    margin-bottom: 8px;
    box-shadow: var(--nf-shadow);
}
.nf-schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f5;
    font-size: 0.88rem;
}
.nf-schedule-row:last-child { border-bottom: none; }
.nf-schedule-name { color: var(--nf-text); font-weight: 600; flex: 1; }
.nf-schedule-time { color: var(--nf-text-light); flex: 1; text-align: center; }
.nf-schedule-status {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 52px;
    text-align: center;
}
.nf-status-open {
    background: var(--nf-up-bg);
    color: var(--nf-up);
}
.nf-status-closed {
    background: #f0f0f5;
    color: var(--nf-text-light);
}

/* ===== SEO 콘텐츠 ===== */
.nf-seo-section {
    background: var(--nf-card-bg);
    border-radius: var(--nf-radius);
    padding: 24px;
    margin-top: 16px;
    box-shadow: var(--nf-shadow);
}
.nf-seo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nf-pink);
    margin: 0 0 16px;
}
.nf-seo-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 18px 0 6px;
    color: var(--nf-text);
}
.nf-seo-section p {
    font-size: 0.88rem;
    color: var(--nf-text-light);
    line-height: 1.8;
    margin: 0 0 12px 4px;
}
.nf-txt-hl {
    background: linear-gradient(transparent 60%, var(--nf-pink-light) 60%);
    padding: 0 2px;
    font-weight: 600;
}
.nf-txt-b {
    font-weight: 700;
    color: var(--nf-text);
}
.nf-txt-ul {
    text-decoration: underline;
    text-decoration-color: var(--nf-pink);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* ===== FAQ ===== */
.nf-faq-item {
    border-bottom: 1px solid #f0f0f5;
}
.nf-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nf-text);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
}
.nf-faq-q:hover {
    color: var(--nf-pink);
}
.nf-faq-arrow {
    font-size: 0.6rem;
    color: var(--nf-text-light);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}
.nf-faq-arrow.open {
    transform: rotate(180deg);
}
.nf-faq-a {
    display: none;
    padding: 0 4px 14px;
    font-size: 0.85rem;
    color: var(--nf-text-light);
    line-height: 1.7;
}
.nf-faq-a.show {
    display: block;
}

/* ===== 광고 ===== */
.nf-ad-slot { margin: 20px 0; }

/* ===== CTA 배너 ===== */
.nf-cta-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin: 24px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--nf-radius);
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nf-cta-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    text-decoration: none;
    color: #fff;
}
.nf-cta-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.nf-cta-text {
    flex: 1;
    line-height: 1.4;
}
.nf-cta-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}
.nf-cta-text small {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}
.nf-cta-arrow {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

/* ===== 면책 ===== */
.nf-disclaimer {
    font-size: 0.78rem;
    color: var(--nf-text-light);
    text-align: center;
    padding: 16px 16px 0;
    margin-bottom: 0;
    opacity: 0.7;
    line-height: 1.5;
}

/* ===== 소개 페이지 ===== */
.nf-about-feature {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f5;
}
.nf-about-feature:last-child { border-bottom: none; }
.nf-about-feature strong {
    display: block;
    font-size: .95rem;
    color: var(--nf-text);
    margin-bottom: 4px;
}
.nf-about-feature p {
    font-size: .88rem;
    color: var(--nf-text-light);
    margin: 0;
    line-height: 1.6;
}
.nf-about-cta {
    display: inline-block;
    padding: 10px 28px;
    background: var(--nf-pink);
    color: #fff;
    border-radius: 24px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: opacity .15s;
}
.nf-about-cta:hover { opacity: .85; }

/* ===== 반응형 ===== */
@media (max-width: 700px) {
    .site-nav-inner { padding: 0 14px; height: 44px; }
    .site-nav-logo { font-size: .82rem; }
    .site-nav-links { gap: 12px; }
    .site-nav-links a { font-size: .76rem; }
    .site-footer { margin-top: 0; }
    .site-footer-inner { padding: 18px 14px; }
    .nf-tv-grid { grid-template-columns: 1fr; }
    .nf-tv-card { height: 160px; }
    .nf-schedule-row {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    .nf-schedule-time { text-align: left; }
    .nf-chart-wrap { height: 300px; }
}
