/* calc/assets/css/calculators/wind-chill.css */

/* --- Theme: Frost / Wind --- */
:root {
    --frost-primary: #2563EB; /* Blue 600 */
    --frost-accent: #3B82F6;  /* Blue 500 */
    --frost-bg: #EFF6FF;      /* Blue 50 */
    --face-skin: #FFD6A5;     /* Warm Skin */
    --face-cold: #DBEAFE;     /* Frozen Blue */
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* Grid */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Inputs */
.calc-inputs { gap: 24px; }
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input {
    width: 100%; padding: 16px; padding-right: 40px;
    font-size: 16px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s;
    font-family: var(--font-main); background: #fff;
}
.input-wrapper input:focus {
    border-color: var(--frost-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.suffix { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* Range Slider */
.range-wrapper { margin-top: 10px; padding: 0 4px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%;
    background: var(--frost-primary); cursor: pointer; margin-top: -8px;
    border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #E5E7EB; border-radius: 2px;
}

/* --- Result Card --- */
.card--freeze { 
    background: linear-gradient(135deg, #BFDBFE 0%, #3B82F6 100%); 
    color: #fff; border: none; overflow: hidden; position: relative; 
}
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

/* Killer Feature: Face Animation */
.face-container {
    height: 160px; display: flex; align-items: center; justify-content: center;
    position: relative; margin-bottom: 24px;
}

.face {
    width: 100px; height: 100px; border-radius: 50%;
    background: var(--face-skin);
    position: relative; transition: background-color 1s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* Eyes */
.eyes { display: flex; gap: 24px; margin-top: -10px; }
.eye { 
    width: 12px; height: 12px; background: #1E293B; border-radius: 50%; 
    position: relative; animation: blink 4s infinite;
}
@keyframes blink { 95% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } 100% { transform: scaleY(1); } }

/* Mouth */
.mouth {
    width: 24px; height: 12px; 
    border-radius: 0 0 12px 12px; 
    background: #991B1B;
    margin-top: 12px;
    transition: all 0.5s ease;
}
/* Sad mouth state */
.face.is-cold .mouth {
    border-radius: 12px 12px 0 0; margin-top: 16px; width: 16px; height: 8px;
    background: #334155;
}
/* Shivering */
.face.is-freezing {
    animation: shiver 0.2s infinite;
}
@keyframes shiver { 0% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } 100% { transform: translateX(0); } }

/* Cheeks */
.cheeks::before, .cheeks::after {
    content: ''; position: absolute; top: 55px; width: 16px; height: 8px;
    background: #EF4444; border-radius: 50%; opacity: 0.3;
}
.cheeks::before { left: 15px; }
.cheeks::after { right: 15px; }

/* Frost Overlay */
.frost-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.6) 100%);
    opacity: 0; transition: opacity 1s ease; pointer-events: none; z-index: 3;
}

/* Wind Animation */
.wind-effect {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    pointer-events: none; z-index: 4; opacity: 0; transition: opacity 0.5s;
}
.wind-line {
    position: absolute; height: 2px; background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: windBlow 1s linear infinite;
}
.w1 { width: 40px; top: 40px; left: -40px; animation-delay: 0s; }
.w2 { width: 60px; top: 80px; left: -60px; animation-delay: 0.3s; }
.w3 { width: 30px; top: 110px; left: -30px; animation-delay: 0.6s; }

@keyframes windBlow {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateX(300px); opacity: 0; }
}

/* Data */
.result-data { text-align: center; }
.result-data h2 { font-size: 14px; text-transform: uppercase; color: rgba(255,255,255,0.9); letter-spacing: 1px; margin-bottom: 8px; }
.temp-big { font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 8px; text-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.temp-diff { font-size: 15px; opacity: 0.9; font-weight: 600; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.3); margin: 24px 0; }

.risk-box {
    background: rgba(255,255,255,0.2); border-radius: 12px; padding: 12px;
    display: flex; gap: 12px; align-items: center; text-align: left;
    backdrop-filter: blur(4px);
}
.risk-icon { font-size: 24px; }
.risk-text { font-size: 13px; line-height: 1.4; font-weight: 500; }

/* --- INFO WRAPPER STYLES --- */
.info-wrapper {
    padding: 60px 0 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.info-wrapper .container { max-width: 800px; margin: 0 auto; }

/* Headings */
.icon-heading {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
    font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1.3;
}
.header-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px; background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); flex-shrink: 0; margin-top: -4px;
}
.header-icon svg { width: 24px; height: 24px; stroke-width: 2px; }

.blue-icon svg { color: var(--frost-primary); }

/* Formulas */
.formulas-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px;
}
.formula-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); border-radius: 24px; padding: 24px;
    display: flex; flex-direction: column; transition: transform 0.3s;
}
.formula-card:hover { transform: translateY(-4px); }

.formula-header { margin-bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.formula-card h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-primary); }

.badge-blue { background: #EFF6FF; color: #2563EB; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-dark { background: #F1F5F9; color: #1E293B; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.math-expression {
    background: #F8FAFC; border: 1px solid #E2E8F0; padding: 12px;
    border-radius: 12px; font-weight: 700; color: #1E293B; text-align: center;
    margin-bottom: 16px; font-size: 15px; font-family: monospace;
}
.formula-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* Divider */
.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 48px 0; }

/* Article */
.calc-description p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; }
.calc-description ul { color: var(--text-secondary); margin-bottom: 24px; padding-left: 20px; line-height: 1.6; }
.calc-description li { margin-bottom: 8px; }

/* FAQ */
.faq-blue-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden; transition: all 0.2s;
}
.faq-blue-style .faq-item[open] { border-color: var(--frost-primary); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }

.faq-blue-style summary.faq-question {
    padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text-primary);
    list-style: none; position: relative; display: flex; justify-content: space-between;
    align-items: center;
}
.faq-blue-style .faq-item[open] summary.faq-question { color: var(--frost-primary); background: #EFF6FF; }

.faq-question::after { content: '+'; font-size: 20px; color: var(--text-secondary); }
.faq-blue-style .faq-item[open] summary.faq-question::after { content: '−'; color: var(--frost-primary); }

.faq-answer { padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }

/* Mobile Adaptation */
@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; }
    .icon-heading { font-size: 20px; }
    .header-icon { width: 40px; height: 40px; }
    .header-icon svg { width: 20px; height: 20px; }
    .formula-card { text-align: center; align-items: center; }
    .formula-header { align-items: center; width: 100%; }
    .math-expression { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    .info-wrapper { margin-top: 40px; padding-top: 40px; }
}