/* DarkFina 인사이트 (일간 리포트) */

.insight-page {
    max-width: 1100px;
    margin: 24px auto 32px;
}

.insight-page .card-content {
    padding: 20px 24px 28px;
    line-height: 1.8;
}

.insight-breadcrumb {
    font-size: 13px;
    color: var(--df-text-secondary);
    margin-bottom: 8px;
}

.insight-breadcrumb a,
.insight-page a {
    color: var(--df-cyan);
    text-decoration: none;
}

.insight-page a:hover {
    text-decoration: underline;
}

.insight-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}

.insight-update {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.insight-next {
    font-size: 13px;
    color: var(--df-text-secondary);
    margin: 8px 0 0;
}

.insight-basis {
    color: var(--df-text-secondary);
    font-size: 14px;
    margin: 0 0 8px;
}

.insight-headline {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 16px;
    border-left: 3px solid var(--df-cyan);
    background: rgba(0, 212, 255, 0.06);
    border-radius: 0 8px 8px 0;
    margin: 8px 0 16px;
}

.insight-price {
    font-size: 14px;
    margin: -4px 0 16px;
}

.insight-badge {
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: 6px;
    color: #ffb020;
    border: 1px solid rgba(255, 176, 32, 0.5);
    background: rgba(255, 176, 32, 0.1);
}

.insight-note {
    font-size: 13px;
    color: var(--df-text-secondary);
    margin: 20px 0 0;
}

.insight-notice {
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 170, 0, 0.4);
    background: rgba(255, 170, 0, 0.08);
    border-radius: 8px;
    margin: 0 0 12px;
}

.insight-section {
    margin: 28px 0 0;
}

.insight-section h2 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 12px;
}

.insight-table-wrap {
    position: relative;
    margin-bottom: 12px;
}

.insight-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 가로 스크롤 신호: 넘칠 때만 (insights.js 가 is-scrollable / at-end 토글) */
.insight-table-wrap.is-scrollable::after {
    content: '';
    position: absolute;
    top: 26px; /* 위의 스크롤 안내 줄 높이만큼 비움 */
    right: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--df-bg-card, #151A3A));
    transition: opacity 0.2s;
}

.insight-table-wrap.is-scrollable.at-end::after {
    opacity: 0;
}

.insight-scroll-hint {
    display: none;
    font-size: 12px;
    color: var(--df-text-secondary);
    text-align: right;
    margin: 0 0 4px;
}

.insight-table-wrap.is-scrollable .insight-scroll-hint {
    display: block;
}

.insight-date-pager {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    margin: 0 0 16px;
}

.insight-pager-off {
    color: var(--df-text-secondary);
    opacity: 0.5;
    cursor: default;
}

.insight-pager-sep {
    color: var(--df-text-secondary);
    opacity: 0.5;
}

.insight-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.insight-footer-nav .insight-date-pager {
    margin: 0;
}

.insight-table th {
    text-transform: none;
    white-space: nowrap;
    padding: 10px 16px;
}

.insight-table td {
    padding: 10px 16px;
    white-space: nowrap;
}

.insight-points {
    padding-left: 20px;
    margin: 8px 0 0;
}

.insight-points li {
    margin: 6px 0;
}

.insight-explain {
    margin: 28px 0 0;
    border: 1px solid var(--df-border);
    border-radius: 8px;
    padding: 10px 16px;
}

.insight-explain summary {
    cursor: pointer;
    font-weight: 600;
}

.insight-explain dt {
    font-weight: 600;
    margin-top: 12px;
}

.insight-explain dd {
    margin: 4px 0 0;
    color: var(--df-text-secondary);
    font-size: 14px;
}

.insight-source {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--df-border);
    font-size: 13px;
    color: var(--df-text-secondary);
}

.insight-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 14px;
}

.insight-date-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.insight-list li {
    border-bottom: 1px solid var(--df-border);
}

.insight-list a {
    display: flex;
    gap: 16px;
    padding: 12px 4px;
    color: inherit;
}

.insight-list a:hover {
    background: rgba(0, 212, 255, 0.05);
    text-decoration: none;
}

.insight-list strong {
    min-width: 64px;
    color: var(--df-cyan);
}

@media (max-width: 768px) {
    .insight-page .card-content {
        padding: 16px;
    }
    .insight-title {
        font-size: 20px;
    }
    .insight-list a {
        flex-direction: column;
        gap: 2px;
    }
}
