/* Additional Animation Styles */

/* Loading animations */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Text animations */
.typewriter {
    overflow: hidden;
    border-right: 0.15em solid #ea6666;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ea6666; }
}

/* Gradient animations */
.gradient-animation {
    background: linear-gradient(-45deg, #ea6666, #764ba2, #667eea, #f093fb, #ea6666);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Color changing animations */
.color-shift {
    animation: colorChange 8s ease-in-out infinite;
}

@keyframes colorChange {
    0%, 100% { color: #ea6666; }
    25% { color: #764ba2; }
    50% { color: #667eea; }
    75% { color: #f093fb; }
}

/* Blur effects */
.blur-in {
    filter: blur(10px);
    animation: blurIn 1s ease-out forwards;
}

@keyframes blurIn {
    to { filter: blur(0); }
}

/* Advanced particle system */
.advanced-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.advanced-particle {
    position: absolute;
    border-radius: 50%;
    animation: advancedFloat 10s infinite linear;
}

.advanced-particle:nth-child(odd) {
    background: linear-gradient(45deg, #ea6666, #764ba2);
    box-shadow: 0 0 20px rgba(234, 102, 102, 0.5);
}

.advanced-particle:nth-child(even) {
    background: linear-gradient(45deg, #667eea, #f093fb);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

@keyframes advancedFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Morphing shapes */
.morphing-shape {
    position: absolute;
    background: linear-gradient(45deg, #ea6666, #764ba2, #667eea);
    border-radius: 50%;
    animation: morph 8s ease-in-out infinite;
    filter: blur(2px);
}

@keyframes morph {
    0%, 100% {
        border-radius: 50%;
        transform: scale(1) rotate(0deg);
    }
    25% {
        border-radius: 20% 80% 50% 50%;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        border-radius: 80% 20% 80% 20%;
        transform: scale(0.8) rotate(180deg);
    }
    75% {
        border-radius: 50% 50% 20% 80%;
        transform: scale(1.1) rotate(270deg);
    }
}

/* Rainbow border */
.rainbow-border {
    position: relative;
    background: linear-gradient(45deg, #ea6666, #764ba2, #667eea, #f093fb);
    padding: 3px;
    border-radius: 10px;
    animation: rainbowRotate 3s linear infinite;
}

.rainbow-border::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--card-bg);
    border-radius: 7px;
}

@keyframes rainbowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating elements */
.floating-element {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse glow */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(234, 102, 102, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(234, 102, 102, 0.8), 0 0 30px rgba(234, 102, 102, 0.4);
    }
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}



/* Liquid effect */
.liquid-effect {
    position: relative;
    overflow: hidden;
}

.liquid-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(234, 102, 102, 0.1), rgba(118, 75, 162, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 50%;
    animation: liquidFlow 8s ease-in-out infinite;
}

@keyframes liquidFlow {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    33% { transform: translate(-50%, -50%) rotate(120deg) scale(1.1); }
    66% { transform: translate(-50%, -50%) rotate(240deg) scale(0.9); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* Holographic effect */
.holographic {
    background: linear-gradient(45deg, #ea6666, #764ba2, #667eea, #f093fb);
    background-size: 400% 400%;
    animation: holographicShift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes holographicShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particle effects */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #ea6666;
    border-radius: 50%;
    opacity: 0.7;
    animation: particleFloat 6s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Glitch effect */
.glitch {
    position: relative;
    color: #ea6666;
    font-weight: bold;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(2px, -2px);
    }
}


.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Shake animation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Zoom in animation */
.zoom-in {
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide animations */
.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility classes */
.no-scroll {
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.focus-visible {
    outline: 2px solid #ea6666;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
    
    .category-card,
    .product-card {
        border: 1px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .zoom-in {
        animation: none;
    }
    
    .hover-lift:hover,
    .hover-scale:hover {
        transform: none;
    }
}
