/* ====================================
   Modern Skeleton Loader - New Design
   Innovative & Contemporary Styles
   ==================================== */

/* ========== Style 1: Neon Glow Effect ========== */
.skeleton-neon {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, 
        rgba(196, 38, 54, 0.1) 0%, 
        rgba(196, 38, 54, 0.2) 25%, 
        rgba(40, 102, 143, 0.3) 50%,
        rgba(196, 38, 54, 0.2) 75%, 
        rgba(196, 38, 54, 0.1) 100%
    );
    background-size: 400% 100%;
    border-radius: 16px;
    border: 2px solid rgba(196, 38, 54, 0.15);
    animation: skeleton-neon-glow 2.5s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(196, 38, 54, 0.1),
        inset 0 0 10px rgba(40, 102, 143, 0.05);
}

@keyframes skeleton-neon-glow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 
            0 0 20px rgba(196, 38, 54, 0.1),
            inset 0 0 10px rgba(40, 102, 143, 0.05);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 
            0 0 30px rgba(40, 102, 143, 0.2),
            inset 0 0 15px rgba(196, 38, 54, 0.1);
    }
}

/* ========== Style 2: Stripes Moving ========== */
.skeleton-stripes {
    position: relative;
    overflow: hidden;
    background: repeating-linear-gradient(
        45deg,
        rgba(196, 38, 54, 0.08),
        rgba(196, 38, 54, 0.08) 10px,
        rgba(40, 102, 143, 0.12) 10px,
        rgba(40, 102, 143, 0.12) 20px
    );
    background-size: 200% 200%;
    border-radius: 14px;
    animation: skeleton-stripes-move 2s linear infinite;
}

@keyframes skeleton-stripes-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* ========== Style 3: Glitch Effect ========== */
.skeleton-glitch {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        rgba(196, 38, 54, 0.1) 0%,
        rgba(40, 102, 143, 0.15) 100%
    );
    border-radius: 12px;
    animation: skeleton-glitch-bg 3s ease-in-out infinite;
}

.skeleton-glitch::before,
.skeleton-glitch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0;
}

.skeleton-glitch::before {
    animation: skeleton-glitch-effect-1 2s infinite;
    background: rgba(196, 38, 54, 0.2);
}

.skeleton-glitch::after {
    animation: skeleton-glitch-effect-2 2s infinite;
    background: rgba(40, 102, 143, 0.2);
}

@keyframes skeleton-glitch-bg {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-2px);
    }
    80% {
        transform: translateX(2px);
    }
}

@keyframes skeleton-glitch-effect-1 {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    91%, 95% {
        opacity: 0.7;
        transform: translateX(5px);
    }
}

@keyframes skeleton-glitch-effect-2 {
    0%, 85%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    86%, 92% {
        opacity: 0.5;
        transform: translateX(-5px);
    }
}

/* ========== Style 4: Particles Flow ========== */
.skeleton-particles {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(196, 38, 54, 0.08), 
        rgba(40, 102, 143, 0.12)
    );
    border-radius: 16px;
}

.skeleton-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(196, 38, 54, 0.3) 0%,
        transparent 70%
    );
    animation: skeleton-particles-rotate 4s linear infinite;
}

.skeleton-particles::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(40, 102, 143, 0.3) 0%,
        transparent 70%
    );
    animation: skeleton-particles-rotate 4s linear infinite reverse;
}

@keyframes skeleton-particles-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ========== Style 5: 3D Depth Effect ========== */
.skeleton-3d {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(196, 38, 54, 0.15) 0%,
        rgba(40, 102, 143, 0.15) 50%,
        rgba(196, 38, 54, 0.15) 100%
    );
    border-radius: 16px;
    transform-style: preserve-3d;
    animation: skeleton-3d-float 3s ease-in-out infinite;
    box-shadow: 
        0 10px 30px rgba(196, 38, 54, 0.15),
        0 5px 15px rgba(40, 102, 143, 0.1);
}

