/* ----------------------------------------------------------
   Music Freq Fund – Neon Thermometer UI
   ---------------------------------------------------------- */

.freq-thermometer-section
{
    padding: 20px 0;
    color: #f3f6ff;
}

/* ----------------------------------------------------------
   Header UI (if you ever add headings around the widget)
   ---------------------------------------------------------- */

.freq-thermometer-header-row
{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}

.freq-thermometer-heading
{
    font-size: 1.4rem;
    margin: 0;
    color: #f5f8ff;
    letter-spacing: 0.04em;
}

.freq-thermometer-city-label
{
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b7d1ff;
}

.freq-thermometer-city-select
{
    background: #050816;
    color: #f6f6ff;
    border: 1px solid #00f7ff;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    box-shadow: 0 0 6px #00f7ff66, 0 0 12px #ff00ff33;
}

/* Inline selector inside subtitle */

.freq-thermometer-subtitle .freq-thermometer-city-select
{
    margin-top: 4px;
    background: #050816;
    color: #f6f6ff;
    border-radius: 999px;
}

/* ----------------------------------------------------------
   Core thermometer wrappers
   ---------------------------------------------------------- */

.freq-thermometer-wrapper
{
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
    font-family: "system-ui", -apple-system, BlinkMacSystemFont, sans-serif;
    background: black;    
}

/* HERO VARIANT ------------------------------------------------ */

.freq-thermometer-wrapper--hero .freq-thermometer-title
{
    font-size: 1.2rem;
    color: #00f7ff;
    text-shadow: 0 0 10px #00f7ffbb, 0 0 20px #00f7ff77;
    letter-spacing: 0.2em;
    margin-bottom: 6px;
}

.freq-thermometer-wrapper--hero .freq-thermometer-subtitle
{
    font-size: 0.9rem;
    color: #b1c7ff;
    margin-bottom: 6px;
}

.freq-thermometer-wrapper--hero .freq-thermometer-goal
{
    font-size: 0.95rem;
    color: #ff6aff;
    margin-bottom: 20px;
}

/* Core thermometer visual ------------------------------------- */

.freq-thermometer-body
{
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Base tube */

.freq-thermometer-outer
{
    position: relative;
    width: 52px;
    height: 220px;
    background: #050816;
    border-radius: 40px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow:
        0 0 12px #00f7ffaa,
        0 0 26px #00f7ff88,
        inset 0 0 12px #ff00ff55;
}

/* Animated neon outline */

.freq-thermometer-outer::before
{
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        #00f7ff,
        #ff00ff,
        #ffe066,
        #ff0040,
        #00f7ff
    );
    filter: blur(8px);
    opacity: 0.95;
    z-index: -1;
    animation: freqOutlineFlow 3.5s linear infinite;
    pointer-events: none;
}

/* Fill with shimmer animation */

.freq-thermometer-fill
{
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(180deg, #ffe066, #ff9d00, #ff0040, #ff0088);
    background-size: 100% 230%;
    box-shadow:
        0 0 14px #ff0040dd,
        0 0 30px #ff0040aa,
        0 0 40px #ff9d0088;
    animation: freqShimmer 2.4s ease-in-out infinite;
}

/* Bulb with glow + bounce ------------------------------------- */

.freq-thermometer-bulb
{
    position: absolute;
    bottom: -58px;
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffe6ff, #ff0088 40%, #ff0040 75%, #7a001f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 18px #ff0040ff,
        0 0 40px #ff0040dd,
        0 0 60px #ff9d00aa,
        inset 0 0 18px #00000099;
    animation:
        freqGlowPulse 2.2s ease-in-out infinite,
        freqBounce 3.4s ease-in-out infinite;
}

.freq-thermometer-percent
{
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    text-shadow: 0 0 6px #00e5ff, 0 0 20px #00f7ff;
}

/* Labels on the right side ----------------------------------- */

.freq-thermometer-labels
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 50px;
}

.freq-thermometer-labels .freq-thermometer-label
{
    color: #8fd9ff;
    font-size: 0.8rem;
    text-shadow: 0 0 6px #00f7ff55;
}

/* Status + helper text --------------------------------------- */

.freq-thermometer-status
{
    margin-top: 70px;
    color: #ffffff;
    font-size: 1rem;
}

.freq-thermometer-helper
{
    margin-top: 6px;
    color: #ffe066;
    text-shadow: 0 0 6px #ffe066aa;
}

/* ----------------------------------------------------------
   COMPACT VARIANT
   ---------------------------------------------------------- */

.freq-thermometer-wrapper--compact
{
    border: 1px solid #00f7ff44;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 0 6px #00f7ff33, 0 0 14px #ff00ff44 inset;
}

