/* Highlight Discovery Tooltip Styles */

.highlight-discovery-tooltip {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
}

.highlight-discovery-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.tooltip-gradient {
    background: linear-gradient(135deg, #FFFDF9 0%, #F8F6F0 100%);
    border-radius: 20px;
    border: 1.5px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.15);
    overflow: hidden;
    position: relative;
}

/* Shimmer animation */
.tooltip-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(139, 92, 246, 0) 0%,
        rgba(139, 92, 246, 0.08) 50%,
        rgba(139, 92, 246, 0) 100%
    );
    animation: shimmer 2s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.tooltip-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* Header */
.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tooltip-icon {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.tooltip-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #2C1810;
    margin: 0;
    letter-spacing: 0.1px;
}

/* Demo GIF Container */
.tooltip-demo-container {
    border-radius: 12px;
    overflow: hidden;
    background-color: #F5F5F7;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tooltip-demo-gif {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

/* Footer */
.tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tooltip-description {
    flex: 1;
    font-size: 14px;
    color: #6B7280;
    line-height: 20px;
    margin: 0;
}

.tooltip-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background-color: rgba(139, 92, 246, 0.12);
    border: none;
    color: #8B5CF6;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.15);
    flex-shrink: 0;
}

.tooltip-cta:hover {
    background-color: rgba(139, 92, 246, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2);
}

.tooltip-cta:active {
    transform: translateY(0);
}

.tooltip-cta svg {
    width: 18px;
    height: 18px;
}

/* Decorative border at bottom */
.tooltip-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: rgba(139, 92, 246, 0.18);
    border-radius: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .highlight-discovery-tooltip {
        width: 95%;
        top: 80px;
    }

    .tooltip-content {
        padding: 16px;
        gap: 12px;
    }

    .tooltip-title {
        font-size: 14px;
    }

    .tooltip-description {
        font-size: 13px;
    }

    .tooltip-demo-gif {
        max-height: 200px;
    }

    .tooltip-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tooltip-cta {
        width: 100%;
        justify-content: center;
    }
}
