/* ============================================================
   NEO Toolbox - 입찰/뉴스 전용 스타일
   기존 css/style.css와 분리 관리
============================================================ */
.briefing-card .card-body {
    background: #f8fafc;
}

.briefing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.briefing-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.briefing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid #dbe5f2;
    background: linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
}

.briefing-hero h2 {
    margin: 4px 0 8px;
    color: #172033;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.briefing-hero p {
    margin: 0;
    color: #607086;
    line-height: 1.6;
}

.eyebrow {
    margin: 0;
    color: #2864c9 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.bid-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 55%, #f4fbff 100%);
}

.news-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f1f7f3 55%, #f8fbf8 100%);
}

.bid-search-box {
    padding: 18px;
    border: 1px solid #e3e9f2;
    border-radius: 16px;
    background: #ffffff;
}

.compact-row {
    align-items: center;
    margin-bottom: 12px;
}

.compact-row input[type="text"] {
    min-width: 280px;
}

.keyword-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-chip {
    border: 1px solid #d5dfec;
    border-radius: 999px;
    padding: 7px 11px;
    color: #334155;
    background: #f8fafc;
    font-size: 12px;
    cursor: pointer;
}

.keyword-chip:hover {
    border-color: #2864c9;
    color: #2864c9;
    background: #eef5ff;
}

.briefing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.briefing-toolbar strong {
    color: #1f2937;
    font-size: 17px;
}

.briefing-toolbar p {
    margin: 5px 0 0;
    color: #7a8798;
    font-size: 12px;
}

.bid-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.bid-result-card {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-height: 155px;
    padding: 16px;
    border: 1px solid #e1e7f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.bid-result-card .bid-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #7a8798;
    font-size: 12px;
}

.bid-result-card h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
    line-height: 1.45;
}

.bid-result-card p {
    margin: 0;
    color: #607086;
    font-size: 13px;
    line-height: 1.5;
}

.bid-result-card a {
    margin-top: auto;
    color: #2864c9;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.briefing-note {
    display: flex;
    gap: 8px;
    padding: 13px 14px;
    border-radius: 14px;
    color: #5d6b7c;
    background: #eef2f7;
    font-size: 13px;
    line-height: 1.5;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
}

.news-main-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
    border: 1px solid #e0e7ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.news-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 68px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #1f3a63, #5793ce);
    font-size: 24px;
}

.news-card h3 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 15px;
    line-height: 1.4;
}

.news-card p {
    margin: 0 0 8px;
    color: #657386;
    font-size: 13px;
    line-height: 1.5;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #8a96a8;
    font-size: 12px;
}

.news-card-footer a {
    color: #2864c9;
    font-weight: 700;
    text-decoration: none;
}

.news-side-box {
    padding: 16px;
    border: 1px solid #e0e7ef;
    border-radius: 16px;
    background: #ffffff;
    align-self: start;
}

.news-side-box h3 {
    margin: 0 0 12px;
    color: #172033;
    font-size: 15px;
}

.news-topic {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 9px 10px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    color: #465568;
    background: #f8fafc;
    text-align: left;
    cursor: pointer;
}

.news-topic.active,
.news-topic:hover {
    border-color: #2864c9;
    color: #2864c9;
    background: #eef5ff;
}

@media (max-width: 980px) {
    .briefing-hero,
    .briefing-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .compact-row input[type="text"] {
        min-width: 0;
    }
}

/* 실시간 수집 결과 보강 */
.briefing-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    background: #ffffff;
}

.briefing-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
}

.live-card h3 a {
    color: inherit;
    text-decoration: none;
}

.live-card h3 a:hover {
    color: #2864c9;
}

.bid-detail-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.dday {
    display: inline-flex;
    align-items: center;
    min-width: 48px;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    color: #1f2937;
    background: #e5e7eb;
    font-weight: 800;
}

.dday.urgent {
    color: #ffffff;
    background: #d63031;
}

.small-news-thumb {
    width: 72px;
    height: 62px;
    font-size: 21px;
}


/* 저장형 새로고침 UI 보강 */
.keyword-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    color: #1f3a63;
    background: #eaf2ff;
    font-weight: 800;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff !important;
    background: #1f3a63;
    font-size: 12px !important;
    font-weight: 800;
}

.news-category-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.briefing-progress {
    position: relative;
    overflow: hidden;
}

.briefing-progress::after {
    content: '';
    display: block;
    width: 38%;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: #2864c9;
    animation: neoBriefingProgress 1.2s ease-in-out infinite;
}

@keyframes neoBriefingProgress {
    0% { transform: translateX(-120%); opacity: 0.25; }
    50% { opacity: 1; }
    100% { transform: translateX(260%); opacity: 0.25; }
}

/* 뉴스 카드: 이미지/요약 제거, 2열 표시 */
.news-main-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.news-card-compact {
    display: flex;
    flex-direction: column;
    min-height: 112px;
    gap: 8px;
}

.news-card-compact h3 {
    margin-bottom: auto;
}

.news-card-compact .news-card-footer {
    margin-top: auto;
}

@media (max-width: 760px) {
    .news-main-list {
        grid-template-columns: 1fr;
    }
}

/* 입찰 키워드 안내 툴팁: 왼쪽 메뉴보다 위에 표시 */
#bid-result-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.bid-info-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #eef5ff;
    color: #2864c9;
    font-size: 12px;
    font-weight: 800;
    cursor: help;
    border: 1px solid #c7dcff;
}

.bid-info-icon {
    line-height: 1;
}

.bid-info-tooltip {
    display: none;
    position: fixed;
    top: 72px;
    left: 280px;
    right: 24px;
    max-width: 980px;
    max-height: 72vh;
    overflow: auto;
    padding: 18px;
    border: 1px solid #bfd4ef;
    border-radius: 16px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    z-index: 2147483647;
    font-size: 12px;
    line-height: 1.45;
    cursor: default;
}

.bid-info-tooltip strong {
    display: block;
    margin: 0 0 8px;
    color: #172033;
    font-size: 13px;
}

.bid-info-tooltip strong:not(:first-child) {
    margin-top: 16px;
}

.bid-tooltip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bid-tooltip-list span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f2f6fb;
    color: #334155;
    font-weight: 600;
}

.bid-tooltip-list.exclude span {
    background: #fff1f1;
    color: #9f1239;
}

.bid-info-wrap:hover .bid-info-tooltip,
.bid-info-wrap:focus .bid-info-tooltip,
.bid-info-wrap:focus-within .bid-info-tooltip {
    display: block;
}

@media (max-width: 900px) {
    .bid-info-tooltip {
        top: 64px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
