/**
 * Break-Even Point Calculator Styles
 * 손익분기점(BEP) 계산기 전용 스타일
 *
 * @package Zipper
 */

.bep-hidden {
    display: none !important;
}

.bep-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

.bep-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    box-sizing: border-box;
}

.bep-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bep-section,
.bep-result-summary,
.bep-metrics-section,
.bep-chart-section,
.bep-safety-section,
.bep-disclaimer {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
}

.bep-section:hover,
.bep-result-summary:hover,
.bep-metrics-section:hover,
.bep-chart-section:hover,
.bep-safety-section:hover,
.bep-disclaimer:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.bep-section-title,
.bep-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.bep-section-title i,
.bep-block-title i {
    color: #d4af37;
    font-size: 15px;
}

.bep-input-group {
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.bep-input-group:last-child {
    margin-bottom: 0;
}

.bep-input-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
}

.bep-amount-input-wrap {
    position: relative;
}

.bep-amount-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 36px 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bep-amount-input:hover {
    border-color: #d4c67a;
}

.bep-amount-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.bep-amount-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

.bep-amount-suffix {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #9e9a96;
    font-size: 12px;
    pointer-events: none;
}

.bep-korean-amount {
    font-size: 11px;
    color: #d4af37;
    margin-top: 4px;
    text-align: right;
    min-height: 16px;
}

.bep-hint-list {
    margin: 12px 0 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: #8c8984;
    line-height: 1.5;
}

.bep-btn-group {
    display: flex;
    gap: 8px;
}

.bep-calc-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #c89f2f 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bep-calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.bep-reset-btn {
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px 16px;
    background: #f5f3f0;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bep-reset-btn:hover {
    background: #ece8e1;
}

.bep-waiting {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #8c8984;
}

.bep-waiting-icon {
    font-size: 34px;
    color: #d4af37;
    opacity: 0.4;
}

.bep-waiting-title {
    font-size: 16px;
    font-weight: 700;
    color: #5f5a56;
}

.bep-waiting-desc {
    font-size: 13px;
    line-height: 1.55;
}

.bep-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border-color: #eadfbf;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.bep-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0e6c8;
    color: #7b6430;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bep-summary-title {
    font-size: 13px;
    color: #7a6f56;
    margin-bottom: 2px;
}

.bep-summary-main {
    font-size: 32px;
    font-weight: 800;
    color: #2d2a26;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bep-summary-sub {
    margin-top: 8px;
    font-size: 12px;
    color: #7a756d;
    line-height: 1.5;
}

.bep-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bep-metric-card {
    background: #faf9f7;
    border: 1px solid #eee9df;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bep-metric-label {
    font-size: 11px;
    color: #7a756d;
}

.bep-metric-value {
    font-size: 20px;
    font-weight: 800;
    color: #2d2a26;
    letter-spacing: -0.01em;
}

.bep-chart-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    margin-bottom: 12px;
}

.bep-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.bep-progress-panel {
    background: #faf9f7;
    border: 1px solid #eee9df;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.bep-progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #5f5a56;
    font-weight: 600;
}

.bep-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #ece7da;
    overflow: hidden;
}

.bep-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d4af37 0%, #c89f2f 100%);
    transition: width 0.35s ease;
}

.bep-progress-bar.bep-state-safe {
    background: linear-gradient(90deg, #1f7a46 0%, #329860 100%);
}

.bep-progress-bar.bep-state-warning {
    background: linear-gradient(90deg, #d4af37 0%, #c89f2f 100%);
}

.bep-progress-bar.bep-state-danger {
    background: linear-gradient(90deg, #d05a4e 0%, #c24141 100%);
}

.bep-progress-desc {
    margin: 0;
    font-size: 11px;
    color: #7a756d;
    line-height: 1.5;
}

.bep-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bep-insight-card {
    background: #fffdf8;
    border: 1px solid #eee3c7;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bep-insight-label {
    font-size: 11px;
    color: #7a756d;
}

.bep-insight-value {
    font-size: 18px;
    font-weight: 800;
    color: #2d2a26;
}

.bep-insight-text {
    font-size: 14px;
    line-height: 1.45;
}

.bep-safety-section {
    background: #fbfaf7;
}

.bep-safety-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.bep-safety-row + .bep-safety-row {
    margin-top: 12px;
}

.bep-safety-label {
    font-size: 12px;
    color: #6e6a64;
}

.bep-safety-value {
    font-size: 22px;
    font-weight: 800;
    color: #2d2a26;
}

.bep-safety-note {
    margin: 12px 0 0;
    font-size: 11px;
    color: #8c8984;
    line-height: 1.5;
}

.bep-disclaimer {
    background: #faf9f7;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: #8c8984;
    line-height: 1.55;
}

.bep-disclaimer i {
    color: #d4af37;
    margin-top: 1px;
}

.bep-profit {
    color: #1f7a46 !important;
}

.bep-loss {
    color: #c24141 !important;
}

.bep-neutral {
    color: #7a756d !important;
}

@media (max-width: 900px) {
    .bep-main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bep-input-col {
        position: static;
        top: auto;
        max-width: 100%;
        overflow: hidden;
    }

    .bep-input-group input:not([type="radio"]):not([type="checkbox"]),
    .bep-input-group select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .bep-btn-group {
        flex-direction: column;
    }

    .bep-metrics-grid {
        grid-template-columns: 1fr;
    }

    .bep-insight-grid {
        grid-template-columns: 1fr;
    }

    .bep-summary-main {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .bep-main-layout,
    .bep-input-col,
    .bep-result-col,
    .bep-section,
    .bep-result-summary,
    .bep-metrics-section,
    .bep-chart-section,
    .bep-safety-section,
    .bep-disclaimer {
        max-width: 100%;
        overflow-x: hidden;
    }

    .bep-section,
    .bep-result-summary,
    .bep-metrics-section,
    .bep-chart-section,
    .bep-safety-section,
    .bep-disclaimer {
        padding: 14px;
    }

    .bep-summary-main {
        font-size: 24px;
    }

    .bep-metric-value,
    .bep-safety-value {
        font-size: 18px;
    }

    .bep-chart-wrap {
        height: 220px;
    }

    .bep-insight-value {
        font-size: 16px;
    }

    .bep-insight-text {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bep-section,
    .bep-result-summary,
    .bep-metrics-section,
    .bep-chart-section,
    .bep-safety-section,
    .bep-disclaimer,
    .bep-amount-input,
    .bep-calc-btn,
    .bep-reset-btn {
        transition: none !important;
    }

    .bep-calc-btn:hover {
        transform: none !important;
    }

    .bep-progress-bar {
        transition: none !important;
    }
}
