/* 2026 AI Chat Button - Ultra Modern Design - SON HALİ */

/* Ana Button */
.ai-chat-floating-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999;
    width: 68px;
    height: 68px;
    cursor: pointer;
    background: conic-gradient(from 0deg, #ff006e, #8338ec, #3a86ff, #06ffa5, #ffbe0b, #ff006e);
    background-size: 400% 400%;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(255, 0, 110, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: morphingGradient 4s ease-in-out infinite, floatingPulse 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
}

.ai-chat-floating-btn::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(59, 130, 246, 0.75);
    border-radius: 21px;
    backdrop-filter: blur(15px);
}

.ai-indicator {
    position: relative;
    z-index: 2;
}

.pulse-ring {
    width: 42px;
    height: 42px;
    border: 2.5px solid transparent;
    border-top-color: #00ffff;
    border-left-color: #ff00ff;
    border-radius: 50%;
    animation: pulseRotate 4s linear infinite;
}

.ai-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    animation: textPulse 2s ease-in-out infinite;
}

/* Animasyonlar */
@keyframes pulseRotate {
    0% { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: rotate(180deg) scale(1.1); 
        opacity: 1; 
    }
    100% { 
        transform: rotate(360deg) scale(1); 
        opacity: 0.8; 
    }
}

@keyframes textPulse {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8); 
    }
    50% { 
        text-shadow: 0 0 40px rgba(255, 0, 255, 1); 
    }
}

@keyframes floatingPulse {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-8px) scale(1.02); 
    }
}

@keyframes morphingGradient {
    0%, 100% { 
        background-position: 0% 50%; 
        border-radius: 28px; 
    }
    25% { 
        background-position: 100% 50%; 
        border-radius: 32px 20px 32px 20px; 
    }
    50% { 
        background-position: 200% 50%; 
        border-radius: 20px 32px 20px 32px; 
    }
    75% { 
        background-position: 300% 50%; 
        border-radius: 36px 24px 36px 24px; 
    }
}

/* Hover Efektleri */
.ai-chat-floating-btn:hover {
    transform: translateY(-12px) scale(1.1) rotate(5deg);
    border-radius: 32px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.4),
        0 20px 60px rgba(255, 0, 110, 0.4),
        0 0 80px rgba(51, 56, 236, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Kenar Yazı */
.side-text {
    position: absolute;
    left: -150px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: 42px;
    padding: 0 18px;
    background: conic-gradient(from 0deg, #ff006e, #8338ec, #3a86ff, #06ffa5, #ffbe0b, #ff006e);
    background-size: 400% 400%;
    border-radius: 21px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    animation: morphingGradient 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, left 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.side-text::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(59, 130, 246, 0.75);
    border-radius: 18px;
    backdrop-filter: blur(15px);
}

.side-text span {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #ff00ff;
}

.side-text.visible {
    opacity: 1;
    left: -165px;
}

/* Mobilde daha küçük */
@media (max-width: 768px) {
    .ai-chat-floating-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .pulse-ring {
        width: 38px;
        height: 38px;
    }
    
    .ai-text {
        font-size: 20px;
    }
    
    .side-text {
        left: -120px;
        height: 38px;
        padding: 0 16px;
        font-size: 12px;
    }
    
    .side-text.visible {
        left: -135px;
    }
}

@media (max-width: 480px) {
    .side-text {
        left: -110px;
        font-size: 11px;
        padding: 0 14px;
        height: 34px;
    }
    
    .side-text.visible {
        left: -125px;
    }
}