/**
 * Heat Index Calculator Styles
 * 열지수 계산기 전용 스타일
 *
 * @package Zipper
 */

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

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

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

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

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

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

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

.hic-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

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

.hic-section-title i,
.hic-subtitle i,
.hic-live-pill i {
    color: #d4af37;
}

.hic-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hic-input-grid,
.hic-preset-list,
.hic-kpi-grid,
.hic-risk-grid {
    display: grid;
    gap: 10px;
}

.hic-input-grid {
    grid-template-columns: 1fr;
}

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

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

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

.hic-unit-btn,
.hic-preset-btn {
    border: 1px solid #e8e4dc;
    background: #fff;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hic-unit-btn {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

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

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

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

.hic-amount-input:hover {
    border-color: #d4c67a;
}

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

.hic-amount-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

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

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

.hic-preset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hic-preset-btn {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

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

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

.hic-btn-group.is-realtime {
    display: grid;
}

.hic-btn-group .tool-btn {
    width: 100%;
}

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

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

.hic-waiting {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 18px 16px;
    border: 1px solid #f1d6bf;
    border-radius: 12px;
    background: #fff8f1;
    color: #9e6f46;
}

.hic-waiting i {
    font-size: 28px;
    color: #d4af37;
    opacity: 0.78;
}

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

.hic-result-hero {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #eadfb8;
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.14);
}

.hic-result-hero.is-normal {
    border-color: #d9e7cb;
    background: linear-gradient(135deg, #fbfcf7 0%, #f4f8ec 100%);
    box-shadow: 0 10px 24px rgba(126, 160, 99, 0.12);
}

.hic-result-hero.is-hot,
.hic-result-hero.is-very-hot,
.hic-result-hero.is-extreme {
    border-color: #efcfb6;
    background: linear-gradient(135deg, #fff9f2 0%, #fff2e6 100%);
}

.hic-result-hero.is-very-hot,
.hic-result-hero.is-extreme {
    box-shadow: 0 10px 24px rgba(199, 82, 42, 0.16);
}

.hic-result-hero.is-extreme {
    border-color: #efb99f;
    background: linear-gradient(135deg, #fff5ef 0%, #ffe9df 100%);
}

.hic-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hic-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(212, 175, 55, 0.14);
    color: #8a6500;
}

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

.hic-status-badge.is-normal {
    background: rgba(126, 160, 99, 0.16);
    color: #4f6a39;
}

.hic-status-badge.is-warm {
    background: rgba(212, 175, 55, 0.16);
    color: #8a6500;
}

.hic-status-badge.is-hot {
    background: rgba(225, 130, 58, 0.16);
    color: #a85c16;
}

.hic-status-badge.is-very-hot,
.hic-status-badge.is-extreme,
.hic-status-badge.is-warning {
    background: rgba(199, 82, 42, 0.16);
    color: #b14a23;
}

.hic-hero-meta {
    font-size: 12px;
    color: #7a756d;
}

.hic-hero-value {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #2d2a26;
}

.hic-hero-value .unit {
    margin-left: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #8a6500;
}

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

.hic-hero-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #5f5a56;
}

.hic-formula-box {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(232, 228, 220, 0.96);
    font-size: 13px;
    line-height: 1.55;
    color: #5f5a56;
}

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

.hic-kpi-card,
.hic-risk-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hic-kpi-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e8e4dc;
    background: #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.05);
}

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

.hic-kpi-value {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #2d2a26;
}

.hic-risk-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hic-risk-card {
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid #e8e4dc;
    background: #faf9f7;
    color: #5f5a56;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hic-risk-card strong {
    font-size: 14px;
    color: #2d2a26;
}

.hic-risk-card span {
    font-size: 12px;
    line-height: 1.45;
}

.hic-risk-card.is-active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
}

.hic-risk-card.is-active strong {
    color: #8a6500;
}

.hic-risk-card.is-active.is-normal {
    border-color: #9cbe7e;
    background: rgba(126, 160, 99, 0.14);
    color: #4f6a39;
}

.hic-risk-card.is-active.is-normal strong {
    color: #4f6a39;
}

.hic-risk-card.is-active.is-hot {
    border-color: #e1823a;
    background: rgba(225, 130, 58, 0.16);
    color: #a85c16;
}

.hic-risk-card.is-active.is-hot strong {
    color: #a85c16;
}

.hic-risk-card.is-active.is-very-hot,
.hic-risk-card.is-active.is-extreme {
    border-color: #c7522a;
    background: rgba(199, 82, 42, 0.16);
    color: #b14a23;
}

.hic-risk-card.is-active.is-very-hot strong,
.hic-risk-card.is-active.is-extreme strong {
    color: #b14a23;
}

.hic-risk-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5f5a56;
}

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

.hic-summary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
}

.hic-summary-table th,
.hic-summary-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #ede7dc;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.hic-summary-table th {
    width: 42%;
    font-weight: 600;
    color: #5f5a56;
}

.hic-summary-table td {
    font-weight: 700;
    color: #2d2a26;
}

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

.hic-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #efe5d1;
    background: #fffaf3;
    color: #6c665f;
    font-size: 13px;
    line-height: 1.6;
}

.hic-disclaimer i {
    color: #d4af37;
    font-size: 16px;
    margin-top: 1px;
}

@media (max-width: 1024px) {
    .hic-risk-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    #hicCalculator .tool-layout-input {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .hic-section,
    .hic-result-hero {
        padding: 18px;
    }

    .hic-kpi-grid,
    .hic-risk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 480px) {
    .hic-unit-toggle,
    .hic-preset-list,
    .hic-kpi-grid,
    .hic-risk-grid {
        grid-template-columns: 1fr;
    }

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

    .hic-summary-table th,
    .hic-summary-table td {
        padding: 11px 10px;
        font-size: 13px;
    }
}

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

    .hic-section:hover,
    .hic-unit-btn:hover,
    .hic-preset-btn:hover {
        transform: none !important;
    }
}
