/**
 * Exposure Triangle Converter Styles
 * 노출 삼각형 변환기 전용 스타일
 *
 * @package Zipper
 */

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

.etrc-intro {
    display: grid;
    gap: 8px;
}

#etrcCalculator .tool-layout-split {
    grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

#etrcCalculator .tool-layout-input {
    max-width: 350px;
}

#etrcCalculator .tool-layout-result {
    min-width: 0;
}

.etrc-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5f5a56;
}

.etrc-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    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;
}

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

.etrc-section-head,
.etrc-section-head-simple,
.etrc-input-head,
.etrc-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

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

.etrc-section-title i,
.etrc-subtitle i,
.etrc-live-pill i,
.etrc-disclaimer i,
.etrc-waiting i {
    color: #6280d7;
}

.etrc-live-pill,
.etrc-input-state,
.etrc-status-badge,
.etrc-scene-pill,
.etrc-meta-pill,
.etrc-unit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.etrc-live-pill {
    padding: 6px 10px;
    background: rgba(98, 128, 215, 0.12);
    color: #3553a3;
    font-size: 12px;
    font-weight: 700;
}

.etrc-mode-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.etrc-recommendation-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.etrc-mode-btn,
.etrc-recommendation-btn {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e4e7f0;
    border-radius: 12px;
    background: #fff;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.etrc-mode-btn:hover,
.etrc-mode-btn:focus-visible,
.etrc-mode-btn.is-active,
.etrc-recommendation-btn:hover,
.etrc-recommendation-btn:focus-visible,
.etrc-recommendation-btn.is-active {
    outline: none;
    border-color: #6280d7;
    background: linear-gradient(135deg, #eef3ff 0%, #e3ebff 100%);
    color: #23418e;
    box-shadow: 0 4px 12px rgba(98, 128, 215, 0.14);
}

.etrc-input-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.etrc-input-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
}

.etrc-input-card.is-result {
    background: linear-gradient(135deg, #f6f9ff 0%, #eef3ff 100%);
    border-color: #d5def8;
}

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

.etrc-input-state {
    padding: 4px 9px;
    background: #f5f4f1;
    color: #6f6962;
    font-size: 11px;
    font-weight: 700;
}

.etrc-input-card.is-result .etrc-input-state {
    background: rgba(98, 128, 215, 0.14);
    color: #28478f;
}

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

.etrc-amount-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 46px;
    padding: 11px 13px;
    font-size: 15px;
    font-weight: 500;
    color: #2d2a26;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.etrc-amount-input:hover {
    border-color: #b9c8f2;
}

.etrc-amount-input:focus {
    outline: none;
    border-color: #6280d7;
    box-shadow: 0 0 0 3px rgba(98, 128, 215, 0.12);
}

.etrc-amount-input::placeholder {
    color: #c4c0bc;
}

.etrc-amount-input[readonly] {
    background: #f7f9ff;
    color: #345094;
}

.etrc-amount-input[aria-invalid="true"] {
    border-color: #cf6d6d;
    box-shadow: 0 0 0 3px rgba(207, 109, 109, 0.12);
}

.etrc-unit-chip {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #e8e4dc;
    background: #faf9f7;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 600;
}

.etrc-input-card.is-result .etrc-unit-chip {
    border-color: #d5def8;
    background: rgba(255, 255, 255, 0.72);
    color: #28478f;
}

.etrc-input-hint,
.etrc-table-help {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7a756d;
}

.etrc-recommendation-lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5f5a56;
}

