/**
 * Najibul Like & Dislike System - Enterprise Capsule Pill Design
 * Version 100.0.0 Architecture (Dopamine Micro-Interactions, 0ms Optimistic UI)
 */

.najibul-ld-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Capsule Pill Button Base */
.najibul-ld-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: 9999px;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    box-sizing: border-box;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                background 0.3s ease,
                filter 0.2s ease;
    will-change: transform, box-shadow;
}

/* Like Button Gradient */
.najibul-ld-like {
    background: linear-gradient(135deg, #5b5ee8 0%, #764ba2 100%);
    box-shadow: 0 3px 12px rgba(91, 94, 232, 0.35);
}

.najibul-ld-like:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(91, 94, 232, 0.45);
    filter: brightness(1.06);
}

.najibul-ld-like:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 6px rgba(91, 94, 232, 0.3);
}

.najibul-ld-like.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35), 0 4px 14px rgba(37, 99, 235, 0.45);
}

/* Dislike Button Gradient */
.najibul-ld-dislike {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 3px 12px rgba(245, 87, 108, 0.35);
}

.najibul-ld-dislike:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(245, 87, 108, 0.45);
    filter: brightness(1.06);
}

.najibul-ld-dislike:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 6px rgba(245, 87, 108, 0.3);
}

.najibul-ld-dislike.active {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.35), 0 4px 14px rgba(225, 29, 72, 0.45);
}

/* Icon Box & SVG */
.najibul-ld-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.najibul-ld-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

/* Pop Animation on Click */
.najibul-ld-btn.dopamine-pop {
    animation: najibul-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.najibul-ld-btn.dopamine-pop .najibul-ld-icon-box {
    animation: najibul-icon-bounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes najibul-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    70%  { transform: scale(0.94); }
    100% { transform: scale(1); }
}

@keyframes najibul-icon-bounce {
    0%   { transform: scale(1) rotate(0deg); }
    40%  { transform: scale(1.35) rotate(-12deg); }
    70%  { transform: scale(0.9) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Count Number Smooth Pop */
.najibul-ld-count {
    display: inline-block;
    min-width: 8px;
    font-variant-numeric: tabular-nums;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}

.najibul-ld-count.count-bump {
    animation: najibul-count-bump 0.3s ease;
}

@keyframes najibul-count-bump {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    50%  { transform: translateY(-3px) scale(1.2); opacity: 0.9; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.najibul-ld-burst-anchor {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}
