/* calc/assets/css/calculators/christmas-lights.css */

/* --- Theme: Ice Winter --- */
:root {
    --ice-primary: #0284C7;
    --ice-light: #E0F2FE;
    --ice-gradient: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    --heat-color: #F59E0B;
}

.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: 16px; } /* Compact spacing as requested */
.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,
.input-wrapper select {
    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, box-shadow 0.2s;
    font-family: var(--font-main);
    background: #fff; appearance: none;
}
.input-wrapper input:focus, .input-wrapper select:focus {
    border-color: var(--ice-primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.suffix { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.select-arrow { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; display: flex; align-items: center; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Result Card (Ice Style) --- */
.card--ice { background: var(--ice-gradient); color: #fff; border: none; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

/* Killer Feature: Bulb Visualization */
.bulb-container {
    display: flex; flex-direction: column; align-items: center; margin-bottom: 24px;
    padding: 10px;
}
.bulb {
    width: 60px; height: 60px; border-radius: 50%;
    background: #fff; transition: all 0.5s ease;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    position: relative; margin-bottom: 12px;
}
/* Connector */
.bulb::after {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 12px; background: rgba(0,0,0,0.3); border-radius: 2px;
}

/* States */
.bulb.is-led {
    background: #E0F2FE;
    box-shadow: 0 0 25px 5px #7DD3FC; /* Blue Glow */
    transform: scale(1);
}
.bulb.is-hot {
    background: #FEF3C7;
    box-shadow: 0 0 35px 10px #FBBF24; /* Yellow/Orange Glow */
    animation: pulseHeat 2s infinite;
}
@keyframes pulseHeat {
    0% { transform: scale(1); box-shadow: 0 0 30px 5px #FBBF24; }
    50% { transform: scale(1.05); box-shadow: 0 0 45px 15px #F59E0B; }
    100% { transform: scale(1); box-shadow: 0 0 30px 5px #FBBF24; }
}

.bulb-status { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; opacity: 0.9; }

/* Result Rows */
.result-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.main-result { font-size: 18px; font-weight: 700; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 16px; }
.main-result .value { font-size: 32px; }
.secondary-result { font-size: 14px; opacity: 0.9; }
.result-divider { border: 0; margin: 0; }

.tip-box {
    background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; margin-top: 16px;
    font-size: 13px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.4;
}
.tip-box svg { flex-shrink: 0; margin-top: 2px; }

/* --- НОВЫЕ ИНФОРМАЦИОННЫЕ БЛОКИ (Как в Fuel, но без инлайнов) --- */
.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; }

/* Заголовки */
.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;
}
.blue-icon svg { color: #0284C7; }
.orange-icon svg { color: #F59E0B; }
.green-icon svg { color: #10B981; }
.red-icon svg { color: #E11D48; }

.small-heading { margin-top: 40px; margin-bottom: 16px; font-size: 20px; }
.small-heading .header-icon { width: 40px; height: 40px; }
.small-heading .header-icon svg { width: 20px; height: 20px; }

.intro-text { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }

/* Формулы */
.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;
    transition: all 0.3s ease; display: flex; flex-direction: column;
}
.formula-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.formula-header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.formula-card h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-primary); }

.badge-blue { background: #0284C7; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-green { background: #10B981; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.math-expression {
    background: #F0F9FF; border: 1px solid #E0F2FE; padding: 12px 16px;
    border-radius: 12px; font-weight: 700; color: #0284C7; text-align: center;
    margin-bottom: 16px; font-size: 15px;
}
.formula-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 48px 0; }

/* Описание + Списки (Исправлено: стили перенесены из инлайнов) */
.calc-description p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; }
.calc-description strong { color: var(--text-primary); }

.calc-description ul {
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-left: 20px;
    line-height: 1.6;
}
.calc-description li { margin-bottom: 8px; }

/* FAQ (Ice Style) */
.faq-ice-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden; transition: all 0.2s ease;
}
.faq-ice-style .faq-item[open] { border-color: var(--ice-primary); box-shadow: 0 4px 20px rgba(2, 132, 199, 0.1); }

.faq-ice-style summary.faq-question {
    padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text-primary);
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    transition: background 0.2s;
}
.faq-ice-style summary.faq-question:hover { background-color: #F9FAFB; }
.faq-ice-style .faq-item[open] summary.faq-question { color: var(--ice-primary); background: var(--ice-light); }

.faq-question::after { content: '+'; font-size: 20px; color: var(--text-secondary); }
.faq-ice-style .faq-item[open] summary.faq-question::after { content: '−'; color: var(--ice-primary); }

.faq-answer { padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }

/* Mobile Adaptation (Полная копия логики fuel.css) */
@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    
    .icon-heading { font-size: 20px; gap: 12px; margin-bottom: 20px; }
    .header-icon { width: 40px; height: 40px; border-radius: 12px; }
    .header-icon svg { width: 20px; height: 20px; }
    
    .formula-card { padding: 24px; 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; }
}