/**
 * DHI Fundraising Thermometer Styles
 * WPF: Styled to match client reference (wpf-sample-thermometer.png / Word on Fire).
 *
 * @package DHI_Thermometer
 * @version 1.0.0
 */

/* Thermometer Container */
.dhithermometer {
    margin: 1em auto 0 auto;
    max-width: 600px;
}

/* Bar + badge wrapper (overflow not hidden so badge can extend above/below) */
.dhi-bar-wrap {
    position: relative;
    height: 26px;
}

/* Background Bar (unfilled portion) – pill shape, light gold/beige */
.dhibarbg {
    background-color: #e6dfc8;
    width: 100%;
    border-radius: 14px;
    height: 26px;
    padding: 0;
    margin: 0 0 10px 0;
    border: 1px solid rgba(180, 134, 11, 0.2);
    overflow: hidden;
}

/* Progress Bar (filled portion) – darker gold/brown; higher specificity for theme/Divi */
.dhithermometer .dhibarbg .dhibarinner {
    display: block;
    background-color: #b8860b !important;
    border-radius: 14px 0 0 14px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    margin: 0;
    transition: width 0.5s ease;
}

/* Percentage Badge – circular, centered on bar, extends above/below (left from PHP inline style) */
.dhibarstar {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 52px;
    width: 52px;
    border-radius: 26px;
    font-weight: bold;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: left 0.5s ease;
}

/* Load animation: initial state before .dhi-thermometer-ready is added */
.dhi-bar-wrap.dhi-thermometer-animate:not(.dhi-thermometer-ready) .dhibarinner {
    width: 0 !important;
}
.dhi-bar-wrap.dhi-thermometer-animate:not(.dhi-thermometer-ready) .dhibarstar {
    left: 2% !important;
}

.dhibarstar img {
    border-style: none;
}

/* Message Text – dark gray labels, bold black for amounts */
.dhibartext {
    color: #555;
    font-weight: 400;
    text-align: center;
    padding: 1em 0;
    font-size: 1rem;
    line-height: 1.5;
}

.dhibartext .amount-raised {
    color: #111;
    font-weight: 700;
}

.dhibartext .goal-amount {
    color: #a67c52;
    font-weight: 600;
}

.dhibartext .remaining-amount {
    color: #b8860b;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dhithermometer {
        max-width: 100%;
        padding: 0 1em;
    }
    
    .dhibartext {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dhibartext {
        font-size: 0.85rem;
    }
    
    .dhibarstar {
        font-size: 12px;
    }
}

/* WPF palette: filled #b8860b, unfilled #e6dfc8, goal/accents #a67c52, text #555 / #111 */
