/**
 * Wind Chill Calculator Styles
 * 풍한 계산기 전용 스타일
 *
 * @package Zipper
 */

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

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

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

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

#wccCalculator .tool-layout-result,
.wcc-kpi-grid,
.wcc-risk-grid,
.wcc-table-wrap,
.wcc-summary-table {
    min-width: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

.wcc-toggle-group.is-wind {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

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

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

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

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

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

.wcc-unit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    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;
}

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

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

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

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

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

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

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

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

.wcc-waiting {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 18px 16px;
    border: 1px solid #d6e4f5;
    border-radius: 12px;
    background: #f5f9ff;
    color: #466b9e;
}

.wcc-waiting i {
    font-size: 20px;
}

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

.wcc-result-hero {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #dbe4f2;
    background: linear-gradient(135deg, #eef6ff 0%, #f4f8ff 42%, #faf7ef 100%);
    box-shadow: 0 10px 24px rgba(109, 146, 205, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wcc-result-hero:hover {
    box-shadow: 0 12px 28px rgba(109, 146, 205, 0.16);
    transform: translateY(-1px);
}

.wcc-result-hero.is-low {
    border-color: #dbe4f2;
    background: linear-gradient(135deg, #eff7ff 0%, #f7fbff 46%, #faf7ef 100%);
}

.wcc-result-hero.is-moderate {
    border-color: #d3def0;
    background: linear-gradient(135deg, #eef5ff 0%, #f7f5ef 100%);
}

.wcc-result-hero.is-high {
    border-color: #d7d9ef;
    background: linear-gradient(135deg, #edf1ff 0%, #f9f1e8 100%);
}

.wcc-result-hero.is-very-high {
    border-color: #d7d3ef;
    background: linear-gradient(135deg, #edeeff 0%, #faeee4 100%);
}

.wcc-result-hero.is-severe {
    border-color: #dccfe8;
    background: linear-gradient(135deg, #efedff 0%, #faebe1 100%);
}

.wcc-result-hero.is-extreme {
    border-color: #e1cfe2;
    background: linear-gradient(135deg, #f1ebff 0%, #fbe7df 100%);
}

.wcc-result-hero.is-advisory {
    border-color: #d6e3f5;
    background: linear-gradient(135deg, #f3f8ff 0%, #f9fbff 40%, #faf7ef 100%);
}

.wcc-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.wcc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

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

.wcc-status-badge.is-low {
    background: rgba(101, 145, 201, 0.12);
    color: #446b9d;
}

.wcc-status-badge.is-moderate {
    background: rgba(118, 134, 170, 0.12);
    color: #55627f;
}

.wcc-status-badge.is-high {
    background: rgba(170, 129, 102, 0.14);
    color: #8a5c40;
}

.wcc-status-badge.is-very-high,
.wcc-status-badge.is-severe,
.wcc-status-badge.is-extreme {
    background: rgba(157, 105, 130, 0.14);
    color: #7a4960;
}

.wcc-status-badge.is-advisory {
    background: rgba(109, 146, 205, 0.12);
    color: #466b9e;
}

.wcc-status-badge.is-warning {
    background: rgba(224, 143, 54, 0.14);
    color: #9b5e1a;
}

.wcc-hero-meta {
    font-size: 12px;
    color: #6d6a64;
    line-height: 1.5;
    text-align: right;
}

.wcc-hero-value {
    font-size: clamp(34px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #22314a;
}

.wcc-hero-value .unit {
    margin-left: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #60718b;
}

.wcc-hero-label {
    font-size: 14px;
    font-weight: 700;
    color: #42516a;
}

.wcc-hero-summary,
.wcc-formula-box,
.wcc-risk-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.wcc-hero-summary {
    color: #465268;
}

.wcc-formula-box {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(109, 146, 205, 0.2);
    background: rgba(255, 255, 255, 0.58);
    color: #4a5c78;
}

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

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

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

.wcc-kpi-value {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #2d2a26;
}

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

.wcc-risk-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e8e4dc;
    background: #fff;
    color: #5f5a56;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.wcc-risk-card span {
    font-size: 12px;
    line-height: 1.5;
}

.wcc-risk-card.is-active {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(109, 146, 205, 0.12);
}

.wcc-risk-card.is-low {
    border-color: #cfe0f3;
    background: #f4f9ff;
}

.wcc-risk-card.is-moderate {
    border-color: #d7dfec;
    background: #f7f8fb;
}

.wcc-risk-card.is-high {
    border-color: #ecd8cb;
    background: #fff7f1;
}

.wcc-risk-card.is-very-high,
.wcc-risk-card.is-severe,
.wcc-risk-card.is-extreme {
    border-color: #ebd8df;
    background: #fff5f8;
}

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

.wcc-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wcc-summary-table th,
.wcc-summary-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee8df;
    text-align: left;
    vertical-align: top;
}

.wcc-summary-table th {
    width: 132px;
    color: #7a756d;
    font-weight: 600;
}

.wcc-summary-table td {
    color: #2d2a26;
    font-weight: 600;
}

.wcc-summary-table tr:last-child th,
.wcc-summary-table tr:last-child td {
    border-bottom: none;
}

.wcc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e8e4dc;
    background: #fcfaf6;
    color: #6a645c;
    font-size: 12px;
    line-height: 1.6;
}

.wcc-disclaimer i {
    margin-top: 1px;
    color: #d4af37;
}

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

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

@media (max-width: 900px) {
    .wcc-amount-input:not([type="radio"]):not([type="checkbox"]) {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
    .wcc-preset-list,
    .wcc-kpi-grid,
    .wcc-risk-grid {
        grid-template-columns: 1fr;
    }

    .wcc-summary-table th {
        width: 112px;
    }

    .wcc-hero-meta {
        text-align: left;
    }
}

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

    .wcc-toggle-group.is-wind {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcc-section,
    .wcc-amount-input,
    .wcc-temp-unit-btn,
    .wcc-wind-unit-btn,
    .wcc-preset-btn,
    .wcc-result-hero,
    .wcc-risk-card {
        transition: none !important;
    }

    .wcc-section:hover,
    .wcc-result-hero:hover,
    .wcc-risk-card.is-active {
        transform: none !important;
    }
}
