/* ── Nonotami Post Reactions ─────────────────────────────────────────────────── */

.non-reactions {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin: 2rem auto;
    padding: 0;
    line-height: 1;
    width: 100%;
    text-align: center;
}

/* ── Button ─────────────────────────────────────────────────────────────────── */

.non-reactions__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0.15rem 0.2rem;
    margin: 0;
    cursor: pointer;
    transition: transform 0.15s ease;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.non-reactions__btn:hover,
.non-reactions__btn:focus,
.non-reactions__btn:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.non-reactions__btn:hover {
    transform: translateY( -3px );
}

.non-reactions__btn:active {
    transform: scale( 0.92 ) translateY( 0 );
}

.non-reactions__btn--active .non-reactions__emoji {
    filter: drop-shadow( 0 0 4px rgba( 0, 0, 0, 0.25 ) );
}

/* Pulse on active toggle */
.non-reactions__btn--active {
    animation: non-pulse 0.3s ease;
}

@keyframes non-pulse {
    0%   { transform: scale( 1 ); }
    40%  { transform: scale( 1.25 ) translateY( -4px ); }
    100% { transform: scale( 1 ); }
}

/* ── Emoji ───────────────────────────────────────────────────────────────────── */

.non-reactions__emoji {
    display: block;
    line-height: 1;
    /* font-size inherited from inline style set by PHP/JS */
    transition: font-size 0.35s cubic-bezier( 0.34, 1.56, 0.64, 1 );
}

/* ── Badge ───────────────────────────────────────────────────────────────────── */

.non-reactions__badge {
    position: absolute;
    bottom: -0.1rem;
    right: -0.15rem;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    background: #fff;
    color: #fff;
    font-size: 0.28rem;   /* relative to button font-size, so scales with emoji */
    font-family: sans-serif;
    font-weight: 600;
    line-height: 1.3rem;
    text-align: center;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Loading state ───────────────────────────────────────────────────────────── */

.non-reactions--loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ── Dark background contexts ────────────────────────────────────────────────── */

.has-dark-background .non-reactions__badge,
.wp-block-cover .non-reactions__badge {
    background: #000;
    color: #fff;
}