/*
 * WeProxy — New Year seasonal layer. Loaded only while inc/wp-seasonal.php has it active.
 * Adds decoration on top of the normal theme; removing this file (or the switch) restores it.
 */

/* String of lights along the top of the panel header */
#modernpanel .rightconhead::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12px;
    pointer-events: none;
    background:
        radial-gradient(circle at 12px 7px, #ef4444 3px, transparent 3.6px) 0 0 / 96px 12px repeat-x,
        radial-gradient(circle at 36px 7px, #f5b301 3px, transparent 3.6px) 0 0 / 96px 12px repeat-x,
        radial-gradient(circle at 60px 7px, #16a34a 3px, transparent 3.6px) 0 0 / 96px 12px repeat-x,
        radial-gradient(circle at 84px 7px, #2563eb 3px, transparent 3.6px) 0 0 / 96px 12px repeat-x,
        linear-gradient(#3f3f46, #3f3f46) 0 3px / 100% 1px no-repeat;
    animation: wpNyTwinkle 1.8s steps(2, jump-none) infinite alternate;
}

/* Same lights on the public / sign-in pages (top of the viewport) */
body#uyeolgirisbody::before,
body:not(#modernpanel)::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 960;
    height: 12px;
    pointer-events: none;
    background:
        radial-gradient(circle at 12px 7px, #ef4444 3px, transparent 3.6px) 0 0 / 96px 12px repeat-x,
        radial-gradient(circle at 36px 7px, #f5b301 3px, transparent 3.6px) 0 0 / 96px 12px repeat-x,
        radial-gradient(circle at 60px 7px, #16a34a 3px, transparent 3.6px) 0 0 / 96px 12px repeat-x,
        radial-gradient(circle at 84px 7px, #2563eb 3px, transparent 3.6px) 0 0 / 96px 12px repeat-x,
        linear-gradient(#3f3f46, #3f3f46) 0 3px / 100% 1px no-repeat;
    animation: wpNyTwinkle 1.8s steps(2, jump-none) infinite alternate;
}

@keyframes wpNyTwinkle {
    from { opacity: 1; filter: saturate(1.15); }
    to   { opacity: .62; filter: saturate(.85); }
}

/* Small snowflake before the dashboard date */
#modernpanel .wp-dashboard-intro .wp-eyebrow::before {
    content: "\2744\FE0E";
    margin-right: 6px;
    color: #94a3b8;
    letter-spacing: 0;
}

/* Sidebar: soft snow cap on the account chip */
#modernpanel .wp-account-chip {
    position: relative;
}
#modernpanel .wp-account-chip::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: -4px;
    height: 8px;
    border-radius: 8px 8px 50% 50%;
    background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55) 60%, transparent 72%);
    pointer-events: none;
}

/* Snow canvas (js/weproxy-newyear.js) */
.wp-ny-snow {
    position: fixed;
    inset: 0;
    z-index: 950;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #modernpanel .rightconhead::after,
    body#uyeolgirisbody::before,
    body:not(#modernpanel)::before { animation: none; }
    .wp-ny-snow { display: none; }
}
