/* summer easter egg — wandering sun + closed poster modal */

#sun-widget {
    position: fixed;
    top: 0;
    left: 0;
    width: 90px;
    height: 90px;
    z-index: 9999;
    cursor: pointer;
    background: url('/assets/static/sun.png') center / contain no-repeat;
    transition: top 2.2s cubic-bezier(.45,.05,.55,.95), left 2.2s cubic-bezier(.45,.05,.55,.95);
    filter: drop-shadow(0 0 20px rgba(255, 200, 0, .35));
    animation: sun-widget-spin 18s linear infinite;
}

#sun-widget:hover {
    animation-play-state: paused;
    filter: drop-shadow(0 0 30px rgba(255, 200, 0, .55));
}

@keyframes sun-widget-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    #sun-widget {
        width: 56px;
        height: 56px;
    }
}

#sun-widget-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(4px);
}

#sun-widget-overlay.is-open {
    display: flex;
}

#sun-widget-overlay img {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

#sun-widget-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
}

#sun-widget-close::before,
#sun-widget-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 2px;
    background: #fff;
}

#sun-widget-close::before { transform: translate(-50%, -50%) rotate(45deg); }
#sun-widget-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
