/* ========================================
   Visual Effects & Particles
   ======================================== */
.confetti,
.heart,
.sparkle,
.sparkling-star,
.balloon,
.geometric-shape,
.drop,
.shape,
.wave,
.star {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Rain */
.rain {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.drop {
    position: absolute;
    bottom: 100%;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    animation: fall linear infinite;
    z-index: 1;
}

@keyframes fall {
    0% { transform: translateY(0); opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.splash {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: splash 0.3s ease-out forwards;
    pointer-events: none;
    z-index: 2;
}

@keyframes splash {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    border-radius: 3px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    to { transform: translateY(100vh) rotate(360deg); }
}

/* Payday Effects */
.payday-glow {
    background: var(--bg-gradient),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.12) 0%, transparent 50%);
    animation: payday-pulse 2s infinite alternate;
}

@keyframes payday-pulse {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.2) saturate(1.3); }
}

.money-bill {
    position: absolute;
    animation: money-fall linear forwards;
    user-select: none;
    pointer-events: none;
    z-index: 6;
}

@keyframes money-fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0.7; }
}

.dollar-sign {
    position: absolute;
    animation: dollar-float 4s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
    font-weight: bold;
    z-index: 6;
}

@keyframes dollar-float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
}

.golden-confetti {
    animation: golden-confetti-fall linear forwards;
}

@keyframes golden-confetti-fall {
    0% { transform: translateY(-100px) rotate(0deg) scale(1); opacity: 1; }
    50% { opacity: 1; transform: rotate(180deg) scale(1.1); }
    100% { transform: translateY(100vh) rotate(360deg) scale(0.8); opacity: 0; }
}

/* Hearts */
.heart {
    position: absolute;
    width: 20px;
    height: 18px;
    color: transparent;
    background-color: transparent;
    animation: heart-fall linear forwards;
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10px;
    height: 16px;
    background-color: var(--color);
    border-radius: 10px 10px 0 0;
}

.heart::before {
    left: 10px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes heart-fall {
    to { transform: translateY(100vh) rotate(720deg); }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    animation: sparkle-twinkle 2s infinite alternate;
    z-index: 5;
}

@keyframes sparkle-twinkle {
    0% { transform: scale(0.5); opacity: 0; box-shadow: none; }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 5px #fff, 0 0 10px #fff,
            0 0 15px var(--accent-color), 0 0 20px var(--accent-color);
    }
    100% { transform: scale(0.5); opacity: 0; box-shadow: none; }
}

/* Sparkling Stars (stationary) */
.sparkling-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    animation: star-twinkle 2s linear infinite alternate;
    z-index: 5;
    color: white;
}

.sparkling-star::before,
.sparkling-star::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 2px;
    background-color: inherit;
}

.sparkling-star::before { transform: rotate(45deg); }
.sparkling-star::after { transform: rotate(-45deg); }

@keyframes star-twinkle {
    0% { transform: scale(0.5); opacity: 0.5; box-shadow: none; }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-color);
    }
    100% { transform: scale(0.5); opacity: 0.5; box-shadow: none; }
}

/* Balloons — https://codepen.io/bennettfeely/pen/DrNgoO */
.balloon {
    display: inline-block;
    width: 120px;
    height: 145px;
    background: hsl(215, 50%, 65%);
    border-radius: 80%;
    position: absolute;
    box-shadow: inset -10px -10px 0 rgba(0, 0, 0, 0.07);
    margin: 20px 30px;
    transition: transform 0.5s ease;
    z-index: 5;
    animation: balloon-rise 16s linear forwards;
    transform-origin: bottom center;
}

.balloon:before {
    content: "▲";
    font-size: 20px;
    color: hsl(215, 30%, 50%);
    display: block;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: -12px;
    z-index: 4;
}

.balloon:after {
    display: inline-block;
    top: 153px;
    left: 59px;
    position: absolute;
    height: 250px;
    width: 3px;
    margin: 0 auto;
    content: "";
    background: rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.balloon:nth-child(2) { background: hsl(245, 40%, 65%); animation-duration: 3.5s; }
.balloon:nth-child(2):before { color: hsl(245, 40%, 65%); }
.balloon:nth-child(3) { background: hsl(139, 50%, 60%); animation-duration: 3s; }
.balloon:nth-child(3):before { color: hsl(139, 30%, 50%); }
.balloon:nth-child(4) { background: hsl(59, 50%, 58%); animation-duration: 4.5s; }
.balloon:nth-child(4):before { color: hsl(59, 30%, 52%); }
.balloon:nth-child(5) { background: hsl(23, 55%, 57%); animation-duration: 5s; }
.balloon:nth-child(5):before { color: hsl(23, 44%, 46%); }

@keyframes balloon-rise {
    0% { transform: translateY(10vh) translateX(0); }
    25% { transform: translateY(-25vh) translateX(-20px) rotate(4deg); }
    50% { transform: translateY(-50vh) translateX(20px) rotate(-4deg); }
    75% { transform: translateY(-75vh) translateX(-20px) rotate(4deg); }
    100% { transform: translateY(-100vh) translateX(0) rotate(-4deg); }
}

/* Geometric Shapes */
.geometric-shape {
    opacity: 0.6;
    animation: geometric-fall 5s linear forwards, geometric-rotate 5s linear forwards;
    z-index: 5;
    position: absolute;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid;
}

.hexagon {
    width: 20px;
    height: 11.55px;
    background: red;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    left: 0;
}

.hexagon:before { top: -5.77px; border-bottom: 5.77px solid red; }
.hexagon:after { top: auto; bottom: -5.77px; border-top: 5.77px solid red; }

@keyframes geometric-fall {
    0% { top: var(--initial-top); left: var(--initial-left); opacity: 0; }
    50% { opacity: 1; }
    100% {
        top: calc(var(--initial-top) + 100vh);
        left: calc(var(--initial-left) + (var(--random-x-offset) * 1px));
        opacity: 0;
        rotate: 460deg;
    }
}

@keyframes geometric-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(460deg); }
}

/* ========================================
   Background Effects
   ======================================== */
#friday-background,
#weekend-background,
#weekday-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.2;
    animation: moveShape linear infinite;
}

@keyframes moveShape {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(50px) translateY(20px) rotate(45deg); }
    50% { transform: translateX(-50px) translateY(50px) rotate(90deg); }
    75% { transform: translateX(-20px) translateY(-50px) rotate(135deg); }
    100% { transform: translateX(0) translateY(0) rotate(180deg); }
}

.wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 100px;
    background-color: var(--accent-color);
    opacity: 0.2;
    animation: moveWave 10s linear infinite;
    transform-origin: bottom;
}

@keyframes moveWave {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-25%) scaleY(1.2); }
    100% { transform: translateX(-50%) scaleY(1); }
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
