/* calc/assets/css/calculators/mulled-wine.css */

/* --- Theme: Mulled Wine --- */
:root {
    --wine-primary: #9F1239; /* Rose 800 */
    --wine-light: #FFF1F2;   /* Rose 50 */
    --wine-gradient: linear-gradient(135deg, #BE123C 0%, #881337 100%);
    
    /* Liquid Colors */
    --liquid-red: #9F1239;
    --liquid-white: #FCD34D;
    --liquid-juice: #7F1D1D;
}

.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 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 select:focus {
    border-color: var(--wine-primary); box-shadow: 0 0 0 3px rgba(159, 18, 57, 0.1);
}

.select-arrow { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; display: flex; align-items: center; }

/* Range Slider */
.label-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.range-val { font-weight: 700; color: var(--wine-primary); }
.range-wrapper { padding: 0 4px; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%;
    background: var(--wine-primary); cursor: pointer; margin-top: -10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); border: 2px solid #fff;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #E5E7EB; border-radius: 2px;
}
.range-steps {
    display: flex; justify-content: space-between; margin-top: 12px;
    font-size: 11px; color: var(--text-secondary);
}

/* --- Result Card (Wine Style) --- */
.card--wine { background: var(--wine-gradient); color: #fff; border: none; overflow: hidden; position: relative; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

/* Killer Feature: Mug Animation */
.mug-visual {
    height: 140px; display: flex; align-items: flex-end; justify-content: center;
    margin-bottom: 24px; position: relative;
}

.mug-body {
    width: 100px; height: 110px;
    border: 4px solid rgba(255,255,255,0.8);
    border-radius: 0 0 16px 16px;
    position: relative;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(2px);
    overflow: hidden;
    z-index: 2;
}

.mug-handle {
    width: 30px; height: 50px;
    border: 4px solid rgba(255,255,255,0.8);
    border-left: none;
    border-radius: 0 16px 16px 0;
    position: absolute; right: 50%; top: 50px;
    margin-right: -84px; /* Center offset + width */
}

.mug-liquid {
    position: absolute; bottom: 0; left: 0; width: 100%;
    height: 50%; /* Dynamic */
    background: var(--liquid-red);
    transition: height 0.5s ease, background-color 0.5s ease;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
/* Waves on top of liquid */
.mug-liquid::after {
    content: ''; position: absolute; top: -5px; left: 0; width: 100%; height: 10px;
    background: inherit; border-radius: 50%; opacity: 0.5;
}

/* Steam Animation */
.steam-container {
    position: absolute; top: 0; width: 100px; height: 40px;
    display: flex; justify-content: center; gap: 10px;
    z-index: 1; pointer-events: none;
}
.steam {
    width: 4px; background: rgba(255,255,255,0.4); border-radius: 4px;
    animation: steamRise 2s infinite ease-out; opacity: 0;
}
.s1 { height: 20px; animation-delay: 0.5s; }
.s2 { height: 30px; animation-delay: 0s; }
.s3 { height: 25px; animation-delay: 1s; }

@keyframes steamRise {
    0% { transform: translateY(0) scaleY(1); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-30px) scaleY(1.5); opacity: 0; }
}

/* Result List */
.result-header { text-align: center; margin-bottom: 24px; }
.result-header h2 { font-size: 16px; opacity: 0.9; margin-bottom: 4px; }
.total-liters { font-size: 32px; font-weight: 800; line-height: 1; }

.ingredients-list { list-style: none; padding: 0; margin: 0; }
.ingredients-list li {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 15px;
}
.ingredients-list li:last-child { border-bottom: none; }
.ing-amount { font-weight: 700; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 20px 0; }

.cost-estimate {
    background: rgba(0,0,0,0.2); padding: 12px; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
}

/* --- INFO SECTION (Styles from Fuel.css) --- */
.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 with Icons */
.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; }

/* Icon Colors */
.red-icon svg { color: var(--wine-primary); }

/* Formulas Grid */
.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 cubic-bezier(0.25, 0.8, 0.25, 1);
    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); line-height: 1.3;
}

/* Badges */
.badge-red {
    background: #FFE4E6; color: #BE123C; padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block;
}
.badge-orange {
    background: #FFEDD5; color: #C2410C; padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block;
}

/* Math Block */
.math-expression {
    background: #FFF1F2; border: 1px solid #FFE4E6; padding: 12px 16px;
    border-radius: 12px; font-weight: 700; color: #881337; 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; font-weight: 500;
}

/* Soft Divider */
.soft-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 48px 0;
}

/* Description & Lists */
.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 (Wine Style) */
.faq-wine-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden; transition: all 0.2s ease;
}
.faq-wine-style .faq-item[open] {
    border-color: var(--wine-primary); box-shadow: 0 4px 20px rgba(136, 19, 55, 0.1);
}

.faq-wine-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; transition: background 0.2s;
}
.faq-wine-style summary.faq-question:hover { background-color: #F9FAFB; }
.faq-wine-style .faq-item[open] summary.faq-question {
    color: var(--wine-primary); background: #FFF1F2;
}

.faq-question::after {
    content: '+'; font-size: 20px; color: var(--text-secondary); font-weight: 400; line-height: 1;
}
.faq-wine-style .faq-item[open] summary.faq-question::after {
    content: '−'; color: var(--wine-primary);
}

.faq-answer {
    padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px;
}

/* --- MOBILE ADAPTATION (Full Copy from Fuel.css) --- */
@media (max-width: 900px) {
    /* Stack Grid */
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    
    /* Smaller Headings */
    .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; }
    
    /* Center Cards Content */
    .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; }
}