/**
 * Background Animations CSS
 * Version: 1.0.0
 * 
 * Kompletné background animácie pre WordPress šablónu
 * Konvertované z React BackgroundAnimations.tsx komponentu
 */

/* ============================================
   BACKGROUND ANIMATIONS CONTAINER
   ============================================ */

.background-animations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* ============================================
   SVG FLOW LINES
   ============================================ */

.flow-lines-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.flow-gradient-stop-1 {
    stop-color: hsl(var(--primary));
    stop-opacity: 0.3;
}

.flow-gradient-stop-2 {
    stop-color: hsl(var(--primary-glow));
    stop-opacity: 0.5;
}

.flow-gradient-stop-3 {
    stop-color: hsl(var(--accent));
    stop-opacity: 0.3;
}

.flow-path-1 {
    animation: pulse 6s ease-in-out infinite;
}

.flow-path-2 {
    animation: pulse 8s ease-in-out infinite;
    animation-delay: 2s;
}

.flow-path-3 {
    animation: pulse 10s ease-in-out infinite;
    animation-delay: 1s;
}

.flow-path-4 {
    animation: pulse 12s ease-in-out infinite;
    animation-delay: 3s;
}

/* ============================================
   FLOATING FOOD ICONS
   ============================================ */

.floating-icon {
    position: absolute;
    opacity: 0.08;
    transition: all 1s ease-in-out;
}

.floating-icon svg {
    width: 32px;
    height: 32px;
}

.floating-icon.hero-icon {
    color: hsl(var(--primary-glow));
}

.floating-icon.premium-icon {
    color: hsl(var(--accent));
}

.floating-icon.default-icon {
    color: hsl(var(--primary));
}

/* ============================================
   GRADIENT ORBS
   ============================================ */

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.gradient-orb-1 {
    top: 16.67%;
    left: 16.67%;
    width: 384px;
    height: 384px;
    background: hsl(var(--primary) / 0.04);
    animation: drift 20s ease-in-out infinite;
}

.gradient-orb-2 {
    top: 33.33%;
    right: 16.67%;
    width: 256px;
    height: 256px;
    background: hsl(var(--primary-glow) / 0.05);
    animation: drift 20s ease-in-out infinite;
    animation-delay: 3s;
}

.gradient-orb-3 {
    top: 50%;
    left: 33.33%;
    width: 192px;
    height: 192px;
    background: hsl(var(--accent) / 0.04);
    animation: drift 20s ease-in-out infinite;
    animation-delay: 6s;
}

.gradient-orb-4 {
    top: 66.67%;
    right: 33.33%;
    width: 320px;
    height: 320px;
    background: hsl(var(--primary) / 0.03);
    animation: drift 20s ease-in-out infinite;
    animation-delay: 9s;
}

.gradient-orb-5 {
    top: 83.33%;
    left: 33.33%;
    width: 224px;
    height: 224px;
    background: hsl(var(--primary-glow) / 0.04);
    animation: drift 20s ease-in-out infinite;
    animation-delay: 12s;
}

/* ============================================
   PULSING CONNECTION NODES
   ============================================ */

.connection-node {
    position: absolute;
    border-radius: 50%;
    animation: gentle-pulse 3s ease-in-out infinite;
}

.connection-node-1 {
    top: 25%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: hsl(var(--primary) / 0.3);
    animation-delay: 1s;
}

.connection-node-2 {
    top: 50%;
    left: 25%;
    width: 12px;
    height: 12px;
    background: hsl(var(--primary-glow) / 0.4);
    animation-delay: 3s;
}

.connection-node-3 {
    top: 75%;
    right: 33.33%;
    width: 20px;
    height: 20px;
    background: hsl(var(--accent) / 0.35);
    animation-delay: 5s;
}

/* ============================================
   KITCHEN UTENSILS PATTERN
   ============================================ */

.utensils-pattern {
    position: absolute;
    inset: 0;
}

.utensil-line {
    position: absolute;
    opacity: 0.03;
}

.utensil-line-inner {
    width: 4px;
    height: 48px;
    background: linear-gradient(to bottom, hsl(var(--primary) / 0.15), transparent);
    animation: float-slow 15s ease-in-out infinite;
}

/* ============================================
   FLOATING GEOMETRIC SHAPES
   ============================================ */

.geometric-shapes {
    position: absolute;
    inset: 0;
}

.geometric-shape {
    position: absolute;
    animation: particle-flow 15s linear infinite;
}

.geometric-shape-inner {
    width: 8px;
    height: 8px;
}

.shape-primary {
    background: hsl(var(--primary) / 0.1);
}

.shape-glow {
    background: hsl(var(--primary-glow) / 0.1);
}

.shape-accent {
    background: hsl(var(--accent) / 0.1);
}

.shape-circle {
    border-radius: 50%;
}

.shape-square-rotated {
    border-radius: 2px;
    transform: rotate(45deg);
}

.shape-square {
    border-radius: 0;
}

.shape-rounded {
    border-radius: 8px;
}

/* ============================================
   MORPHING BACKGROUND SHAPES
   ============================================ */

.morphing-shape {
    position: absolute;
    filter: blur(40px);
    animation: morph 15s ease-in-out infinite;
}

.morphing-shape-1 {
    top: 33.33%;
    left: 20%;
    width: 160px;
    height: 160px;
    background: hsl(var(--primary) / 0.05);
    animation-delay: 2s;
}

.morphing-shape-2 {
    top: 66.67%;
    right: 20%;
    width: 128px;
    height: 128px;
    background: hsl(var(--primary-glow) / 0.05);
    animation-delay: 6s;
}

.morphing-shape-3 {
    top: 50%;
    left: 50%;
    width: 96px;
    height: 96px;
    background: hsl(var(--accent) / 0.05);
    animation-delay: 10s;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes drift {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    33% {
        transform: translateX(30px) translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateX(-20px) translateY(10px) rotate(-5deg);
    }
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes particle-flow {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
        transform: rotate(270deg);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .gradient-orb-1,
    .gradient-orb-4 {
        width: 256px;
        height: 256px;
    }
    
    .gradient-orb-2,
    .gradient-orb-5 {
        width: 192px;
        height: 192px;
    }
    
    .gradient-orb-3 {
        width: 128px;
        height: 128px;
    }
    
    .floating-icon svg {
        width: 24px;
        height: 24px;
    }
}

