/**
 * EV Charging Cost Calculator Styles
 * 전기차 충전 비용 계산기 전용 스타일 (2컬럼 레이아웃)
 *
 * @package Zipper
 */

/* ===== 2컬럼 레이아웃 (데스크탑) ===== */
.evc-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.evc-input-col {
    position: sticky;
    top: 20px;
}

.evc-result-col {
    min-width: 0;
}

/* 입력 섹션 */
.evc-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    margin-bottom: 12px;
}

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

.evc-input-title i {
    color: #d4af37;
}

.evc-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evc-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.evc-input-group input,
.evc-input-group select {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

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

.evc-input-group input::placeholder {
    color: #a09a94;
}

.evc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 입력 단위 표시 */
.evc-input-with-unit {
    position: relative;
}

.evc-input-with-unit input {
    padding-right: 45px;
}

.evc-input-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #a09a94;
    pointer-events: none;
}

/* 계산 모드 탭 */
.evc-mode-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.evc-mode-tab {
    flex: 1;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.evc-mode-tab:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.evc-mode-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
}

.evc-mode-tab i {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

/* 모드별 입력 영역 */
.evc-mode-content {
    display: none;
}

.evc-mode-content.active {
    display: block;
}

/* 요금 가이드 */
.evc-rate-guide {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: #5f5a56;
    line-height: 1.5;
}

.evc-rate-guide-title {
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.evc-rate-guide-title i {
    color: #d4af37;
}

.evc-rate-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dashed #e8e4dc;
}

.evc-rate-item:last-child {
    border-bottom: none;
}

.evc-rate-item .label {
    color: #5f5a56;
}

.evc-rate-item .value {
    font-weight: 600;
    color: #2d2a26;
}

/* 대기 상태 */
.evc-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #a09a94;
    background: #faf9f7;
    border: 1px dashed #e8e4dc;
    border-radius: 12px;
}

.evc-waiting i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.evc-waiting p {
    font-size: 14px;
}

/* ===== 결과 영역 ===== */

/* 메인 결과 카드 */
.evc-main-result {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 12px;
}

.evc-main-value {
    font-size: 44px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 6px;
}

.evc-main-value .unit {
    font-size: 20px;
    font-weight: 500;
    color: #b8860b;
}

.evc-main-label {
    font-size: 14px;
    color: #5f5a56;
    margin-bottom: 8px;
}

.evc-main-sub {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.evc-main-sub-item {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
}

.evc-main-sub-item .label {
    color: #5f5a56;
}

.evc-main-sub-item .value {
    font-weight: 600;
    color: #2d2a26;
    margin-left: 4px;
}

/* 결과 카드 그리드 */
.evc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.evc-result-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

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

.evc-result-card i {
    font-size: 20px;
    color: #d4af37;
    margin-bottom: 6px;
    display: block;
}

.evc-result-card .label {
    font-size: 11px;
    color: #5f5a56;
    margin-bottom: 4px;
}

.evc-result-card .value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
}

.evc-result-card .value .unit {
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
}

/* 월간/연간 예측 섹션 */
.evc-prediction-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(52, 152, 219, 0.03) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.evc-prediction-title {
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-prediction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.evc-prediction-item {
    text-align: center;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
}

.evc-prediction-item .label {
    font-size: 11px;
    color: #5f5a56;
    margin-bottom: 4px;
}

.evc-prediction-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #3498db;
}

.evc-prediction-item .value .unit {
    font-size: 11px;
    font-weight: 500;
}

/* 가솔린 비교 섹션 */
.evc-compare-section {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(39, 174, 96, 0.03) 100%);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    display: none;
}

.evc-compare-section.active {
    display: block;
}

.evc-compare-title {
    font-size: 13px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-compare-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.evc-compare-item {
    text-align: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    min-width: 80px;
}

.evc-compare-item .label {
    font-size: 10px;
    color: #5f5a56;
    margin-bottom: 2px;
}

.evc-compare-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
}

.evc-compare-item .value .unit {
    font-size: 10px;
    font-weight: 500;
}

.evc-compare-item.savings .value {
    color: #27ae60;
}

.evc-compare-separator {
    font-size: 18px;
    color: #27ae60;
}

/* 히스토리 섹션 */
.evc-history-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.evc-history-title {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.evc-history-title i {
    color: #d4af37;
    margin-right: 4px;
}

.evc-history-clear {
    font-size: 11px;
    color: #a09a94;
    cursor: pointer;
    transition: color 0.2s;
}

.evc-history-clear:hover {
    color: #e74c3c;
}

.evc-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.evc-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #faf9f7;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.evc-history-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

.evc-history-item .info {
    color: #5f5a56;
}

.evc-history-item .cost {
    font-weight: 600;
    color: #d4af37;
}

.evc-history-empty {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #a09a94;
}

/* 액션 버튼 */
.evc-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.evc-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #fff;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

.evc-btn i {
    font-size: 14px;
}

.evc-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.evc-btn-primary:hover {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #fff;
}

/* 면책조항 */
.evc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 8px;
    margin-top: 12px;
}

.evc-disclaimer i {
    color: #6c757d;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.evc-disclaimer-text {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.evc-disclaimer-text strong {
    color: #2d2a26;
}

/* 숨김 */
.evc-hidden {
    display: none !important;
}

/* ===== 반응형 - 태블릿 ===== */
@media (max-width: 900px) {
    .evc-main-layout {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }

    .evc-prediction-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 반응형 - 모바일 ===== */
@media (max-width: 768px) {
    .evc-main-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .evc-input-col {
        position: static;
    }

    .evc-input-section {
        padding: 14px;
    }

    .evc-main-result {
        padding: 14px 16px;
    }

    .evc-main-value {
        font-size: 38px;
    }

    .evc-result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .evc-prediction-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .evc-compare-content {
        gap: 8px;
    }

    .evc-actions {
        flex-wrap: wrap;
    }

    .evc-btn {
        min-width: calc(50% - 4px);
    }
}

/* ===== 반응형 - 작은 모바일 ===== */
@media (max-width: 480px) {
    .evc-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .evc-mode-tabs {
        flex-wrap: wrap;
    }

    .evc-mode-tab {
        min-width: calc(50% - 3px);
    }

    .evc-main-value {
        font-size: 32px;
    }

    .evc-main-value .unit {
        font-size: 16px;
    }

    .evc-result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .evc-result-card {
        padding: 10px;
    }

    .evc-result-card .value {
        font-size: 16px;
    }

    .evc-prediction-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .evc-prediction-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .evc-compare-content {
        flex-direction: column;
        gap: 6px;
    }

    .evc-compare-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .evc-compare-separator {
        transform: rotate(90deg);
    }

    .evc-main-sub {
        flex-direction: column;
        gap: 6px;
    }

    .evc-main-sub-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}
