/* ===== MODERN EYE-SOOTHING EFFECTS ===== */

/* ===== GLASSMORPHISM EFFECTS ===== */

/* Light Glassmorphism */
.glass-light {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-medium {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ===== GRADIENT EFFECTS ===== */

/* Text Gradients */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Gradients */
.bg-gradient-soft {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #ffeef8 0%, #f0f4ff 100%);
}

.bg-gradient-cool {
    background: linear-gradient(135deg, #e8f5ff 0%, #f0f8ff 100%);
}

/* Animated Gradients */
.bg-gradient-animated {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* ===== SHADOW EFFECTS ===== */

/* Soft Shadows */
.shadow-soft {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Colored Shadows */
.shadow-primary {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.shadow-secondary {
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.shadow-accent {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

/* Hover Shadow Effects */
.shadow-hover {
    transition: box-shadow var(--transition-normal);
}

.shadow-hover:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===== BLUR EFFECTS ===== */

.blur-light {
    filter: blur(2px);
}

.blur-medium {
    filter: blur(5px);
}

.blur-heavy {
    filter: blur(10px);
}

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.backdrop-blur-strong {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== HOVER EFFECTS ===== */

/* Smooth Transitions */
.transition-all {
    transition: all var(--transition-normal);
}

.transition-fast {
    transition: all var(--transition-fast);
}

.transition-slow {
    transition: all var(--transition-slow);
}

/* Hover Transforms */
.hover-lift-gentle {
    transition: transform var(--transition-normal);
}

.hover-lift-gentle:hover {
    transform: translateY(-3px);
}

.hover-lift-medium {
    transition: transform var(--transition-normal);
}

.hover-lift-medium:hover {
    transform: translateY(-8px);
}

.hover-scale-gentle {
    transition: transform var(--transition-normal);
}

.hover-scale-gentle:hover {
    transform: scale(1.02);
}

.hover-scale-medium {
    transition: transform var(--transition-normal);
}

.hover-scale-medium:hover {
    transform: scale(1.05);
}

/* ===== BORDER EFFECTS ===== */

/* Gradient Borders */
.border-gradient {
    position: relative;
    background: var(--background-secondary);
    border-radius: var(--border-radius-md);
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--gradient-primary);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: source-out;
}

/* Animated Borders */
.border-animated {
    position: relative;
    overflow: hidden;
}

.border-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    transition: left 0.6s ease;
}

.border-animated:hover::before {
    left: 100%;
}

/* ===== LOADING EFFECTS ===== */

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Pulse Loading */
.pulse-loading {
    position: relative;
    overflow: hidden;
}

.pulse-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* ===== INTERACTIVE EFFECTS ===== */

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Magnetic Effect */
.magnetic {
    position: relative;
    transition: transform var(--transition-fast);
}

.magnetic:hover {
    transform: translate(2px, -2px);
}

/* ===== BACKGROUND PATTERNS ===== */

/* Dot Pattern */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(102, 126, 234, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Grid Pattern */
.pattern-grid {
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Diagonal Lines */
.pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(102, 126, 234, 0.05) 10px,
        rgba(102, 126, 234, 0.05) 20px
    );
}

/* ===== SCROLL EFFECTS ===== */

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Sticky Elements */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 1000;
}

/* ===== FOCUS EFFECTS ===== */

/* Custom Focus Styles */
.focus-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.focus-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.3);
}

/* ===== ACCESSIBILITY ===== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .bg-gradient-animated {
        animation: none;
    }
    
    .skeleton {
        animation: none;
    }
    
    .pulse-loading::after {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-light,
    .glass-medium,
    .glass-dark {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--text-primary);
    }
    
    .shadow-soft,
    .shadow-medium,
    .shadow-strong {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
}

/* ===== RESPONSIVE EFFECTS ===== */

@media (max-width: 768px) {
    .hover-lift-medium:hover {
        transform: translateY(-4px);
    }
    
    .hover-scale-medium:hover {
        transform: scale(1.03);
    }
    
    .shadow-hover:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 480px) {
    .backdrop-blur,
    .backdrop-blur-strong {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}