/* ============================================
   MEDICENTER PREMIUM - GLASSMORPHISM & NEUMORPHISM EFFECTS
   Advanced visual effects for ultra-elegant design
   ============================================ */

/* Glassmorphism Base Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-card-dark {
    background: rgba(30, 64, 175, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Neumorphism Base Classes */
.neuro-card {
    background: #f0f0f3;
    border-radius: 20px;
    box-shadow: 
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
    padding: 30px;
    transition: all 0.3s ease;
}

.neuro-card:hover {
    box-shadow: 
        inset 20px 20px 60px #bebebe,
        inset -20px -20px 60px #ffffff;
}

.neuro-button {
    background: linear-gradient(145deg, #f0f0f3, #cacaca);
    border-radius: 50px;
    box-shadow: 
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
    border: none;
    padding: 15px 30px;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.neuro-button:hover {
    box-shadow: 
        inset 20px 20px 60px #bebebe,
        inset -20px -20px 60px #ffffff;
    color: #1e40af;
}

.neuro-input {
    background: #f0f0f3;
    border: none;
    border-radius: 15px;
    box-shadow: 
        inset 20px 20px 60px #bebebe,
        inset -20px -20px 60px #ffffff;
    padding: 15px 20px;
    outline: none;
    transition: all 0.3s ease;
}

.neuro-input:focus {
    box-shadow: 
        inset 10px 10px 30px #bebebe,
        inset -10px -10px 30px #ffffff;
}

/* 3D Transform Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg);
}

.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flip-card-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: rotateY(180deg);
}

/* Floating Animation Effects */
.float-1 {
    animation: floating-1 3s ease-in-out infinite;
}

.float-2 {
    animation: floating-2 4s ease-in-out infinite;
}

.float-3 {
    animation: floating-3 5s ease-in-out infinite;
}

@keyframes floating-1 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floating-2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(5px);
    }
    75% {
        transform: translateY(-5px) translateX(-5px);
    }
}

@keyframes floating-3 {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    33% {
        transform: translateY(-10px) rotateZ(1deg);
    }
    66% {
        transform: translateY(-15px) rotateZ(-1deg);
    }
}

/* Gradient Text Effects */
.gradient-text-primary {
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-rainbow {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Morphing Shape Effects */
.morph-blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(14, 165, 233, 0.1));
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Particle Background Effect */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(30, 64, 175, 0.3);
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Pulse Wave Effect */
.pulse-wave {
    position: relative;
    overflow: hidden;
}

.pulse-wave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.3);
    transform: translate(-50%, -50%);
    animation: pulseWave 3s ease-out infinite;
}

@keyframes pulseWave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 70%
    );
    background-size: 200% 200%;
    animation: holographicShine 3s ease-in-out infinite;
}

@keyframes holographicShine {
    0%, 100% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
}

/* Magnetic Field Effect */
.magnetic-field {
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-field::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.magnetic-field:hover::after {
    opacity: 1;
}

.magnetic-field:hover {
    transform: translateY(-5px);
}

/* Liquid Motion Effect */
.liquid-button {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    color: white;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.liquid-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.liquid-button:hover::before {
    left: 100%;
}

.liquid-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.liquid-button:active::after {
    width: 300px;
    height: 300px;
}

/* Aurora Effect */
.aurora-bg {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6, #06b6d4, #8b5cf6);
    background-size: 400% 400%;
    animation: auroraShift 15s ease infinite;
}

@keyframes auroraShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

/* Crystal Effect */
.crystal-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.crystal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent
    );
    animation: crystalGlow 2s ease-in-out infinite alternate;
}

@keyframes crystalGlow {
    0% {
        opacity: 0.3;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(100%);
    }
}

/* Responsive Design for Effects */
@media (max-width: 768px) {
    .glass-card,
    .glass-card-dark {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .neuro-card {
        box-shadow: 
            10px 10px 30px #bebebe,
            -10px -10px 30px #ffffff;
    }
    
    .card-3d:hover {
        transform: rotateY(5deg) rotateX(5deg);
    }
    
    .particle-dot {
        display: none;
    }
}

/* Accessibility Considerations */
@media (prefers-reduced-motion: reduce) {
    .float-1,
    .float-2,
    .float-3,
    .morph-blob,
    .particle-dot,
    .holographic,
    .aurora-bg,
    .crystal-card::before {
        animation: none;
    }
    
    .card-3d:hover,
    .flip-card:hover .flip-card-inner {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .glass-card,
    .glass-card-dark,
    .neuro-card,
    .crystal-card {
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    .gradient-text-primary,
    .gradient-text-accent,
    .gradient-text-rainbow {
        -webkit-text-fill-color: initial !important;
        color: #1e40af !important;
    }
}