/* Gold Particle Effects
   ========================================================================== */

/* Základné nastavenia pre zlaté částice a efekty */
.gold-particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.8;
    box-shadow: 0 0 6px 2px rgba(212, 175, 55, 0.5);
    animation: particle-fade-out 1s forwards ease-out;
    will-change: transform, opacity, width, height;
}

.gold-dust {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    box-shadow: 0 0 3px 1px rgba(212, 175, 55, 0.3);
    animation: dust-fade-out 1.5s forwards ease-out;
    will-change: transform, opacity;
}

.interaction-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-image: radial-gradient(circle, #d4af37 20%, #f5d0d0 100%);
    pointer-events: none;
    z-index: 9997;
    opacity: 0.8;
    box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.4);
    will-change: transform, opacity;
}

/* Glow effect pre hover na elementoch */
.btn, .service-card, .gallery-item, .nav-link, 
.course-card, .form-control:focus {
    position: relative;
    overflow: hidden;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: all 0.5s ease-out;
    pointer-events: none;
}

/* Hover efekty pre tlačidlá a karty */
.btn:hover .glow-effect,
.service-card:hover .glow-effect,
.gallery-item:hover .glow-effect,
.course-card:hover .glow-effect {
    width: 200%;
    height: 200%;
    opacity: 1;
}

.nav-link:hover .glow-effect {
    width: 120%;
    height: 120%;
    opacity: 0.7;
}

/* ClickSpark efekt - vybuchnutie částíc pri kliknutí */
.click-spark {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

/* Animácie pre částice */
@keyframes particle-fade-out {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes dust-fade-out {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Glow Trace - stopa za myšou */
.glow-trace {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 70%);
    pointer-events: none;
    z-index: 9990;
    will-change: transform;
}

/* Optimalizácia pre mobilné zariadenia */
@media (max-width: 768px) {
    .glow-trace {
        display: none;
    }
    
    .gold-particle, .gold-dust {
        display: none;
    }
}