.skeleton-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    animation: skeleton-3d-pulse 2s ease-in-out infinite;
}

@keyframes skeleton-3d-float {
    0%, 100% {
        transform: translateY(0) rotateX(0);
        box-shadow: 
            0 10px 30px rgba(196, 38, 54, 0.15),
            0 5px 15px rgba(40, 102, 143, 0.1);
    }
    50% {
        transform: translateY(-5px) rotateX(2deg);
        box-shadow: 
            0 15px 35px rgba(196, 38, 54, 0.2),
            0 7px 20px rgba(40, 102, 143, 0.15);
    }
}

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

/* ========== Style 6: Liquid Wave ========== */
.skeleton-liquid {
    position: relative;
    overflow: hidden;
    background: rgba(196, 38, 54, 0.08);
    border-radius: 20px;
}

.skeleton-liquid::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent 30%,
        rgba(40, 102, 143, 0.2) 50%,
        rgba(196, 38, 54, 0.3) 70%,
        transparent
    );
    animation: skeleton-liquid-wave 3s ease-in-out infinite;
}

@keyframes skeleton-liquid-wave {
    0% {
        transform: translateY(100%) rotate(0deg);
    }
    100% {
        transform: translateY(-10%) rotate(360deg);
    }
}

/* ========== Style 7: Hologram Effect ========== */
.skeleton-hologram {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(196, 38, 54, 0.1) 0%,
        rgba(40, 102, 143, 0.15) 50%,
        rgba(196, 38, 54, 0.1) 100%
    );
    border-radius: 14px;
    border: 1px solid rgba(40, 102, 143, 0.2);
}

.skeleton-hologram::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: skeleton-hologram-scan 2s linear infinite;
}

@keyframes skeleton-hologram-scan {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* ========== Style 8: Mosaic Tiles ========== */
.skeleton-mosaic {
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(45deg, rgba(196, 38, 54, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(196, 38, 54, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(40, 102, 143, 0.15) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(40, 102, 143, 0.15) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 12px;
    animation: skeleton-mosaic-shift 2s linear infinite;
}

@keyframes skeleton-mosaic-shift {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* ========== Modern Card Skeleton ========== */
.skeleton-modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        0 10px 40px rgba(196, 38, 54, 0.08),
        0 5px 20px rgba(40, 102, 143, 0.05);
    position: relative;
    overflow: hidden;
}

.skeleton-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(196, 38, 54, 0.1),
        rgba(40, 102, 143, 0.15),
        transparent
    );
    animation: skeleton-card-shine 2s infinite;
}

@keyframes skeleton-card-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* ========== Glass Morphism Skeleton ========== */
.skeleton-glass {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(196, 38, 54, 0.1);
}

.skeleton-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(196, 38, 54, 0.2),
        rgba(40, 102, 143, 0.2),
        transparent
    );
    animation: skeleton-glass-slide 2s ease-in-out infinite;
}

@keyframes skeleton-glass-slide {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    100% {
        left: 150%;
    }
}

/* ========== Gradient Mesh ========== */
.skeleton-mesh {
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 38, 54, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(40, 102, 143, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(196, 38, 54, 0.1) 0%, transparent 50%);
    background-size: 100% 100%;
    border-radius: 16px;
    animation: skeleton-mesh-morph 4s ease-in-out infinite;
}

@keyframes skeleton-mesh-morph {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 40% 20%;
    }
    33% {
        background-position: 100% 0%, 0% 100%, 60% 80%;
    }
    66% {
        background-position: 0% 100%, 100% 0%, 20% 40%;
    }
}

/* RTL Support */
[dir="rtl"] .skeleton-stripes {
    animation: skeleton-stripes-move-rtl 2s linear infinite;
}

@keyframes skeleton-stripes-move-rtl {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -50px 50px;
    }
}
