/* Glassmorphism Effects and Utilities */

/* Glass Variants */
.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-medium {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-heavy {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-colored {
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.1), 
        rgba(0, 212, 255, 0.05));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Glass Shapes */
.glass-rounded {
    border-radius: 20px;
}

.glass-circle {
    border-radius: 50%;
}

.glass-sharp {
    border-radius: 10px;
}

/* Glass Effects */
.glass-glow {
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-shadow {
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

.glass-border-glow {
    position: relative;
}

.glass-border-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        var(--primary-blue), 
        var(--secondary-aqua), 
        var(--accent-teal));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-border-glow:hover::before {
    opacity: 1;
}

/* Frosted Glass */
.frosted-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

/* Neumorphic Glass */
.neumorph-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        20px 20px 60px rgba(0, 0, 0, 0.5),
        -20px -20px 60px rgba(255, 255, 255, 0.05);
}

.neumorph-glass-inset {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        inset 20px 20px 60px rgba(0, 0, 0, 0.5),
        inset -20px -20px 60px rgba(255, 255, 255, 0.05);
}

/* Glass Overlays */
.glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
}

.glass-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 100%);
    pointer-events: none;
}

/* Interactive Glass Effects */
.glass-interactive {
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-interactive:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 102, 204, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.glass-interactive:active {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(0, 102, 204, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Glass Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: glassShine 3s ease-in-out infinite;
}

/* Glass Buttons */
.btn-glass-primary {
    background: rgba(0, 102, 204, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 204, 0.4);
    color: var(--pure-white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-glass-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-glass-primary:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
}

/* Glass Cards */
.glass-card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card-hover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-blue), 
        var(--secondary-aqua), 
        var(--accent-teal));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glass-card-hover:hover::after {
    opacity: 1;
}

/* Glass Morphing */
.glass-morph {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-morph:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
}

/* Glass Text Effects */
.glass-text {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-text-glow {
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(0, 212, 255, 0.1);
}

/* Glass Animations */
@keyframes glassShine {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.5);
        opacity: 0.8;
    }
}

@keyframes glassFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

.glass-float {
    animation: glassFloat 6s ease-in-out infinite;
}

/* Glass Loading States */
.glass-loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--secondary-aqua);
    border-radius: 50%;
    animation: glassSpin 1s linear infinite;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@keyframes glassSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Glass Tooltips */
.glass-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--pure-white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-tooltip.show {
    opacity: 1;
}

/* Glass Dividers */
.glass-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    margin: 40px 0;
}

.glass-divider-vertical {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
}