.freq-thermometer-compact-header
{
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.freq-thermometer-compact-title
{
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: #00f7ff;
    text-shadow: 0 0 6px #00f7ffaa;
}

.freq-thermometer-compact-progress
{
    font-size: 0.85rem;
    color: #ff8aff;
}

.freq-thermometer-compact-subtitle
{
    font-size: 0.75rem;
    color: #b8c6ff;
    margin-bottom: 10px;
    text-align: left;
}

.freq-thermometer-body--compact
{
    display: flex;
    gap: 14px;
}

.freq-thermometer-outer--compact
{
    width: 36px;
    height: 170px;
    border-width: 1px;
}

.freq-thermometer-bulb--compact
{
    width: 72px;
    height: 72px;
    bottom: -46px;
}

.freq-thermometer-percent--compact
{
    font-size: 1.2rem;
}

.freq-thermometer-labels--compact
{
    gap: 16px;
    justify-content: center;
}

/* ----------------------------------------------------------
   MINIMAL VARIANT (title + thermometer only)
   ---------------------------------------------------------- */

.freq-thermometer-wrapper--minimal
{
    max-width: 260px;
    margin: 0 auto;
}

.freq-thermometer-wrapper--minimal .freq-thermometer-title
{
    font-size: 1rem;
    color: #00f7ff;
    text-shadow: 0 0 8px #00f7ffbb;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
}

.freq-thermometer-wrapper--minimal .freq-thermometer-body
{
    justify-content: center;
}

.freq-thermometer-wrapper--minimal .freq-thermometer-outer
{
    width: 44px;
    height: 200px;
}

.freq-thermometer-wrapper--minimal .freq-thermometer-labels,
.freq-thermometer-wrapper--minimal .freq-thermometer-status,
.freq-thermometer-wrapper--minimal .freq-thermometer-helper
{
    display: none !important;
}

/* ----------------------------------------------------------
   ULTRA-COMPACT VARIANT (thermometer only)
   ---------------------------------------------------------- */

.freq-thermometer-wrapper--ultra
{
    max-width: 120px;
    margin: 0 auto;
}

.freq-thermometer-wrapper--ultra .freq-thermometer-body
{
    justify-content: center;
}

.freq-thermometer-wrapper--ultra .freq-thermometer-outer
{
    width: 32px;
    height: 180px;
    border-width: 1px;
}

.freq-thermometer-wrapper--ultra .freq-thermometer-bulb
{
    width: 64px;
    height: 64px;
    bottom: -40px;
}

.freq-thermometer-wrapper--ultra .freq-thermometer-percent
{
    font-size: 1rem;
}

.freq-thermometer-wrapper--ultra .freq-thermometer-title,
.freq-thermometer-wrapper--ultra .freq-thermometer-subtitle,
.freq-thermometer-wrapper--ultra .freq-thermometer-goal,
.freq-thermometer-wrapper--ultra .freq-thermometer-labels,
.freq-thermometer-wrapper--ultra .freq-thermometer-status,
.freq-thermometer-wrapper--ultra .freq-thermometer-helper
{
    display: none !important;
}

/* ----------------------------------------------------------
   HYPER MODE (night mode overdrive)
   ---------------------------------------------------------- */

.freq-thermometer-host--hyper .freq-thermometer-outer::before
{
    filter: blur(10px);
    opacity: 1;
    animation-duration: 2.2s;
}

.freq-thermometer-host--hyper .freq-thermometer-fill
{
    animation-duration: 1.6s;
    box-shadow:
        0 0 22px #ff0040ff,
        0 0 50px #ff0040dd,
        0 0 60px #ff9d00dd;
}

.freq-thermometer-host--hyper .freq-thermometer-bulb
{
    animation-duration: 1.6s, 2.4s;
    box-shadow:
        0 0 26px #ff0040ff,
        0 0 60px #ff0040ff,
        0 0 80px #ff9d00ff,
        inset 0 0 22px #000000cc;
}

.freq-thermometer-host--hyper:hover .freq-thermometer-outer::before
{
    filter: blur(12px);
}

.freq-thermometer-host--hyper:hover .freq-thermometer-percent
{
    text-shadow:
        0 0 10px #00f7ffff,
        0 0 26px #00f7ffff;
}

/* ----------------------------------------------------------
   Mobile responsiveness
   ---------------------------------------------------------- */

@media (max-width: 480px)
{
    .freq-thermometer-wrapper--hero
    {
        transform: scale(0.9);
        transform-origin: top center;
    }
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */

@keyframes freqGlowPulse
{
    0%
    {
        box-shadow:
            0 0 10px #ff0040aa,
            0 0 26px #ff004088,
            0 0 40px #ff9d0066,
            inset 0 0 12px #00000066;
    }
    50%
    {
        box-shadow:
            0 0 22px #ff0040ff,
            0 0 50px #ff0040ff,
            0 0 70px #ff9d00bb,
            inset 0 0 22px #000000aa;
    }
    100%
    {
        box-shadow:
            0 0 10px #ff0040aa,
            0 0 26px #ff004088,
            0 0 40px #ff9d0066,
            inset 0 0 12px #00000066;
    }
}

@keyframes freqShimmer
{
    0%
    {
        background-position: 0% 0%;
    }
    35%
    {
        background-position: 0% 60%;
    }
    65%
    {
        background-position: 0% 100%;
    }
    100%
    {
        background-position: 0% 0%;
    }
}

@keyframes freqBounce
{
    0%
    {
        transform: translate(-50%, 0);
    }
    50%
    {
        transform: translate(-50%, -7px);
    }
    100%
    {
        transform: translate(-50%, 0);
    }
}

@keyframes freqOutlineFlow
{
    0%
    {
        transform: rotate(0deg);
        opacity: 0.9;
    }
    50%
    {
        transform: rotate(180deg);
        opacity: 1;
    }
    100%
    {
        transform: rotate(360deg);
        opacity: 0.9;
    }
}
