/* r1194 — Rustige Snoeten-respectster met behoud van het klik-effect.
   De ster is puur CSS, dus ook dynamisch ingeladen knoppen werken direct. */

button.heart-btn,
button.comment-respect,
button.notification-detail-respect-button,
button[data-media-action="respect"],
button.webmaster-respect-button {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate;
}

/* Oude/intern meegeleverde respecticonen uitschakelen: er blijft één ster over. */
button.heart-btn .like-emoji,
button.heart-btn .guestbook-heart-icon,
button.heart-btn .status-heart-icon,
button.heart-btn > svg,
button.comment-respect .dashboard-comment-meta-icon,
button.comment-respect .like-emoji,
button.comment-respect > svg,
button.notification-detail-respect-button .notification-detail-respect-icon,
button.notification-detail-respect-button .like-emoji,
button.notification-detail-respect-button > svg,
button[data-media-action="respect"] .like-emoji,
button[data-media-action="respect"] .status-heart-icon,
button[data-media-action="respect"] > svg,
button.webmaster-respect-button .webmaster-heart-icon,
button.webmaster-respect-button > svg,
.snoeten-respect-star,
.snoeten-respect-legacy-icon {
    display: none !important;
}

/* Eenvoudige SVG-ster in grijs/goud. */
button.heart-btn::before,
button.comment-respect::before,
button.notification-detail-respect-button::before,
button[data-media-action="respect"]::before,
button.webmaster-respect-button::before {
    content: "" !important;
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    display: inline-block !important;
    flex: 0 0 auto;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.4l2.96 6 6.62.96-4.79 4.67 1.13 6.59L12 17.5l-5.92 3.12 1.13-6.59-4.79-4.67 6.62-.96L12 2.4z' fill='%23FFFFFF' stroke='%234B72AA' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none;
    transform-origin: 50% 55%;
    transition: transform 140ms ease;
    filter: none;
    pointer-events: none;
}

button.heart-btn:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"])::before,
button.comment-respect:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"])::before,
button.notification-detail-respect-button:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"])::before,
button[data-media-action="respect"]:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"])::before,
button.webmaster-respect-button:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.4l2.96 6 6.62.96-4.79 4.67 1.13 6.59L12 17.5l-5.92 3.12 1.13-6.59-4.79-4.67 6.62-.96L12 2.4z' fill='%23D9A400' stroke='%234B72AA' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    filter: none;
}

button.heart-btn:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"]):hover::before,
button.comment-respect:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"]):hover::before,
button.notification-detail-respect-button:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"]):hover::before,
button[data-media-action="respect"]:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"]):hover::before,
button.webmaster-respect-button:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"]):hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.4l2.96 6 6.62.96-4.79 4.67 1.13 6.59L12 17.5l-5.92 3.12 1.13-6.59-4.79-4.67 6.62-.96L12 2.4z' fill='%23E6B422' stroke='%234B72AA' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

button.heart-btn:hover::before,
button.comment-respect:hover::before,
button.notification-detail-respect-button:hover::before,
button[data-media-action="respect"]:hover::before,
button.webmaster-respect-button:hover::before,
button.heart-btn:focus-visible::before,
button.comment-respect:focus-visible::before,
button.notification-detail-respect-button:focus-visible::before,
button[data-media-action="respect"]:focus-visible::before,
button.webmaster-respect-button:focus-visible::before {
    transform: none;
    filter: none;
}

/* Oude r1184-pop bij reacties uitschakelen. */
button.comment-respect.is-respect-animating .dashboard-comment-meta-icon,
button.comment-respect.is-respect-animating .comment-meta-count {
    animation: none !important;
}

button.heart-btn.snoeten-respect-give::before,
button.comment-respect.snoeten-respect-give::before,
button.notification-detail-respect-button.snoeten-respect-give::before,
button[data-media-action="respect"].snoeten-respect-give::before,
button.webmaster-respect-button.snoeten-respect-give::before {
    animation: snoetenRespectTwinkle1191 720ms cubic-bezier(.16,.88,.22,1.22) both;
}

button.heart-btn.snoeten-respect-remove::before,
button.comment-respect.snoeten-respect-remove::before,
button.notification-detail-respect-button.snoeten-respect-remove::before,
button[data-media-action="respect"].snoeten-respect-remove::before,
button.webmaster-respect-button.snoeten-respect-remove::before {
    animation: snoetenRespectRelease1191 320ms ease-out both;
}

