/* 
 * Modern Badge - Octor
 * Componentized & Decoupled
 * Path: assets/css/components/modern-badge.css
 */

.modern-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    background: rgba(12, 224, 122, 0.08); /* Fundo mais sutil e elegante */
    border: none; /* Removendo a borda conforme pedido */
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: #0CE07A;
    backdrop-filter: blur(12px); /* Aumentando o efeito vidro */
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    line-height: 1.5;
    overflow: hidden; /* Importante para o brilho não vazar */
    
    /* Entrance Animation */
    animation: modernBadgeEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Shine Effect Pseudo-element */
.modern-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-25deg);
    animation: modernBadgeShine 2s ease-in-out infinite; /* Brilho passando periodicamente */
    animation-delay: 1s;
    z-index: 1;
}

@keyframes modernBadgeShine {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

@keyframes modernBadgeEntrance {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-theme="light"] .modern-badge {
    background: rgba(1, 99, 53, 0.06); /* Verde escuro translúcido no light mode */
    border: none;
    color: #016335;
}

.modern-badge i {
    margin-right: 10px;
    font-size: 1.1em;
}
