/* ===== GLASS MORPHISM EFFECTS ===== */

/* Base Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-30), transparent);
}

/* Glass Card Variants */
.glass-card {
    background: rgba(30, 64, 175, 0.15);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(10, 14, 26, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.6), transparent);
}

.glass-card:hover {
    background: rgba(30, 64, 175, 0.25);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 40px rgba(10, 14, 26, 0.5), 0 0 30px rgba(30, 64, 175, 0.3);
    transform: translateY(-3px);
}

/* Glass Button */
.glass-btn {
    background: var(--vibrant-gradient);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 16px;
    color: var(--text-primary);
    padding: 14px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.glass-btn:hover {
    background: var(--pulse-gradient);
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4), 0 0 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.glass-btn:hover::before {
    left: 100%;
}

/* Glass Navigation */
.glass-nav {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-bottom: 1px solid rgba(30, 64, 175, 0.2);
    box-shadow: 0 4px 20px rgba(10, 14, 26, 0.4), 0 0 15px rgba(30, 64, 175, 0.1);
}

/* Glass Modal */
.glass-modal {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    box-shadow: 0 16px 60px rgba(10, 14, 26, 0.6);
}

/* Glass Sidebar */
.glass-sidebar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 20px rgba(10, 14, 26, 0.4);
}

/* Glass Input */
.glass-input {
    background: rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 14px;
    color: var(--text-primary);
    padding: 14px 18px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.glass-input:focus {
    background: rgba(30, 64, 175, 0.2);
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2), 0 0 15px rgba(37, 99, 235, 0.3);
    outline: none;
}

.glass-input::placeholder {
    color: var(--text-muted);
}

/* Water Ripple Effect */
.water-ripple {
    position: relative;
    overflow: hidden;
}

.water-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease-out;
    pointer-events: none;
}

.water-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Pulse Animation for Vibrant Elements */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.6), 0 0 40px rgba(29, 78, 216, 0.3);
    }
}

/* Floating Glass Elements */
.floating-glass {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glass Gradient Overlay - Vibrant Theme */
.glass-overlay {
    position: relative;
}

.glass-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.18) 0%, 
        rgba(139, 92, 246, 0.15) 25%, 
        rgba(6, 182, 212, 0.12) 50%, 
        rgba(124, 58, 237, 0.10) 75%, 
        rgba(236, 72, 153, 0.12) 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* Apple-style Frosted Glass */
.frosted-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(9, 10, 27, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Dynamic Glass Background - Vibrant Theme */
.dynamic-glass {
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.20) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    position: relative;
}

.dynamic-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--vibrant-gradient);
    opacity: 0.1;
    pointer-events: none;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.02);
    }
}

/* Glass Text Effect - Vibrant Theme */
.glass-text {
    background: var(--vibrant-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.glass-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #6366F1, #8B5CF6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(2px);
    opacity: 0.7;
    z-index: -1;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }
    100% {
        text-shadow: 0 0 35px rgba(99, 102, 241, 0.7), 0 0 45px rgba(139, 92, 246, 0.4);
    }
}

/* Vibrant Icon Effects */
.vibrant-icon {
    background: var(--pulse-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    transition: all 0.3s ease;
}

.vibrant-icon:hover {
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.7));
    transform: scale(1.1);
}