/* ============================================
   UiKitStarfield.css - Starfield & Shooting Star Animations
   ============================================ */

/* Starfield Container */
.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease-out;
}

/* Star Twinkle Animation */
.star-twinkle {
    animation: starTwinkle 2s ease-in-out infinite;
}

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

/* Shooting Stars */
.shooting-star {
    position: absolute;
    opacity: 0;
}

/* Shooting Star Head (Bright Glowing Point) */
.shooting-star::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 252, 255, 0.9) 30%, 
        rgba(230, 245, 255, 0.5) 60%,
        transparent 100%
    );
    left: 0;
    top: 0;
    box-shadow: 
        0 0 12px 3px rgba(255, 255, 255, 0.95),
        0 0 24px 6px rgba(230, 245, 255, 0.6);
    z-index: 2;
}

/* Shooting Star Tail (Triangular, Trails Behind) */
.shooting-star::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 0px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0);
    border-bottom: 4px solid rgba(255, 255, 255, 0);
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(245, 250, 255, 0.85) 15%,
        rgba(220, 240, 255, 0.65) 35%,
        rgba(180, 220, 255, 0.4) 60%,
        rgba(140, 200, 255, 0.15) 85%,
        transparent 100%
    );
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    filter: blur(0.5px);
    z-index: 1;
}

/* Meteor Animations (5 Different Trajectories) */

/* Meteor 1: Top-left to bottom-right (135deg) */
.meteor-1 {
    animation: meteorFall1 8s linear infinite;
    animation-delay: 0s;
}

@keyframes meteorFall1 {
    0% {
        top: -10%;
        left: -5%;
        opacity: 0;
        transform: rotate(135deg);
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 110%;
        left: 95%;
        opacity: 0;
        transform: rotate(135deg);
    }
}

/* Meteor 2: Top-right to bottom-left (45deg) */
.meteor-2 {
    animation: meteorFall2 7s linear infinite;
    animation-delay: 2.5s;
}

@keyframes meteorFall2 {
    0% {
        top: -10%;
        left: 105%;
        opacity: 0;
        transform: rotate(45deg);
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 110%;
        left: 15%;
        opacity: 0;
        transform: rotate(45deg);
    }
}

/* Meteor 3: Top-center to bottom-right (140deg) */
.meteor-3 {
    animation: meteorFall3 9s linear infinite;
    animation-delay: 5s;
}

@keyframes meteorFall3 {
    0% {
        top: -10%;
        left: 30%;
        opacity: 0;
        transform: rotate(140deg);
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 110%;
        left: 80%;
        opacity: 0;
        transform: rotate(140deg);
    }
}

/* Meteor 4: Top-center to bottom-center (90deg) */
.meteor-4 {
    animation: meteorFall4 6.5s linear infinite;
    animation-delay: 7s;
}

@keyframes meteorFall4 {
    0% {
        top: -10%;
        left: 60%;
        opacity: 0;
        transform: rotate(90deg);
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 110%;
        left: 55%;
        opacity: 0;
        transform: rotate(90deg);
    }
}

/* Meteor 5: Top-left to bottom-center (40deg) */
.meteor-5 {
    animation: meteorFall5 8.5s linear infinite;
    animation-delay: 10s;
}

@keyframes meteorFall5 {
    0% {
        top: -10%;
        left: 85%;
        opacity: 0;
        transform: rotate(40deg);
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 110%;
        left: 35%;
        opacity: 0;
        transform: rotate(40deg);
    }
}

