/**
 * Salary Raise Calculator Styles
 * 연봉 인상률 계산기 전용 스타일
 *
 * @package Zipper
 */

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

.srrc-intro {
    display: grid;
    gap: 10px;
}

.srrc-lead {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.7;
    color: #5f5a56;
}

.srrc-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.srrc-section:hover {
    border-color: #e1d6af;
    box-shadow: 0 4px 14px rgba(45, 42, 38, 0.08);
}

.srrc-section-title,
.srrc-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
}

.srrc-section-title i,
.srrc-subtitle i,
.srrc-input-tip i,
.srrc-disclaimer i {
    color: #d4af37;
}

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

.srrc-mode-btn {
    min-height: 48px;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
    color: #5f5a56;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.srrc-mode-btn:hover,
.srrc-mode-btn.is-active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.14);
}

.srrc-mode-note,
.srrc-table-note,
.srrc-compare-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6d665e;
}

.srrc-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.srrc-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.srrc-input-label {
    font-size: 13px;
    font-weight: 700;
    color: #5f5a56;
}

.srrc-amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.srrc-amount-input,
.srrc-rate-input,
.srrc-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    background: #fff;
    color: #2d2a26;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.srrc-amount-input:hover,
.srrc-rate-input:hover,
.srrc-select:hover {
    border-color: #d4c67a;
}

.srrc-amount-input:focus,
.srrc-rate-input:focus,
.srrc-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.srrc-amount-input::placeholder,
.srrc-rate-input::placeholder {
    color: #c4c0bc;
    font-weight: 400;
}

.srrc-unit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e8e4dc;
    background: #faf9f7;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.srrc-amount-korean {
    font-size: 12px;
    line-height: 1.5;
    color: #8a6500;
}

.srrc-input-hint {
    font-size: 12px;
    line-height: 1.6;
    color: #7a756d;
}

.srrc-input-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fcf7e8;
    border: 1px solid #efe0a8;
    font-size: 13px;
    line-height: 1.6;
    color: #6c6244;
}

.srrc-preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.srrc-preset-btn {
    padding: 9px 14px;
    border: 1px solid #e8e4dc;
    border-radius: 999px;
    background: #fff;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.srrc-preset-btn:hover,
.srrc-preset-btn.is-active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
}

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

.srrc-btn-group .tool-btn {
    flex: 1;
}

.srrc-tip-section {
    gap: 12px;
}

.srrc-tip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #5f5a56;
    font-size: 14px;
    line-height: 1.6;
}

.srrc-waiting {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 20px;
    border: 1px solid #f1d6bf;
    border-radius: 14px;
    background: #fff8f1;
    color: #9e6f46;
}

.srrc-waiting i {
    font-size: 28px;
    opacity: 0.75;
}

.srrc-waiting p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.srrc-result-hero {
    display: grid;
    gap: 12px;
    background: linear-gradient(135deg, #fffdf6 0%, #faf4e4 100%);
    border: 1px solid #eadfb8;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.14);
}

.srrc-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.srrc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.srrc-status-badge.is-increase {
    background: rgba(70, 180, 80, 0.12);
    color: #2d8b42;
}

.srrc-status-badge.is-decrease {
    background: rgba(220, 50, 50, 0.12);
    color: #b32626;
}

.srrc-status-badge.is-neutral {
    background: rgba(212, 175, 55, 0.14);
    color: #8a6500;
}

.srrc-status-badge.is-warning {
    background: rgba(255, 185, 0, 0.16);
    color: #8a6500;
}

.srrc-copy-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1d2a6;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #8a6500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.srrc-copy-btn:hover {
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.18);
}

.srrc-hero-value {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #b58913;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.srrc-hero-value .unit {
    margin-left: 4px;
    font-size: 22px;
    font-weight: 600;
    color: #5f5a56;
}

.srrc-hero-label {
    font-size: 14px;
    font-weight: 700;
    color: #5f5a56;
}

.srrc-hero-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4a4640;
}

.srrc-formula-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.18);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #5f5a56;
    word-break: break-word;
}

.srrc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.srrc-kpi-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #ece7db;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.05);
}

.srrc-kpi-label {
    font-size: 12px;
    font-weight: 700;
    color: #7a756d;
}

.srrc-kpi-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: #2d2a26;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.srrc-kpi-note {
    font-size: 12px;
    line-height: 1.5;
    color: #7a756d;
}

.srrc-compare-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.srrc-compare-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.srrc-compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #4a4640;
}

.srrc-compare-head strong {
    font-size: 14px;
    color: #2d2a26;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.srrc-compare-track {
    height: 14px;
    border-radius: 999px;
    background: #f3efe8;
    overflow: hidden;
}

.srrc-compare-bar {
    height: 100%;
    border-radius: inherit;
    transition: width 0.3s ease;
}

.srrc-compare-bar.base {
    background: linear-gradient(90deg, #d9d0c3 0%, #beb19a 100%);
}

.srrc-compare-bar.new {
    background: linear-gradient(90deg, #d4af37 0%, #f0cb60 100%);
}

.srrc-compare-bar.new.is-decrease {
    background: linear-gradient(90deg, #d77373 0%, #ef9b9b 100%);
}

.srrc-compare-bar.new.is-neutral {
    background: linear-gradient(90deg, #bfb7a7 0%, #cec7ba 100%);
}

.srrc-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eee8db;
    background: #fff;
}

.srrc-summary-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 13px;
    color: #4a4640;
}

.srrc-summary-table thead {
    background: #faf6ec;
}

.srrc-summary-table th,
.srrc-summary-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1ede3;
    text-align: left;
    vertical-align: middle;
}

.srrc-summary-table tbody tr:last-child th,
.srrc-summary-table tbody tr:last-child td {
    border-bottom: 0;
}

.srrc-summary-table th {
    font-weight: 700;
    color: #5f5a56;
}

.srrc-summary-table td {
    font-weight: 600;
    color: #2d2a26;
}

.srrc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ece7db;
    background: #faf9f7;
    font-size: 13px;
    line-height: 1.6;
    color: #5f5a56;
}

@media (max-width: 900px) {
    .srrc-input-grid,
    .srrc-kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .srrc-mode-toggle,
    .srrc-btn-group {
        grid-template-columns: 1fr;
        display: grid;
    }

    .srrc-result-hero {
        padding: 20px;
    }

    .srrc-hero-value {
        font-size: 34px;
    }

    .srrc-summary-table {
        min-width: 460px;
    }
}

@media (max-width: 480px) {
    .srrc-section {
        padding: 16px;
    }

    .srrc-amount-row {
        grid-template-columns: 1fr;
    }

    .srrc-unit-chip {
        width: 100%;
    }

    .srrc-preset-btn {
        width: 100%;
        justify-content: center;
    }

    .srrc-hero-value {
        font-size: 30px;
    }

    .srrc-kpi-value {
        font-size: 20px;
    }
}
