/* ══════════════════════════════════════════════════
   liq-calc.css  - 청산 계산기 추가 스타일
   (kimp-calc.css 의 공통 클래스 재사용)
══════════════════════════════════════════════════ */

/* ── 버튼 ── */
.liq-calc-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(248,81,73,0.1), rgba(210,153,34,0.08));
    border: 1px solid rgba(248,81,73,0.28);
    border-radius: 6px;
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.liq-calc-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.liq-calc-btn:hover {
    background: linear-gradient(135deg, rgba(248,81,73,0.2), rgba(210,153,34,0.14));
    border-color: #f85149;
    box-shadow: 0 0 12px rgba(248,81,73,0.2);
}

/* ── 글래스 패널 accent (기본=롱/초록) ── */
.liq-glass {
    border-color: rgba(63,185,80,0.25) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 24px 64px rgba(0,0,0,0.6),
        0 0 40px rgba(63,185,80,0.06) !important;
}

.liq-glass .kimp-calc-header {
    background: rgba(63,185,80,0.05) !important;
}

.liq-glass .kimp-calc-title svg {
    color: #3fb950;
}

/* 숏 모드 */
.liq-glass.liq-short-mode {
    border-color: rgba(248,81,73,0.25) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 24px 64px rgba(0,0,0,0.6),
        0 0 40px rgba(248,81,73,0.06) !important;
}

.liq-glass.liq-short-mode .kimp-calc-header {
    background: rgba(248,81,73,0.05) !important;
}

/* ── 롱/숏 탭 ── */
.liq-tabs {
    display: flex;
    margin: 14px 18px 0;
    background: rgba(10,14,20,0.6);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.liq-tab {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #636e7c;
}

.liq-tab[data-side="long"].active {
    background: rgba(63,185,80,0.15);
    color: #3fb950;
    box-shadow: 0 0 0 1px rgba(63,185,80,0.2);
}

.liq-tab[data-side="short"].active {
    background: rgba(248,81,73,0.15);
    color: #f85149;
    box-shadow: 0 0 0 1px rgba(248,81,73,0.2);
}

.liq-tab:hover:not(.active) { color: #8b95a8; }

/* ── 입력 그리드 ── */
.liq-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 8px;
}

/* ── 레버리지 슬라이더 ── */
.liq-slider-wrap {
    padding: 10px 18px 0;
}

.liq-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #39d0d8 0%, #39d0d8 calc(var(--pct, 7.2%) ), #2a3441 calc(var(--pct, 7.2%)));
    outline: none;
    cursor: pointer;
}

.liq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #39d0d8;
    box-shadow: 0 0 6px rgba(57,208,216,0.5);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.liq-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 10px rgba(57,208,216,0.8);
}

.liq-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #39d0d8;
    border: none;
    cursor: pointer;
}

.liq-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #636e7c;
    margin-top: 5px;
    font-family: 'JetBrains Mono', monospace;
}

/* ── 결과 ── */
.liq-result {
    border-color: rgba(248,81,73,0.15) !important;
    background: rgba(248,81,73,0.04) !important;
}

.liq-liquidation-row {
    background: rgba(248,81,73,0.07) !important;
    font-weight: 700 !important;
}

.liq-liquidation-row span:first-child {
    color: #e6edf3 !important;
    font-size: 13px !important;
}

.liq-price-val {
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* ── 면책 문구 ── */
.liq-disclaimer {
    font-size: 10px;
    color: #4a5568;
    text-align: center;
    padding: 0 18px 14px;
    line-height: 1.5;
}

/* ── 모바일 ── */
@media (max-width: 768px) {
    .liq-calc-btn span { display: none; }
    .liq-calc-btn { padding: 8px 10px; gap: 0; }
    .liq-calc-btn svg { width: 16px; height: 16px; }

    .liq-input-grid { grid-template-columns: 1fr; gap: 0; }
    .liq-tab { font-size: 12px; padding: 7px; }
    .liq-price-val { font-size: 13px !important; }
}
