/* Screensaver Overlay */
#wbc-screensaver-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 20, 0.95);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
    display: none; /* Initially hidden to not block anything */
    overflow: hidden;
}

#wbc-screensaver-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto; /* Catch mouse movements natively */
}

/* Floating Review Card */
.wbc-floating-review {
    position: absolute;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    font-family: 'Inter', -apple-system, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Animation base */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: wbcFadeFloat 7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.wbc-floating-review .wbc-review-text {
    font-size: 16px;
    line-height: 1.5;
    font-style: italic;
    color: #e0e0e0;
    margin-top: 10px;
}

.wbc-floating-review .wbc-review-stars {
    display: flex;
    gap: 4px;
    font-size: 20px;
}

/* Star Animation */
.wbc-star {
    color: #FFC107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    opacity: 0;
    transform: scale(0.5);
}

.wbc-star.animate {
    animation: wbcStarPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animations */
@keyframes wbcFadeFloat {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    15% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    85% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
}

@keyframes wbcStarPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }
    70% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}
