/* ==========================================================================
   CUTIESMOOTH — Animations & Motion Design
   ========================================================================== */

/* --- 1. Floating Hero Visual Collage --- */
@keyframes floatSlow {
    0% {
        transform: translateY(0px) rotate(var(--rot, 0deg));
    }
    50% {
        transform: translateY(-8px) rotate(calc(var(--rot, 0deg) + 0.7deg));
    }
    100% {
        transform: translateY(6px) rotate(calc(var(--rot, 0deg) - 0.7deg));
    }
}

.collage-card-1 { --rot: -3deg; }
.collage-card-2 { --rot: 2deg; }
.collage-card-3 { --rot: -1deg; }
.collage-card-4 { --rot: 4deg; }
.collage-card-5 { --rot: -4deg; }

/* --- 2. Sparkle Pulse & Glow --- */
@keyframes pulseSparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
        box-shadow: 0 0 8px var(--accent);
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 16px var(--accent-dark);
    }
}

/* --- 3. Micro Spinners --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.6s linear infinite;
}

/* --- 4. Card Entrance Fade & Slide --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-slide {
    animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 5. Skeleton Loading Shimmer --- */
@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-loading {
    background: linear-gradient(90deg, var(--surface-hover) 25%, var(--border-light) 50%, var(--surface-hover) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

/* --- 6. Prefers Reduced Motion (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .collage-card, .logo-sparkle {
        animation: none !important;
    }
}
