/*
 *      __  ____  
 *     / / |___ \ 
 *    / /    __) |
 *   < <    |_ Wetter-Puls
 *    \ \   ___) |
 *     \_\ |____/ 
 *
 *  (c) 2025-2026 Daniel Frey | https://wetter-puls.de
 *  Author:  Daniel Frey <daniel@dan.jetzt>
 *  License: Proprietary & Confidential - All Rights Reserved
 *
 *  WPM Module & Interactive 24h Timeline Styles
 */

.wpm-score-badge {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 3px 8px;
    min-width: 54px;
}

.wpm-timeline-container {
    display: flex;
    align-items: flex-end;
    gap: 3px !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.wpm-timeline-container::-webkit-scrollbar {
    height: 4px;
}

.wpm-timeline-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.wpm-bar-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.wpm-bar-col.pulse-bar-active .wpm-bar-fill,
.wpm-bar-col:hover .wpm-bar-fill {
    filter: brightness(1.35);
    outline: 2px solid #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
}

.wpm-bar-col.pulse-bar-active .wpm-bar-label,
.wpm-bar-col:hover .wpm-bar-label {
    color: #38bdf8 !important;
    font-weight: 800;
}

.wpm-bar-col.pulse-bar-active .wpm-bar-label:empty::before,
.wpm-bar-col:hover .wpm-bar-label:empty::before {
    content: attr(data-hour);
    color: #38bdf8 !important;
    font-weight: 800;
}

.wpm-bar-fill {
    width: 100%;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    min-width: 2px;
    box-sizing: border-box;
    transition: height 0.3s ease, background-color 0.3s ease;
}

.wpm-bar-label {
    font-size: 8pt;
    color: #94a3b8;
    margin-top: 4px;
    height: 15px;
    line-height: 15px;
    font-family: monospace;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    overflow: visible;
}

.wpm-bar-peak {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    border: 1px solid #ffffff;
}

@media (max-width: 576px) {
    .wpm-bar-label {
        font-size: 7pt;
        height: 13px;
        line-height: 13px;
    }
}
