/* Nameplate Effect CSS */

/* Base nameplate effect class */
.nameplate-effect {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(124, 218, 83, 0.3);
    transition: all 0.4s ease;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.nameplate-effect:hover {
    box-shadow: 0 0 25px rgba(124, 218, 83, 0.6), 0 0 15px rgba(150, 255, 150, 0.5);
    transform: translateY(-2px);
}

/* Nameplate container for particles */
.nameplate-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
}

/* Nameplate overlay with pattern */
.nameplate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%237cda53" d="M10,0 C12,5 15,8 20,10 C15,12 12,15 10,20 C8,15 5,12 0,10 C5,8 8,5 10,0 Z"/></svg>');
    background-size: 20px 20px;
    opacity: 0.05;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    mix-blend-mode: screen;
}

.nameplate-effect:hover .nameplate-overlay {
    opacity: 0.15;
    background-size: 25px 25px;
    animation: nameplate-pattern 20s infinite linear;
}

@keyframes nameplate-pattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Nameplate content styling */
.nameplate-content {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nameplate-icon {
    color: #7cda53;
    font-size: 1.2em;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Nameplate border effect */
.nameplate-border {
    position: relative;
}

.nameplate-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(124, 218, 83, 0.3);
    border-radius: inherit;
    box-sizing: border-box;
    animation: border-pulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes border-pulse {
    0% {
        border-color: rgba(124, 218, 83, 0.3);
    }
    50% {
        border-color: rgba(124, 218, 83, 0.7);
    }
    100% {
        border-color: rgba(124, 218, 83, 0.3);
    }
}