/**
 * Startup Cost Calculator Styles
 * 창업비용 계산기 전용 스타일
 *
 * @package Zipper
 */

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

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

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

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

.scc-section,
.scc-breakdown-section,
.scc-monthly-section,
.scc-tips-section {
    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;
}

.scc-section:hover,
.scc-breakdown-section:hover,
.scc-monthly-section:hover,
.scc-tips-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

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

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

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

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

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

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

.scc-amount-input,
.scc-number-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;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.scc-number-input {
    padding-right: 12px;
}

.scc-amount-input {
    text-align: right;
    font-weight: 600;
}

.scc-amount-input:hover,
.scc-number-input:hover {
    border-color: #d4c67a;
}

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

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

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

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

.scc-hint {
    margin-top: 4px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.45;
}

.scc-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 6px;
    border-radius: 999px;
    background: #ece7da;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.scc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.22);
    cursor: pointer;
}

.scc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.22);
    cursor: pointer;
}

.scc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.scc-slider-value {
    font-size: 12px;
    font-weight: 700;
    color: #d4af37;
}

.scc-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 10px;
    color: #9e9a96;
}

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

.scc-calculate-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;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.scc-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;
}

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

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

.scc-waiting i {
    display: block;
    font-size: 32px;
    color: #d4af37;
    opacity: 0.4;
}

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

.scc-waiting strong {
    color: #5f5a56;
    font-weight: 600;
}

.scc-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 1px solid #eadfbf;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

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

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

.scc-summary-main {
    font-size: 30px;
    line-height: 1.2;
    color: #2d2a26;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.scc-summary-sub {
    font-size: 12px;
    color: #8f856f;
    margin-bottom: 12px;
}

.scc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.scc-summary-item {
    background: #fffef9;
    border: 1px solid #ece2c8;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scc-summary-label {
    font-size: 11px;
    color: #8c7e61;
}

.scc-summary-value {
    font-size: 14px;
    color: #2d2a26;
    font-weight: 700;
}

.scc-summary-value.scc-profit {
    color: #0f7d4b;
}

.scc-summary-value.scc-loss {
    color: #c0392b;
}

.scc-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.scc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #eadfbf;
    background: #fff;
    color: #6d6148;
    font-size: 11px;
}

.scc-pill strong {
    color: #2d2a26;
    font-weight: 700;
}

.scc-table {
    width: 100%;
    border-collapse: collapse;
}

.scc-table th,
.scc-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #f0ece4;
    text-align: right;
    font-size: 12px;
    color: #5f5a56;
}

.scc-table th:first-child,
.scc-table td:first-child {
    text-align: left;
}

.scc-table thead th {
    color: #8b8578;
    font-weight: 600;
    background: #faf9f7;
}

.scc-table .scc-table-total td {
    font-weight: 700;
    color: #2d2a26;
    background: #fbf8f0;
}

.scc-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.scc-metric-label {
    font-size: 11px;
    color: #8f8a7f;
}

.scc-metric-value {
    font-size: 17px;
    font-weight: 700;
    color: #2d2a26;
    letter-spacing: -0.01em;
}

.scc-metric-value.scc-profit {
    color: #0f7d4b;
}

.scc-metric-value.scc-loss {
    color: #c0392b;
}

.scc-tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scc-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 8px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
}

.scc-tip-item i {
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 1px;
}

.scc-tip-item span {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.scc-disclaimer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
}

.scc-disclaimer i {
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

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

    .scc-amount-input,
    .scc-number-input,
    .scc-slider {
        width: 100% !important;
        max-width: 100% !important;
    }

    .scc-summary-grid,
    .scc-metric-grid {
        grid-template-columns: 1fr;
    }

    .scc-summary-main {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .scc-section,
    .scc-breakdown-section,
    .scc-monthly-section,
    .scc-tips-section {
        padding: 14px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .scc-calculate-btn,
    .scc-reset-btn {
        padding: 11px 12px;
    }

    .scc-table th,
    .scc-table td {
        font-size: 11px;
        padding: 8px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scc-section,
    .scc-breakdown-section,
    .scc-monthly-section,
    .scc-tips-section,
    .scc-amount-input,
    .scc-number-input,
    .scc-calculate-btn,
    .scc-reset-btn,
    .scc-tip-item {
        transition: none !important;
    }

    .scc-section:hover,
    .scc-breakdown-section:hover,
    .scc-monthly-section:hover,
    .scc-tips-section:hover,
    .scc-calculate-btn:hover {
        transform: none !important;
    }
}
