/**
 * Salary Converter (시급 ↔ 연봉 변환기)
 *
 * @package Zipper
 */

/* ==========================================================================
   Layout
   ========================================================================== */

.sc-main-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    margin-bottom: 20px;
    max-width: 100%;
    min-width: 0;
}

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

/* ==========================================================================
   Input Column
   ========================================================================== */

.sc-input-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Input Type Toggle */
.sc-type-section {
    background: #fffdf5;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.sc-type-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-type-title i {
    color: #d4af37;
    font-size: 16px;
}

.sc-type-toggle {
    display: flex;
    background: #faf9f7;
    border-radius: 8px;
    padding: 4px;
}

.sc-type-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #5f5a56;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sc-type-btn i {
    font-size: 16px;
}

.sc-type-btn.active {
    background: #fff;
    color: #d4af37;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.sc-type-btn:hover:not(.active) {
    color: #2d2a26;
}

/* Mode Toggle Buttons */
.sc-mode-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #5f5a56;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sc-mode-btn i {
    font-size: 16px;
}

.sc-mode-btn.active {
    background: #fff;
    color: #d4af37;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.sc-mode-btn:hover:not(.active) {
    color: #2d2a26;
}

/* Quick Buttons */
.sc-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sc-quick-hourly,
.sc-quick-yearly {
    padding: 8px 12px;
    border: 1px solid #e8e4dc;
    background: #fff;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sc-quick-hourly:hover,
.sc-quick-yearly:hover {
    border-color: #d4af37;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.sc-quick-hourly:first-child,
.sc-quick-yearly:first-child {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(201, 162, 39, 0.1) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    color: #c9a227;
}

/* Input Section */
.sc-input-section {
    background: #fffdf5;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sc-input-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-input-title i {
    color: #d4af37;
    font-size: 16px;
}

/* Input Group */
.sc-input-group {
    margin-bottom: 14px;
    max-width: 100%;
    min-width: 0;
}

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

.sc-input-label {
    font-size: 13px;
    color: #5f5a56;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-input-label i {
    color: #d4af37;
    font-size: 12px;
}

.sc-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sc-input-wrapper:focus-within {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.sc-input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 14px;
    font-size: 16px;
    color: #2d2a26;
    background: transparent;
    outline: none;
    font-weight: 600;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sc-input-wrapper input::placeholder {
    color: #b8b3ab;
    font-weight: 400;
}

.sc-input-suffix {
    padding: 12px 14px;
    background: #faf9f7;
    color: #5f5a56;
    font-size: 14px;
    font-weight: 500;
    border-left: 1px solid #e8e4dc;
}

/* Time Settings */
.sc-time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Toggle Switch */
.sc-toggle-section {
    background: #fffdf5;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.sc-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sc-toggle-label-main {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-toggle-label-main i {
    color: #d4af37;
    font-size: 16px;
}

.sc-toggle-label-sub {
    font-size: 12px;
    color: #5f5a56;
}

/* Toggle Switch Component */
.sc-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: #e8e4dc;
    border: none;
    padding: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.sc-toggle-switch.active {
    background: #d4af37;
}

.sc-toggle-switch-circle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sc-toggle-switch.active .sc-toggle-switch-circle {
    transform: translateX(24px);
}

/* Action Buttons */
.sc-button-row {
    display: flex;
    gap: 10px;
}

.sc-reset-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e8e4dc;
    background: #fff;
    color: #5f5a56;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sc-reset-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.sc-reset-btn i {
    font-size: 16px;
}

/* ==========================================================================
   Result Column
   ========================================================================== */

.sc-result-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Waiting State */
.sc-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #faf9f7;
    border: 2px dashed #e8e4dc;
    border-radius: 12px;
    text-align: center;
}

.sc-waiting i {
    font-size: 48px;
    color: #d4cbb8;
    margin-bottom: 16px;
}

.sc-waiting-text {
    font-size: 16px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 4px;
}

.sc-waiting-sub {
    font-size: 13px;
    color: #b8b3ab;
}

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

/* Result Wrapper */
#resultSection {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Result Cards */
.sc-result-card {
    background: #fffdf5;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.sc-result-card:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

/* Monthly Salary Card */
.sc-monthly-card {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sc-monthly-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.sc-card-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-card-label i {
    font-size: 14px;
}

.sc-card-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sc-card-value {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
}

.sc-card-unit {
    font-size: 18px;
    opacity: 0.9;
}

.sc-card-copy {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 16px;
}

.sc-card-copy:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sc-card-copy.copied {
    background: rgba(255, 255, 255, 0.4);
}

/* Conversion Card */
.sc-conversion-card .sc-card-label {
    color: #5f5a56;
}

.sc-conversion-card .sc-card-value {
    color: #2d2a26;
}

.sc-conversion-card .sc-card-unit {
    color: #5f5a56;
}

.sc-conversion-card .sc-card-copy {
    background: #faf9f7;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
}

.sc-conversion-card .sc-card-copy:hover {
    background: #f5f2ea;
    border-color: #d4af37;
    color: #d4af37;
}

.sc-conversion-card .sc-card-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: #2d2a26;
}

/* Net Income Card */
.sc-net-card {
    border: 2px solid #d4af37;
}

.sc-net-card .sc-card-label {
    color: #5f5a56;
}

.sc-net-card .sc-card-value {
    color: #d4af37;
}

.sc-net-card .sc-card-unit {
    color: #5f5a56;
}

.sc-net-card .sc-card-copy {
    background: #faf9f7;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
}

.sc-net-card .sc-card-copy:hover {
    background: #f5f2ea;
    border-color: #d4af37;
    color: #d4af37;
}

.sc-net-card .sc-card-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: #2d2a26;
}

.sc-net-note {
    font-size: 12px;
    color: #5f5a56;
    margin-top: 8px;
    opacity: 0.8;
}

/* Insurance Breakdown */
.sc-insurance-section {
    background: #fffdf5;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
}

.sc-insurance-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-insurance-title i {
    color: #d4af37;
    font-size: 16px;
}

.sc-insurance-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-insurance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sc-insurance-item:hover {
    border-color: #d4af37;
}

.sc-insurance-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sc-insurance-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-insurance-name i {
    font-size: 14px;
    color: #d4af37;
}

.sc-insurance-rate {
    font-size: 11px;
    color: #5f5a56;
}

.sc-insurance-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-insurance-value {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
    font-family: 'Roboto Mono', monospace;
}

.sc-insurance-unit {
    font-size: 13px;
    color: #5f5a56;
}

.sc-insurance-copy {
    width: 28px;
    height: 28px;
    border: 1px solid #e8e4dc;
    background: #fff;
    color: #5f5a56;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.sc-insurance-copy:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.sc-insurance-copy.copied {
    border-color: #10b981;
    background: #10b981;
    color: #2d2a26;
}

/* Total Insurance */
.sc-insurance-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e8e4dc;
}

.sc-insurance-total .sc-insurance-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(201, 162, 39, 0.08) 100%);
    border-color: rgba(212, 175, 55, 0.3);
}

.sc-insurance-total .sc-insurance-name {
    color: #d4af37;
}

.sc-insurance-total .sc-insurance-value {
    color: #d4af37;
    font-size: 18px;
}

/* Disclaimer */
.sc-disclaimer {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}

.sc-disclaimer i {
    color: #d97706;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sc-disclaimer-text {
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
}

.sc-disclaimer-text strong {
    color: #78350f;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .sc-main-layout {
        gap: 20px;
    }

    .sc-type-section,
    .sc-input-section,
    .sc-toggle-section {
        padding: 14px;
    }

    .sc-card-value {
        font-size: 30px;
    }

    .sc-insurance-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sc-type-toggle {
        flex-direction: column;
    }

    .sc-type-btn {
        padding: 12px;
    }

    .sc-time-grid {
        grid-template-columns: 1fr;
    }

    .sc-card-value {
        font-size: 26px;
    }

    .sc-card-unit {
        font-size: 16px;
    }

    .sc-insurance-value {
        font-size: 13px;
    }
}
