/* 
 * Thaphra Custom Keyframe Animations
 * Glowing effects, button pulsations, badge highlights
 */

/* Red glowing animation for AI verification button */
@keyframes redGlowPulse {
    0% {
        box-shadow: 0 0 10px rgba(211, 47, 47, 0.4), inset 0 0 5px rgba(211, 47, 47, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(211, 47, 47, 0.8), inset 0 0 10px rgba(211, 47, 47, 0.4);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 0 10px rgba(211, 47, 47, 0.4), inset 0 0 5px rgba(211, 47, 47, 0.2);
    }
}

.btn-ai-glow-animate {
    position: relative;
    overflow: hidden;
}

.btn-ai-glow-animate::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: none;
    animation: shimmerSwipe 3.5s infinite ease-in-out;
}

@keyframes shimmerSwipe {
    0% {
        left: -60%;
    }
    15% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* Premium Badge Base Styling */
.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-right: 5px;
    box-sizing: border-box;
}

.badge-item i {
    font-size: 0.8rem;
    color: #FFD700 !important;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.7)) !important;
}

/* Subtle Shimmer effect for premium badges */
.badge-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 35%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: none;
    animation: shimmerSwipe 4s infinite ease-in-out;
    pointer-events: none;
}

/* Specific Premium Tiers & Glowing Colors */
.badge-diamond {
    background: rgba(0, 198, 255, 0.08) !important;
    border: 1px solid rgba(0, 229, 255, 0.7) !important;
    color: #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25) !important;
    text-shadow: 0 0 2px rgba(0, 229, 255, 0.3);
}

.badge-gold {
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.8) !important;
    color: #ffd700 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
    text-shadow: 0 0 2px rgba(212, 175, 55, 0.4);
}

.badge-silver {
    background: rgba(144, 164, 174, 0.08) !important;
    border: 1px solid rgba(192, 192, 192, 0.7) !important;
    color: #cfd8dc !important;
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.15) !important;
}

.badge-verified {
    background: rgba(46, 204, 113, 0.08) !important;
    border: 1px solid rgba(46, 204, 113, 0.7) !important;
    color: #2ecc71 !important;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.2) !important;
}

.badge-trusted {
    background: rgba(30, 144, 255, 0.08) !important;
    border: 1px solid rgba(30, 144, 255, 0.7) !important;
    color: #1e90ff !important;
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.2) !important;
}

.badge-premium {
    background: rgba(255, 69, 0, 0.08) !important;
    border: 1px solid rgba(255, 94, 98, 0.8) !important;
    color: #ff5e62 !important;
    box-shadow: 0 0 10px rgba(255, 94, 98, 0.25) !important;
}

.badge-vip {
    background: rgba(224, 64, 251, 0.08) !important;
    border: 1px solid rgba(224, 64, 251, 0.8) !important;
    color: #e040fb !important;
    box-shadow: 0 0 10px rgba(224, 64, 251, 0.3) !important;
    animation: borderRainbow 4s infinite linear;
}

.badge-top-seller {
    background: rgba(255, 0, 127, 0.08) !important;
    border: 1px solid rgba(255, 0, 127, 0.8) !important;
    color: #ff007f !important;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.25) !important;
}

.badge-excellent {
    background: rgba(0, 255, 0, 0.06) !important;
    border: 1px solid rgba(0, 255, 0, 0.7) !important;
    color: #00ff00 !important;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.2) !important;
}

.badge-standard {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #a0a0b0 !important;
}

@keyframes borderRainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Float up animation for card hover */
.float-hover {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.float-hover:hover {
    transform: translateY(-8px);
}

/* Typing indicator dots animation */
.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 3px;
    background: var(--text-gray);
    animation: typingWave 1.3s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingWave {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}
