/* highlight-animation.css */

.highlight-me {
    position: relative;
    display: inline;
    padding: 0 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.highlight-me::before {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 0;
    bottom: 0;
    background: linear-gradient(to right,
        rgba(255, 255, 0, 0) 0%,
        rgba(255, 255, 0, 0.5) 10%,
        rgba(255, 255, 0, 0.5) 90%,
        rgba(255, 255, 0, 0) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.5s ease-out;
    z-index: -1;
    opacity: 0;
}

.highlight-me.active::before {
    opacity: 1;
    background-position: 0 0;
}

/* Marker texture effect */
.highlight-me::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.1) 2px,
            transparent 2px,
            transparent 4px
        );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.highlight-me.active::after {
    opacity: 1;
}

/* Optional: Add a subtle hover effect */
.highlight-me:hover {
    color: #000;
}