/* Thermometer Component Styles */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-blue: #1e5a96;
    --accent-blue-light: #2874b8;
}

.thermometer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.thermometer {
    position: relative;
    width: 80px;
    height: 300px;
    margin: 20px 0;
}

.thermometer-bulb {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5);
    z-index: 2;
}

.thermometer-tube {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 270px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.thermometer-mercury {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, 
        #ff4444 0%, 
        #ff6666 40%, 
        #ff8888 70%, 
        #ffaaaa 100%
    );
    border-radius: 0 0 20px 20px;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

.thermometer-mercury.animate {
    animation: fillUp 2s ease-out forwards;
}

@keyframes fillUp {
    from {
        height: 0%;
    }
    to {
        height: var(--mercury-height);
    }
}

/* Scale marks */
.thermometer-scale {
    position: absolute;
    right: -85px;
    bottom: 30px;
    height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scale-mark {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.scale-mark::before {
    content: '';
    display: block;
    width: 10px;
    height: 1px;
    background: var(--text-secondary);
    margin-right: 5px;
}

/* Value displays */
.thermometer-values {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.thermometer-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6666;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(255, 68, 68, 0.5);
}

.thermometer-goal {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.thermometer-goal strong {
    color: var(--accent-blue-light);
}

.thermometer-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255, 102, 102, 0.2);
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

.thermometer-percentage.high {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
}

.thermometer-percentage.medium {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.2);
}

.thermometer-percentage.low {
    color: #ff6666;
    background: rgba(255, 68, 68, 0.2);
}

/* Cool/Hot indicator colors */
.thermometer-mercury.cold {
    background: linear-gradient(to top, 
        #2196f3 0%, 
        #42a5f5 40%, 
        #64b5f6 70%, 
        #90caf9 100%
    );
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
}

.thermometer-bulb.cold {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
}

.thermometer-mercury.warm {
    background: linear-gradient(to top, 
        #ff9800 0%, 
        #ffa726 40%, 
        #ffb74d 70%, 
        #ffcc80 100%
    );
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.6);
}

.thermometer-bulb.warm {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
}

.thermometer-mercury.hot {
    background: linear-gradient(to top, 
        #ff4444 0%, 
        #ff6666 40%, 
        #ff8888 70%, 
        #ffaaaa 100%
    );
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

.thermometer-bulb.hot {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5);
}

/* Labels */
.thermometer-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .thermometer {
        width: 60px;
        height: 250px;
    }
    
    .thermometer-tube {
        width: 30px;
        height: 220px;
    }
    
    .thermometer-bulb {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .thermometer-container {
        padding: 10px;
    }
    
    .thermometer-current {
        font-size: 2rem;
    }
    
    .thermometer-percentage {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
}
