/* ========== SUPPORTER STAR BADGE ========== */

.supporter-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.35em;
    height: 1.35em;
    min-width: 18px;
    min-height: 18px;
    margin-left: 5px;
    vertical-align: middle;
    background-image: url('../icon/supporter-star.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 0 2px rgba(255, 159, 28, 0.55))
            drop-shadow(0 0 4px rgba(155, 93, 229, 0.45));
    animation: supporterStarSparkle 2.2s ease-in-out infinite;
}

.supporter-star--large {
    width: 1.6em;
    height: 1.6em;
    min-width: 22px;
    min-height: 22px;
    margin-left: 7px;
}

@keyframes supporterStarSparkle {
    0%,
    100% {
        filter: drop-shadow(0 0 1px rgba(255, 159, 28, 0.4))
                drop-shadow(0 0 3px rgba(155, 93, 229, 0.35));
        transform: scale(1) rotate(0deg);
        opacity: 0.92;
    }
    40% {
        filter: drop-shadow(0 0 3px rgba(46, 196, 182, 0.7))
                drop-shadow(0 0 7px rgba(255, 230, 109, 0.65));
        transform: scale(1.12) rotate(8deg);
        opacity: 1;
    }
    70% {
        filter: drop-shadow(0 0 4px rgba(91, 141, 239, 0.75))
                drop-shadow(0 0 8px rgba(155, 93, 229, 0.55));
        transform: scale(1.06) rotate(-4deg);
        opacity: 1;
    }
}

[data-theme="dark"] .supporter-star {
    filter: drop-shadow(0 0 3px rgba(255, 230, 109, 0.55))
            drop-shadow(0 0 6px rgba(155, 93, 229, 0.55));
}

@media (max-width: 480px) {
    .supporter-star {
        width: 1.2em;
        height: 1.2em;
        min-width: 16px;
        min-height: 16px;
        margin-left: 4px;
    }

    .supporter-star--large {
        width: 1.4em;
        height: 1.4em;
        min-width: 19px;
        min-height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .supporter-star {
        animation: none;
    }
}