.snoeten-respect-sparks {
    position: absolute;
    z-index: 1;
    left: var(--respect-spark-x, 50%);
    top: var(--respect-spark-y, 50%);
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.snoeten-respect-spark {
    --spark-angle: 0deg;
    --spark-distance: 26px;
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: #D9A400;
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateY(0) scale(.25);
    animation: snoetenRespectSpark1191 620ms cubic-bezier(.15,.72,.25,1) forwards;
}
.snoeten-respect-spark:nth-child(2n) { background: #E6B422; }
.snoeten-respect-spark:nth-child(3n) { background: #C58F00; }

@keyframes snoetenRespectTwinkle1191 {
    0%   { transform: scale(.76) rotate(-12deg); }
    24%  { transform: scale(1.48) rotate(12deg); }
    48%  { transform: scale(.94) rotate(-5deg); }
    70%  { transform: scale(1.18) rotate(4deg); }
    86%  { transform: scale(.99) rotate(-1deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes snoetenRespectRelease1191 {
    0%   { transform: scale(1); }
    50%  { transform: scale(.82) rotate(-5deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes snoetenRespectSpark1191 {
    0% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(-2px) scale(.15); }
    18% { opacity: 1; transform: rotate(var(--spark-angle)) translateY(-5px) scale(1.15); }
    100% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(calc(var(--spark-distance) * -1)) scale(.45); }
}

@media (prefers-reduced-motion: reduce) {
    button.heart-btn::before,
    button.comment-respect::before,
    button.notification-detail-respect-button::before,
    button[data-media-action="respect"]::before,
    button.webmaster-respect-button::before,
    .snoeten-respect-spark {
        animation: none !important;
    }
}

/* Hoge specificiteit voor oudere reactie-CSS die ::before en het legacy-icoon met !important uitschakelt/terugzet. */
html body .status-comments.status-comments-facebook .status-comment-meta button.comment-respect::before,
html body .status-comments.status-comments-facebook button.status-comment-respect-side.comment-respect::before {
    content: "" !important;
    display: inline-block !important;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.4l2.96 6 6.62.96-4.79 4.67 1.13 6.59L12 17.5l-5.92 3.12 1.13-6.59-4.79-4.67 6.62-.96L12 2.4z' fill='%23FFFFFF' stroke='%234B72AA' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

html body .status-comments.status-comments-facebook .status-comment-meta button.comment-respect:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"])::before,
html body .status-comments.status-comments-facebook button.status-comment-respect-side.comment-respect:is(.liked, .respected, .is-active, .is-respected, [aria-pressed="true"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.4l2.96 6 6.62.96-4.79 4.67 1.13 6.59L12 17.5l-5.92 3.12 1.13-6.59-4.79-4.67 6.62-.96L12 2.4z' fill='%23D9A400' stroke='%234B72AA' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html body .status-comments.status-comments-facebook button.comment-respect .dashboard-comment-meta-icon,
html body .status-comments.status-comments-facebook button.status-comment-respect-side.comment-respect .dashboard-comment-meta-icon {
    display: none !important;
}

/* 2026-09-23 — Respecteffect: geen confetti-puntjes meer, maar kleine Snoeten-sterren. */
.snoeten-respect-spark {
    width: 8px !important;
    height: 8px !important;
    margin: -4px 0 0 -4px !important;
    border-radius: 0 !important;
    background: #D9A400 !important;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 35%) !important;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22));
    transform-origin: 50% 50%;
    animation: snoetenRespectStarBurst20260923 780ms cubic-bezier(.14,.78,.22,1) forwards !important;
}

.snoeten-respect-spark:nth-child(3n + 2) {
    width: 6px !important;
    height: 6px !important;
    margin: -3px 0 0 -3px !important;
    background: #E6B422 !important;
}

.snoeten-respect-spark:nth-child(4n) {
    width: 9px !important;
    height: 9px !important;
    margin: -4.5px 0 0 -4.5px !important;
    background: #C58F00 !important;
}

@keyframes snoetenRespectStarBurst20260923 {
    0% {
        opacity: 0;
        transform: rotate(var(--spark-angle)) translateY(-1px) scale(.15) rotate(0deg);
    }
    16% {
        opacity: 1;
        transform: rotate(var(--spark-angle)) translateY(-7px) scale(1.35) rotate(22deg);
    }
    58% {
        opacity: 1;
        transform: rotate(var(--spark-angle)) translateY(calc(var(--spark-distance) * -.72)) scale(1) rotate(92deg);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--spark-angle)) translateY(calc(var(--spark-distance) * -1)) scale(.32) rotate(155deg);
    }
}


/* 2026-09-23 — sterretjes verschijnen als ring rondom de Respect-ster. */
.snoeten-respect-sparks {
    z-index: 6 !important;
    overflow: visible !important;
}

.snoeten-respect-spark {
    --spark-start-distance: 20px;
    --spark-distance: 42px;
    animation: snoetenRespectStarRing20260923 820ms cubic-bezier(.16,.78,.2,1) forwards !important;
}

@keyframes snoetenRespectStarRing20260923 {
    0% {
        opacity: 0;
        transform: rotate(var(--spark-angle)) translateY(calc(var(--spark-start-distance) * -1)) scale(.2) rotate(0deg);
    }
    14% {
        opacity: 1;
        transform: rotate(var(--spark-angle)) translateY(calc(var(--spark-start-distance) * -1)) scale(1.32) rotate(18deg);
    }
    48% {
        opacity: 1;
        transform: rotate(var(--spark-angle)) translateY(calc((var(--spark-start-distance) + 9px) * -1)) scale(1) rotate(72deg);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--spark-angle)) translateY(calc(var(--spark-distance) * -1)) scale(.3) rotate(150deg);
    }
}


/* 2026-09-23 — Prikbord: reacties gebruiken exact de gastenboek-respectster.
   Het hoofdbericht behoudt zijn bestaande knop; alleen de ster + feedback worden vervangen. */

/* Reacties: geen gegenereerde pseudo-ster meer; toon de echte SVG uit de knop. */
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button::before,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:hover,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:active,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:focus,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:focus-visible,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button.respected {
    display: inline-flex !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #606873 !important;
    outline: 0 !important;
    overflow: visible !important;
}

html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button .dashboard-comment-meta-icon {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #6F7881 !important;
    fill: transparent !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    transform: scale(1) !important;
    transform-origin: 50% 50% !important;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)) !important;
    transition: transform .16s ease, filter .16s ease, color .16s ease, fill .16s ease !important;
}

html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:hover .dashboard-comment-meta-icon,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:focus-visible .dashboard-comment-meta-icon {
    transform: scale(1.06) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .16)) !important;
}

html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:is(.liked, .respected, [aria-pressed="true"]) .dashboard-comment-meta-icon {
    color: #D9A400 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    filter: drop-shadow(0 1px 2px rgba(120, 90, 0, .18)) !important;
}

html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:is(.liked, .respected, [aria-pressed="true"]):hover .dashboard-comment-meta-icon,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button:is(.liked, .respected, [aria-pressed="true"]):focus-visible .dashboard-comment-meta-icon {
    color: #E6B422 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button .comment-meta-count,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button .like-count {
    display: block !important;
    min-width: 0 !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #69717b !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    text-align: center !important;
}

html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button.is-respect-animating .dashboard-comment-meta-icon,
html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button.snoeten-respect-give .dashboard-comment-meta-icon {
    animation: guestbookRespectPopStrong 680ms cubic-bezier(.18, .9, .22, 1.25) both !important;
}

/* De grotere gastenboekknop krijgt dezelfde ruimte naast de reactieplaat. */
html body .status-comments.status-comments-facebook .status-comment-bubble-row > .status-comment-bubble {
    max-width: min(calc(100% - 92px), 590px) !important;
}

/* Hoofd-prikbordbericht: bestaande buttonvorm blijft exact staan. */
button.heart-btn.status-post-respect-button::before,
button.heart-btn.status-post-respect-button::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

button.heart-btn.status-post-respect-button .like-emoji {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

button.heart-btn.status-post-respect-button .status-respect-star-icon {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #606873 !important;
    fill: transparent !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
    transform: scale(1) !important;
    transform-origin: 50% 50% !important;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22)) drop-shadow(0 3px 5px rgba(75, 114, 170, .18)) !important;
    transition: transform .16s ease, filter .16s ease, color .16s ease, fill .16s ease !important;
}

button.heart-btn.status-post-respect-button:hover .status-respect-star-icon,
button.heart-btn.status-post-respect-button:focus-visible .status-respect-star-icon {
    transform: scale(1.12) !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .28)) drop-shadow(0 5px 8px rgba(75, 114, 170, .28)) !important;
}

