/* LIQUID GLASS EFFECTS - Effets liquides et verre sur boutons/icônes */

/* Glass morphism de base */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Liquid button effect */
.liquid-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.liquid-btn:hover::before {
    width: 300%;
    height: 300%;
}

.liquid-btn:active::before {
    width: 100%;
    height: 100%;
    transition: width 0.2s ease, height 0.2s ease;
}

/* Glass card avec reflet liquide */
.glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.glass-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.3);
    border-color: rgba(139, 0, 0, 0.3);
}

/* Icon avec effet glass liquide */
.glass-icon {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.glass-icon:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.glass-icon:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

/* Bouton avec ondulation liquide au clic */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Navbar glass améliorée */
.glass-nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Input avec effet glass */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
    outline: none;
}

/* Liquid glow effect */
.liquid-glow {
    position: relative;
}

.liquid-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #8B0000, #dc2626, #8B0000);
    background-size: 200% 200%;
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    animation: liquid-glow-animation 3s ease infinite;
    transition: opacity 0.3s ease;
}

.liquid-glow:hover::after {
    opacity: 0.7;
}

@keyframes liquid-glow-animation {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Effet de verre brisé au hover */
.shatter-glass {
    position: relative;
    transition: all 0.3s ease;
}

.shatter-glass:hover {
    animation: shatter 0.5s ease;
}

@keyframes shatter {
    0% { transform: scale(1); }
    25% { transform: scale(0.98) rotate(-1deg); }
    50% { transform: scale(1.02) rotate(1deg); }
    75% { transform: scale(0.99) rotate(-0.5deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Dropdown menu glass */
.glass-dropdown {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Modal glass effect */
.glass-modal {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(139, 0, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Frosted glass effect */
.frosted-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.frosted-glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 0, 0, 0.4);
}
