/* ========================================
   AI CARD PREMIUM EFFECTS
   ======================================== */

.ai-tool-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible !important;
}

    .ai-tool-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #FF6B35, #8B5CF6, #3B82F6, #06B6D4);
        border-radius: 27px;
        z-index: -1;
        opacity: 0.7;
        filter: blur(8px);
        animation: ai-border-glow 3s infinite linear;
        background-size: 300% 300%;
    }

    .ai-tool-card .tool-icon {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

        .ai-tool-card .tool-icon i {
            background: linear-gradient(135deg, #FF6B35, #8B5CF6, #3B82F6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

/* Premium AI Badge */
.ai-badge-premium {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FF6B35, #8B5CF6, #3B82F6);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    animation: ai-premium-float 3s ease-in-out infinite;
}

    .ai-badge-premium i {
        font-size: 0.8rem;
        color: #FFD700;
    }

    .ai-badge-premium .ai-text {
        background: linear-gradient(to bottom, #ffffff, #f0f0f0);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: 'Arial Black', sans-serif;
    }

/* Ultra AI Badge */
.ai-badge-ultra {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF4500);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    min-width: 70px;
    height: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    animation: ultraBadgeFloat 3s ease-in-out infinite;
    z-index: 1000;
}

/* AI Pulse Ring */
.ai-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: linear-gradient(45deg, #FF6B35, #8B5CF6, #3B82F6);
    opacity: 0.15;
    filter: blur(15px);
    animation: ai-pulse 3s infinite;
    z-index: -2;
}

/* Smart Badge */
.ai-smart-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* AI Particles */
.ai-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 25px;
    z-index: 0;
}

.ai-particle {
    position: absolute;
    border-radius: 50%;
    animation: ai-particle-float var(--duration, 4s) infinite linear;
}

.ai-particle-float {
    animation: ai-particle-float 4s infinite linear;
}

/* Animations */
@keyframes ai-border-glow {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 0.5;
    }

    25% {
        background-position: 100% 0%;
        opacity: 0.7;
    }

    50% {
        background-position: 100% 100%;
        opacity: 0.5;
    }

    75% {
        background-position: 0% 100%;
        opacity: 0.7;
    }
}

@keyframes ai-premium-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(2deg);
    }

    75% {
        transform: translateY(3px) rotate(-2deg);
    }
}

@keyframes ai-pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

@keyframes ultraBadgeFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.05);
    }
}

@keyframes ai-particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translate(var(--x, 100px), var(--y, -100px)) scale(0);
        opacity: 0;
    }
}

/* Hover Effects */
.ai-tool-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(3deg) rotateY(2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 107, 53, 0.3);
}

    .ai-tool-card:hover::before {
        opacity: 1;
    }

    .ai-tool-card:hover .tool-icon {
        transform: scale(1.18) rotate(8deg);
        box-shadow: 0 0 50px rgba(255, 107, 53, 0.7);
    }

    .ai-tool-card:hover .ai-particle {
        animation-duration: 1.3s;
        opacity: 0.9;
        filter: brightness(1.3);
    }