button.heart-btn.status-post-respect-button:is(.liked, .respected, [aria-pressed="true"]) .status-respect-star-icon {
    color: #D9A400 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .22)) drop-shadow(0 4px 8px rgba(217, 164, 0, .42)) !important;
}

button.heart-btn.status-post-respect-button:is(.liked, .respected, [aria-pressed="true"]):hover .status-respect-star-icon,
button.heart-btn.status-post-respect-button:is(.liked, .respected, [aria-pressed="true"]):focus-visible .status-respect-star-icon {
    color: #E6B422 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

button.heart-btn.status-post-respect-button.snoeten-respect-give .status-respect-star-icon {
    animation: guestbookRespectPopStrong 680ms cubic-bezier(.18, .9, .22, 1.25) both !important;
}

button.heart-btn.status-post-respect-button.snoeten-respect-remove .status-respect-star-icon {
    animation: snoetenRespectRelease1191 320ms ease-out both !important;
}

@keyframes guestbookRespectPopStrong {
    0%   { transform: scale(1) rotate(0deg); }
    28%  { transform: scale(1.38) rotate(-9deg); }
    52%  { transform: scale(.90) rotate(5deg); }
    72%  { transform: scale(1.16) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@media (max-width: 620px) {
    html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button {
        flex-basis: 46px !important;
        width: 46px !important;
        min-width: 46px !important;
    }

    html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button .dashboard-comment-meta-icon {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .status-comments.status-comments-facebook button.comment-respect.guestbook-respect-button .dashboard-comment-meta-icon,
    button.heart-btn.status-post-respect-button .status-respect-star-icon {
        animation: none !important;
        transition: none !important;
    }
}
