/**
 * FB Reactions - Estilos
 * Design exatamente igual ao Facebook
 */

/* Container principal */
.fbr-reactions-container {
    background: transparent;
    border: none;
    padding: 10px 0;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Header com mini emojis e total */
.fbr-reactions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.fbr-mini-emojis {
    display: flex;
    align-items: center;
}

.fbr-mini-emoji {
    font-size: 18px;
    margin-right: -4px;
    z-index: 1;
    position: relative;
}

.fbr-mini-emoji:nth-child(2) {
    z-index: 2;
}

.fbr-mini-emoji:nth-child(3) {
    z-index: 3;
}

.fbr-mini-emoji:nth-child(4) {
    z-index: 4;
}

.fbr-mini-emoji:nth-child(5) {
    z-index: 5;
}

.fbr-mini-emoji:nth-child(6) {
    z-index: 6;
}

.fbr-total-text {
    color: #65676b;
    font-size: 15px;
    margin-left: 4px;
}

.fbr-total-count {
    font-weight: 600;
    color: #050505;
}

.fbr-first-react {
    font-weight: 600;
    color: #1877f2;
    font-style: italic;
}

/* Grade de botões de reação */
.fbr-reactions-buttons {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    background: transparent;
    padding: 0;
}

/* Botão individual de reação */
.fbr-reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.1);
    /* Border meio escuro simulando sombra */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    position: relative;
    overflow: visible;
}

.fbr-reaction-btn:hover {
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) scale(1.05);
}

.fbr-reaction-btn:hover .fbr-emoji {
    transform: scale(1.15);
}

.fbr-reaction-btn:active {
    transform: scale(0.98);
}

.fbr-reaction-btn.fbr-active {
    background: transparent;
}

.fbr-reaction-btn.fbr-active .fbr-label {
    color: #050505;
    font-weight: 700;
}

/* Wrapper do emoji */
.fbr-emoji-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Emoji - SEM SOMBRAS */
.fbr-emoji {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
}

.fbr-emoji svg,
.fbr-emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Contador badge - verde igual ao Facebook */
.fbr-count {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #42b72a;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    border: 2px solid white;
    z-index: 10;
}

/* Label do botão */
.fbr-label {
    font-size: 12px;
    font-weight: 600;
    color: #65676b;
    margin-top: 4px;
}

/* Animações ao clicar */
@keyframes fbr-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.fbr-reaction-btn.fbr-animating .fbr-emoji {
    animation: fbr-bounce 0.3s ease-out;
}

/* Efeito de partículas ao clicar */
.fbr-particle {
    position: fixed;
    pointer-events: none;
    animation: fbr-particle-rise 0.6s ease-out forwards;
    font-size: 20px;
    z-index: 10000;
}

@keyframes fbr-particle-rise {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.5);
    }
}

/* Responsivo - Mobile sempre em 1 fileira */
@media (max-width: 600px) {
    .fbr-reactions-container {
        padding: 12px;
        margin-bottom: 16px;
    }

    .fbr-reactions-buttons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 2px;
        padding: 10px 4px;
    }

    .fbr-reaction-btn {
        min-width: auto;
        flex: 1;
        padding: 6px 4px;
    }

    .fbr-emoji {
        width: 32px;
        height: 32px;
    }

    .fbr-count {
        font-size: 9px;
        padding: 1px 4px;
        min-width: 16px;
        bottom: -4px;
        right: -4px;
    }

    .fbr-label {
        font-size: 10px;
    }

    .fbr-total-text {
        font-size: 13px;
    }

    .fbr-mini-emoji {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .fbr-emoji {
        width: 28px;
        height: 28px;
    }

    .fbr-reaction-btn {
        padding: 5px 2px;
    }

    .fbr-label {
        font-size: 9px;
    }

    .fbr-count {
        font-size: 8px;
        padding: 1px 3px;
        min-width: 14px;
    }
}