
/* ========================================================
   ROSE DES VENTS V8
   STYLE WEATHER UNDERGROUND
   ======================================================== */

.wu-rose-host {
    position: relative !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    min-width: 180px !important;

    min-height: 180px !important;
}


/* On masque l'ancienne rose */
.wu-rose-host > *:not(.wu-rose-v8) {
    display: none !important;
}


/* Cercle principal */
.wu-rose-v8 {
    position: relative;

    width: 170px;
    height: 170px;

    flex: 0 0 170px;

    border-radius: 50%;
}


/* Petits traits tout autour */
.wu-rose-v8::before {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(130,160,175,.50) 0deg 1.3deg,
            transparent 1.3deg 7.5deg
        );

    -webkit-mask:
        radial-gradient(
            circle,
            transparent 0 69%,
            #000 70% 76%,
            transparent 77%
        );

    mask:
        radial-gradient(
            circle,
            transparent 0 69%,
            #000 70% 76%,
            transparent 77%
        );
}


/* Texte au centre */
.wu-rose-center {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    text-align: center;

    z-index: 5;

    pointer-events: none;
}


.wu-rose-direction {
    color: #f4f8fa;

    font-size: 29px;

    font-weight: 700;

    line-height: 1;
}


.wu-rose-degrees {
    margin-top: 7px;

    color: #7793a4;

    font-size: 11px;

    font-weight: 500;
}


/* Support rotatif du triangle */
.wu-rose-marker-holder {
    position: absolute;

    inset: 0;

    transform:
        rotate(
            var(--wu-bearing, 0deg)
        );

    transition:
        transform .4s ease;

    z-index: 4;

    pointer-events: none;
}


/* Triangle style WU */
.wu-rose-marker {
    position: absolute;

    top: 7px;
    left: 50%;

    width: 0;
    height: 0;

    transform:
        translateX(-50%);

    border-left:
        10px solid transparent;

    border-right:
        10px solid transparent;

    border-bottom:
        21px solid #27dfbd;

    filter:
        drop-shadow(
            0 0 4px
            rgba(39,223,189,.30)
        );
}


/* Texte à droite de la rose */
.dominant .wu-direction-label {
    color: #7895a6;

    font-size: 11px;

    margin-bottom: 5px;
}


.dominant .wu-direction-value {
    color: #f5f8fa;

    font-size: 24px;

    font-weight: 700;

    white-space: nowrap;
}


/* ========================================================
   BADGE PREVISIONS
   On conserve le badge déjà validé
   ======================================================== */

.forecast-source-v7 {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;

    margin: 7px 0 12px;

    padding: 7px 10px;

    width: fit-content;

    max-width: 100%;

    border:
        1px solid
        rgba(34,184,255,.24);

    border-radius: 8px;

    background:
        rgba(6,31,47,.58);

    color: #a6c4d4;

    font-size: 9px;

    line-height: 1.45;
}


.forecast-source-v7 .local {
    color: #39d5ff;
}


.forecast-source-v7 .regional {
    color: #27dfbd;
}


.forecast-source-v7 .sep {
    opacity: .45;
}


@media (max-width: 700px) {

    .wu-rose-v8 {
        width: 150px;
        height: 150px;

        flex-basis: 150px;
    }


    .wu-rose-host {
        min-width: 150px !important;
        min-height: 150px !important;
    }


    .wu-rose-direction {
        font-size: 25px;
    }


    .forecast-source-v7 {
        display: block;

        width: auto;
    }


    .forecast-source-v7 .sep {
        display: none;
    }


    .forecast-source-v7 .regional {
        display: block;

        margin-top: 3px;
    }
}


/* V8.1 - inversion du sens du triangle */
.wu-rose-marker {
    transform: translateX(-50%) rotate(180deg) !important;
}


/* ========================================
   POINTS CARDINAUX ROSE DES VENTS
   ======================================== */

.wu-rose-cardinal {
    position: absolute;
    color: #d8e6ef;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    z-index: 6;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(0,0,0,.35);
}

.wu-rose-north {
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.wu-rose-east {
    top: 50%;
    right: -2px;
    transform: translateY(-50%);
}

.wu-rose-south {
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.wu-rose-west {
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
}

