/* ========================================
   The Local Guy - Thermometer
   ======================================== */

/* Thermometer */
.thermometer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    height: 220px;
}

.thermometer-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 10px 0;
}

.scale-mark {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-align: right;
    line-height: 1;
}

.scale-mark.zero {
    color: var(--color-accent);
    font-weight: 700;
}

.thermometer-tube {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.thermometer-glass {
    width: 24px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.thermometer-mercury {
    position: absolute;
    bottom: 0;
    left: 2px;
    right: 2px;
    height: 50%;
    background: linear-gradient(to top, #ef4444, #f87171);
    border-radius: 8px 8px 0 0;
    transition: height 1s ease-out, background 0.5s ease;
}

/* Cold temperatures - blue mercury */
.thermometer-mercury.cold {
    background: linear-gradient(to top, #3b82f6, #60a5fa);
}

/* Zero line indicator */
.thermometer-zero-line {
    position: absolute;
    top: 50%;
    left: -4px;
    right: -4px;
    height: 2px;
    background: var(--color-accent);
    z-index: 2;
}

.thermometer-zero-line::before {
    content: '';
    position: absolute;
    left: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.thermometer-bulb {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-top: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thermometer-bulb-fill {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    transition: background 0.5s ease;
}

.thermometer-bulb-fill.cold {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.weather-temp {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.weather-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: capitalize;
    margin-bottom: 1rem;
}
