/* Explain: Styles for visual effects like magic stars, aurora, bokeh, and gallery hover effects. */
/* Čarobni božićni detalji: zvjezdice, aurora, iskrice i galerija */

.magic-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 12% 22%, rgba(255, 246, 214, 0.95), transparent),
        radial-gradient(1.6px 1.6px at 34% 64%, rgba(255, 236, 179, 0.85), transparent),
        radial-gradient(2.6px 2.6px at 58% 18%, rgba(255, 250, 224, 0.9), transparent),
        radial-gradient(1.4px 1.4px at 76% 52%, rgba(255, 236, 179, 0.8), transparent),
        radial-gradient(2.2px 2.2px at 88% 82%, rgba(255, 250, 224, 0.85), transparent),
        radial-gradient(1.6px 1.6px at 22% 86%, rgba(255, 240, 200, 0.8), transparent),
        radial-gradient(1.4px 1.4px at 48% 42%, rgba(255, 246, 214, 0.75), transparent),
        radial-gradient(2.4px 2.4px at 66% 92%, rgba(255, 240, 200, 0.8), transparent);
    background-size: 420px 420px;
    background-repeat: repeat;
    animation: starTwinkle 7s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.magic-stars::after {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.2px 1.2px at 8% 44%, rgba(255, 250, 224, 0.9), transparent),
        radial-gradient(1.6px 1.6px at 28% 12%, rgba(244, 206, 99, 0.9), transparent),
        radial-gradient(1.3px 1.3px at 46% 78%, rgba(255, 246, 214, 0.9), transparent),
        radial-gradient(1.8px 1.8px at 62% 34%, rgba(255, 236, 179, 0.88), transparent),
        radial-gradient(1.2px 1.2px at 82% 62%, rgba(255, 250, 224, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 92% 24%, rgba(244, 206, 99, 0.86), transparent),
        radial-gradient(1.4px 1.4px at 18% 68%, rgba(255, 240, 200, 0.88), transparent),
        radial-gradient(1.7px 1.7px at 72% 88%, rgba(255, 246, 214, 0.86), transparent);
    background-size: 300px 300px;
    background-repeat: repeat;
    content: "";
    pointer-events: none;
    animation: starTwinkle 4.5s ease-in-out infinite reverse;
}

.aurora {
    position: absolute;
    inset: -18% -10% auto -10%;
    height: 72%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 80% at 22% 30%, var(--aurora-teal), transparent 70%),
        radial-gradient(50% 70% at 74% 12%, var(--aurora-violet), transparent 70%),
        radial-gradient(46% 60% at 50% 62%, rgba(242, 201, 76, 0.16), transparent 70%);
    filter: blur(34px);
    animation: auroraDrift 17s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate3d(0, 4%, 0) scale(1.06); opacity: 1; }
}

.sparkle-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 250, 224, 0.95) 0, rgba(255, 250, 224, 0) 55%),
        radial-gradient(circle, rgba(244, 206, 99, 0.9) 0, rgba(244, 206, 99, 0) 55%);
    background-size: 260px 260px, 380px 380px;
    background-position: 0 0, 130px 90px;
    opacity: 0.5;
    animation: sparkleFloat 9s ease-in-out infinite;
}

@keyframes sparkleFloat {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-10px); }
}

.gold-glow {
    text-shadow: 0 2px 26px rgba(196, 154, 42, 0.38), 0 0 64px rgba(242, 201, 76, 0.22);
}

.shooting-star {
    position: absolute;
    top: 24%;
    left: 26%;
    z-index: 2;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow:
        0 0 9px 3px rgba(255, 250, 224, 0.95),
        0 0 26px 9px rgba(244, 206, 99, 0.55),
        0 0 58px 20px rgba(244, 206, 99, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: rotate(32deg);
    animation: shootingStar 11s ease-in infinite;
}

.shooting-star::before {
    position: absolute;
    right: 3px;
    top: 50%;
    width: 200px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 236, 179, 0) 0%, rgba(255, 246, 214, 0.5) 55%, rgba(255, 252, 235, 0.92) 100%);
    content: "";
    transform: translateY(-50%);
}

.shooting-star-two {
    top: 14%;
    left: 42%;
    animation-delay: 5.5s;
    animation-duration: 13s;
}

.shooting-star-two::before {
    width: 96px;
}

@keyframes shootingStar {
    0%, 70% {
        opacity: 0;
        transform: rotate(32deg) translateX(-260px);
    }
    72% {
        opacity: 1;
    }
    83% {
        opacity: 0.85;
    }
    87% {
        opacity: 0;
        transform: rotate(32deg) translateX(60px);
    }
    100% {
        opacity: 0;
        transform: rotate(32deg) translateX(60px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shooting-star {
        display: none;
    }
}

.frame-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 76px rgba(242, 201, 76, 0.28), 0 0 60px rgba(242, 201, 76, 0.3);
    pointer-events: none;
}

.halo-twinkle {
    position: absolute;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #fff6d6;
    box-shadow: 0 0 18px 5px rgba(242, 201, 76, 0.7);
    animation: haloPulse 3.4s ease-in-out infinite;
}

.halo-one {
    top: 6%;
    right: 6%;
}

.halo-two {
    bottom: 20%;
    left: 6%;
    animation-delay: 1.1s;
}

.halo-three {
    top: 46%;
    right: -2%;
    animation-delay: 2.2s;
}

@keyframes haloPulse {
    0%, 100% { transform: scale(0.7); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

.gallery-tile img {
    transition: transform 450ms ease, box-shadow 450ms ease, border-color 450ms ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-within img {
    transform: translateY(-6px);
    border-color: var(--gold-bright);
    box-shadow: 0 28px 70px rgba(196, 154, 42, 0.38), 0 0 40px rgba(242, 201, 76, 0.25);
}

.festive-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: var(--gold-color);
    font-size: 1.1rem;
}

.festive-divider::before,
.festive-divider::after {
    display: block;
    width: min(30vw, 8rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line));
    content: "";
}

.festive-divider::after {
    background: linear-gradient(90deg, var(--gold-line), transparent);
}

@media (prefers-reduced-motion: reduce) {
    .magic-stars {
        animation: none;
        opacity: 0.55;
    }

    .aurora {
        animation: none;
    }

    .sparkle-field {
        animation: none;
        opacity: 0.45;
    }

    .halo-twinkle {
        animation: none;
    }

    .gallery-tile:hover img,
    .gallery-tile:focus-within img {
        transform: none;
    }

    .bokeh-lights {
        animation: none;
    }
}

.bokeh-lights {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(244, 206, 99, 0.3), transparent 13%),
        radial-gradient(circle at 80% 12%, rgba(255, 246, 214, 0.28), transparent 11%),
        radial-gradient(circle at 90% 68%, rgba(244, 206, 99, 0.24), transparent 15%),
        radial-gradient(circle at 26% 82%, rgba(255, 240, 200, 0.26), transparent 14%),
        radial-gradient(circle at 52% 46%, rgba(255, 250, 224, 0.2), transparent 17%);
    filter: blur(6px);
    animation: bokehDrift 16s ease-in-out infinite alternate;
}

@keyframes bokehDrift {
    0% { transform: translate3d(0, 0, 0); opacity: 0.65; }
    100% { transform: translate3d(0, -2.5%, 0); opacity: 1; }
}

.section-magic::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 0%, var(--vignette-glow), transparent 58%);
    content: "";
    pointer-events: none;
}