.etrc-preset-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.etrc-preset-btn {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    background: #fff;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.etrc-preset-btn:hover,
.etrc-preset-btn.is-active {
    border-color: #6280d7;
    background: rgba(98, 128, 215, 0.1);
    color: #23418e;
}

.etrc-btn-row {
    display: grid;
    gap: 8px;
}

.etrc-btn-row .tool-btn {
    width: 100%;
}

.etrc-tip-section,
.etrc-reference-section {
    gap: 12px;
}

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

.etrc-waiting {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    border: 1px solid #d7dff6;
    border-radius: 12px;
    background: #f6f9ff;
    color: #4260b1;
    text-align: center;
}

.etrc-waiting.is-error {
    border-color: #f1d6bf;
    background: #fff8f1;
    color: #9e6f46;
}

.etrc-waiting i {
    font-size: 28px;
    opacity: 0.72;
}

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

.etrc-result-hero {
    display: grid;
    gap: 10px;
    background: linear-gradient(135deg, #f6f9ff 0%, #eef3ff 100%);
    border: 1px solid #d5def8;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(98, 128, 215, 0.14);
}

.etrc-status-badge,
.etrc-scene-pill,
.etrc-meta-pill {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.etrc-status-badge {
    background: rgba(98, 128, 215, 0.12);
    color: #28478f;
}

.etrc-scene-pill {
    background: rgba(255, 255, 255, 0.72);
    color: #345094;
    border: 1px solid rgba(98, 128, 215, 0.16);
}

.etrc-hero-expression {
    font-size: 14px;
    font-weight: 700;
    color: #4e628f;
}

.etrc-hero-value {
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #1f3262;
}

.etrc-hero-label {
    font-size: 13px;
    font-weight: 700;
    color: #5b6f99;
}

.etrc-hero-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4c5872;
}

.etrc-formula-box {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(98, 128, 215, 0.12);
    color: #2d466f;
    font-size: 13px;
    line-height: 1.6;
    word-break: keep-all;
}

.etrc-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.etrc-meta-pill {
    background: rgba(255, 255, 255, 0.76);
    color: #36528f;
}

.etrc-meta-pill.is-warning {
    background: rgba(255, 240, 217, 0.85);
    color: #926400;
}

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

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

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

.etrc-kpi-value {
    min-width: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #2d2a26;
    word-break: keep-all;
}

.etrc-kpi-value-scene {
    font-size: 16px;
    color: #23418e;
}

.etrc-compensation-section {
    gap: 10px;
}

.etrc-compensation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.etrc-comp-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e8e4dc;
    background: #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.05);
}

.etrc-comp-card.is-bright {
    background: linear-gradient(135deg, #f7faff 0%, #eef3ff 100%);
    border-color: #d5def8;
}

.etrc-comp-card.is-dark {
    background: linear-gradient(135deg, #fffaf5 0%, #fdf2e5 100%);
    border-color: #f1dec7;
}

.etrc-comp-card.is-placeholder {
    background: #fbfaf8;
    border-style: dashed;
    box-shadow: none;
}

.etrc-comp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.etrc-comp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.etrc-comp-badge.is-bright {
    background: rgba(98, 128, 215, 0.12);
    color: #28478f;
}

.etrc-comp-badge.is-dark {
    background: rgba(235, 181, 120, 0.18);
    color: #9a5a18;
}

.etrc-comp-direction,
.etrc-comp-meta {
    font-size: 12px;
    line-height: 1.5;
    color: #6f6962;
}

.etrc-comp-value {
    min-width: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #2d2a26;
    word-break: keep-all;
}

.etrc-comp-note {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #7a756d;
}

.etrc-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.etrc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.etrc-table th,
.etrc-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #efeae2;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
    color: #4f4944;
}

.etrc-table thead th {
    font-size: 12px;
    font-weight: 700;
    color: #7a756d;
    background: #faf9f7;
}

.etrc-table tbody tr.is-current {
    background: #f6f9ff;
}

.etrc-reference-list {
    padding-left: 0;
    list-style: none;
}

.etrc-reference-list li {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ebe7df;
    background: #fff;
}

.etrc-reference-list li.is-active {
    border-color: #cfd9fb;
    background: #f7f9ff;
}

.etrc-reference-ev {
    font-size: 12px;
    font-weight: 700;
    color: #36528f;
}

.etrc-reference-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.etrc-reference-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #5f5a56;
}

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

@media (max-width: 960px) {
    #etrcCalculator .tool-layout-split {
        grid-template-columns: 1fr;
    }

    #etrcCalculator .tool-layout-input {
        max-width: 100%;
    }
}

@media (max-width: 680px) {
    .etrc-mode-group,
    .etrc-recommendation-group,
    .etrc-preset-list,
    .etrc-kpi-grid {
        grid-template-columns: 1fr;
    }

    .etrc-compensation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .etrc-table-wrap {
        overflow-x: hidden;
    }

    .etrc-table {
        min-width: 0;
        table-layout: fixed;
    }

    .etrc-table th,
    .etrc-table td {
        padding: 9px 7px;
        font-size: 12px;
        line-height: 1.45;
        vertical-align: top;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .etrc-table th:nth-child(1),
    .etrc-table td:nth-child(1) {
        width: 17%;
    }

    .etrc-table th:nth-child(2),
    .etrc-table td:nth-child(2) {
        width: 22%;
    }

    .etrc-table th:nth-child(3),
    .etrc-table td:nth-child(3) {
        width: 18%;
    }

    .etrc-table th:nth-child(4),
    .etrc-table td:nth-child(4) {
        width: 43%;
    }
}

@media (max-width: 480px) {
    #etrcCalculator,
    #etrcCalculator .tool-layout-split,
    #etrcCalculator .tool-layout-input,
    #etrcCalculator .tool-layout-result,
    .etrc-section,
    .etrc-result-hero {
        max-width: 100%;
        overflow-x: hidden;
    }

    .etrc-section,
    .etrc-result-hero {
        padding: 16px;
    }

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

    .etrc-unit-chip {
        width: fit-content;
    }

    .etrc-compensation-grid {
        grid-template-columns: 1fr;
    }

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

@media (prefers-reduced-motion: reduce) {
    .etrc-section,
    .etrc-mode-btn,
    .etrc-preset-btn,
    .etrc-recommendation-btn,
    .etrc-amount-input {
        transition: none !important;
    }
}
