/* Hint System - Orange Glow for Combinable Elements */

/* Orange cloud-like aura animation - main element glow */
@keyframes hintAuraGlow {
    0%, 100% {
        filter: brightness(1.05) saturate(1.1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.15) saturate(1.2);
        transform: scale(1.02);
    }
}

/* Soft cloud-like box shadow animation */
@keyframes hintPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 140, 0, 0.3),
            0 0 40px rgba(255, 140, 0, 0.25),
            0 0 60px rgba(255, 140, 0, 0.15),
            0 0 80px rgba(255, 140, 0, 0.08),
            inset 0 0 15px rgba(255, 140, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 140, 0, 0.45),
            0 0 60px rgba(255, 140, 0, 0.35),
            0 0 90px rgba(255, 140, 0, 0.25),
            0 0 120px rgba(255, 140, 0, 0.15),
            inset 0 0 25px rgba(255, 140, 0, 0.3);
    }
}

/* Apply to elements with hint - cloud-like aura */
.derived-element.hint-glow,
.core-element-integrated.hint-glow {
    animation: hintAuraGlow 3s ease-in-out infinite;
    border: none !important;
    position: relative;
    z-index: 100;
    filter: brightness(1.1);
}

/* Cloud-like aura effect emanating from center */
.derived-element.hint-glow::before,
.core-element-integrated.hint-glow::before {
    content: '';
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(255, 140, 0, 0.45) 0%,
        rgba(255, 140, 0, 0.35) 15%,
        rgba(255, 140, 0, 0.25) 30%,
        rgba(255, 140, 0, 0.15) 50%,
        rgba(255, 140, 0, 0.08) 70%,
        transparent 100%);
    animation: hintCloudPulse 3s ease-in-out infinite;
    pointer-events: none;
    opacity: 1 !important;
    filter: blur(10px);
    transform-origin: center;
}

/* Cloud-like pulsing animation */
@keyframes hintCloudPulse {
    0%, 100% {
        transform: scale(0.85) rotate(0deg);
        opacity: 0.7;
        filter: blur(10px);
    }
    25% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.85;
        filter: blur(12px);
    }
    50% {
        transform: scale(1.25) rotate(-3deg);
        opacity: 1;
        filter: blur(15px);
    }
    75% {
        transform: scale(1.05) rotate(2deg);
        opacity: 0.85;
        filter: blur(12px);
    }
}

/* Additional ethereal glow layer - outer cloud */
.derived-element.hint-glow::after,
.core-element-integrated.hint-glow::after {
    content: '';
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(255, 165, 0, 0.25) 0%,
        rgba(255, 150, 0, 0.18) 25%,
        rgba(255, 140, 0, 0.12) 45%,
        rgba(255, 130, 0, 0.06) 65%,
        transparent 85%);
    animation: hintCloudFloat 4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
    filter: blur(20px);
    z-index: -1;
    transform-origin: center;
}

@keyframes hintCloudFloat {
    0%, 100% {
        transform: scale(0.95) rotate(0deg) translateY(0);
        opacity: 0.6;
    }
    20% {
        transform: scale(1.08) rotate(72deg) translateY(-2px);
        opacity: 0.75;
    }
    40% {
        transform: scale(1.15) rotate(144deg) translateY(1px);
        opacity: 0.85;
    }
    60% {
        transform: scale(1.05) rotate(216deg) translateY(-1px);
        opacity: 0.8;
    }
    80% {
        transform: scale(0.98) rotate(288deg) translateY(2px);
        opacity: 0.7;
    }
}

/* Hint tooltip - DEPRECATED: "Match Me" text now integrated into hint window */
/* Keeping styles commented in case needed for reference
.hint-tooltip {
    position: fixed;
    background: linear-gradient(135deg, 
        rgba(255, 140, 0, 0.95) 0%, 
        rgba(255, 100, 0, 0.95) 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 140, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hint-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}
*/

/* Hint highlight for old system compatibility */
.hint-highlight {
    animation: hintPulse 3s ease-in-out infinite;
    border: none !important;
    box-shadow: 
        0 0 30px rgba(255, 140, 0, 0.8),
        0 0 60px rgba(255, 140, 0, 0.5),
        inset 0 0 20px rgba(255, 140, 0, 0.3);
    filter: blur(0.5px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .derived-element.hint-glow::before,
    .core-element-integrated.hint-glow::before {
        inset: -15px;
        filter: blur(6px);
    }
    
    .derived-element.hint-glow::after,
    .core-element-integrated.hint-glow::after {
        inset: -20px;
        filter: blur(10px);
    }
}