/* GANGS tepki secici: Begen butonu + uzerine gelince / basili tutunca acilan cubuk */

.gx-react {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gx-react-wrap {
    position: relative;
    display: inline-flex;
}

.gx-main-form {
    margin: 0;
}

.gx-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Beğen butonu: hiç tepki yokken de mavi ve belirgin */
.gx-main-btn {
    background: rgba(47, 140, 255, .14);
    border: 1px solid rgba(77, 163, 255, .45);
    border-radius: 999px;
    padding: 6px 12px;
    transition: background .15s ease, border-color .15s ease;
}

.gx-main-btn:hover {
    background: rgba(47, 140, 255, .26);
    border-color: rgba(120, 190, 255, .8);
}

.gx-main-btn.gx-idle .reaction-svg-icon {
    filter: saturate(.9) brightness(1.08);
}

.gx-main-btn .gx-main-label {
    color: #7dbcff;
}

.gx-main-btn.active {
    background: rgba(47, 140, 255, .24);
    border-color: rgba(120, 190, 255, .85);
}

.gx-main-btn.active .gx-main-label {
    color: #a9d4ff;
}

.gx-main-label {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1;
}

.gx-main-icon.gx-pop .reaction-svg-icon {
    animation: gxPop .42s cubic-bezier(.3, 1.7, .5, 1);
}

@keyframes gxPop {
    0% { transform: scale(.4) rotate(-14deg); }
    60% { transform: scale(1.35) rotate(6deg); }
    100% { transform: scale(1.1) rotate(0); }
}

/* Secici cubuk */
.gx-picker {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(22, 24, 32, .96);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(.92);
    transform-origin: left bottom;
    transition:
        opacity .16s ease,
        transform .22s cubic-bezier(.3, 1.5, .5, 1),
        visibility 0s linear .22s;
}

/* Fare ile cubuga giderken kapanmasin diye gorunmez kopru */
.gx-picker::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.gx-react-wrap.gx-open .gx-picker,
.gx-react-wrap:has(:focus-visible) .gx-picker {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.gx-pick {
    margin: 0;
}

.gx-pick .post-reaction-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}

.gx-pick .post-reaction-emoji .reaction-svg-icon {
    width: 32px;
    height: 32px;
}

.gx-pick .post-reaction-button:hover,
.gx-pick .post-reaction-button.gx-hot {
    transform: translateY(-7px) scale(1.4);
    z-index: 2;
}

.gx-pick .post-reaction-button.active {
    background: rgba(255, 255, 255, .1);
}

.gx-pick .post-reaction-button::before {
    content: attr(data-gx-label);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(.8);
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
}

.gx-pick .post-reaction-button:hover::before,
.gx-pick .post-reaction-button.gx-hot::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Ozet: en cok kullanilan 3 emoji + toplam */
.gx-react-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gx-react-summary {
    position: relative;
    cursor: default;
}

.gx-who {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 45;
    min-width: 120px;
    max-width: 260px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(22, 24, 32, .97);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
    color: #e9ecf4;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: none;
    animation: gxWhoIn .14s ease-out;
}

.gx-who-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 2px 0;
}

.gx-who-icon .reaction-svg-icon {
    width: 15px;
    height: 15px;
    margin-top: 1px;
}

.gx-who-names {
    word-break: break-word;
}

@keyframes gxWhoIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.gx-react-summary[hidden] {
    display: none;
}

.gx-react-stack {
    display: inline-flex;
    align-items: center;
}

.gx-react-stack .reaction-svg-icon {
    width: 18px;
    height: 18px;
    margin-left: -5px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
}

.gx-react-stack .reaction-svg-icon:first-child {
    margin-left: 0;
}

.gx-react-total {
    font-size: .85rem;
    font-weight: 700;
    opacity: .85;
}

/* Secilince cikan kucuk patlama */
.gx-burst {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 41;
}

.gx-burst .reaction-svg-icon {
    position: absolute;
    left: -8px;
    top: -8px;
    width: 16px;
    height: 16px;
    opacity: 0;
    animation: gxBurst .7s ease-out forwards;
    animation-delay: var(--gx-d, 0s);
}

@keyframes gxBurst {
    0% { opacity: 1; transform: translate(0, 0) scale(.6); }
    100% { opacity: 0; transform: translate(var(--gx-x, 0), var(--gx-y, -40px)) scale(1.3); }
}

/* ---------- Gonderi alt cubugu: Yorum + Kaydet (modern) ---------- */
.post-footer,
.profile-post-footer {
    flex-wrap: wrap;
    row-gap: 10px;
}

.post-comment-count,
.post-footer .post-save-button,
.profile-post-footer .post-save-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .04);
    color: #b4bac5;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.post-comment-count .gx-ico,
.post-save-button .gx-ico {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.post-comment-icon,
.post-save-icon {
    display: inline-flex;
    align-items: center;
    font-size: 0;
}

.post-comment-icon {
    color: #4fd1c5;
}

.post-save-button .post-save-icon,
.post-save-button > span:first-child {
    color: #ffd21a;
}

.post-comment-count:hover,
.post-footer .post-save-button:hover,
.profile-post-footer .post-save-button:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.post-footer .post-save-button.active,
.profile-post-footer .post-save-button.active {
    background: rgba(255, 210, 26, .13);
    border-color: rgba(255, 210, 26, .5);
    color: #ffe27a;
}

.post-save-button.active .gx-ico {
    fill: currentColor;
}

/* Yanitla: her zaman sari, uzerine gelince hafif parlar */
.comment-reply-button {
    color: #ffd21a;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    transition: filter .15s ease, text-shadow .15s ease, background .15s ease;
}

.comment-reply-button:hover {
    color: #ffd21a;
    filter: brightness(1.2);
    text-shadow: 0 0 10px rgba(255, 210, 26, .6);
    background: rgba(255, 210, 26, .08);
}

/* Telefon: alt cubuk sikismasin */
@media (max-width: 600px) {
    .post-footer,
    .profile-post-footer {
        gap: 8px;
    }

    .post-comment-count,
    .post-footer .post-save-button,
    .profile-post-footer .post-save-button {
        padding: 6px 10px;
        font-size: 11px;
    }

    .post-save-button .post-save-label {
        display: none;
    }
}

/* Profil: 5 tepki yan yana (4 sutun yerine 5) */
.profile-reaction-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

@media (min-width: 901px) {
    .profile-main-info {
        padding-right: 345px;
    }

    .profile-reaction-summary {
        width: 300px;
    }
}

/* Yorumlar icin kucuk gorunum */
.gx-compact {
    gap: 8px;
}

.gx-compact .gx-main-btn {
    padding: 3px 9px;
    gap: 5px;
}

.gx-compact .gx-main-btn .post-reaction-emoji .reaction-svg-icon {
    width: 15px;
    height: 15px;
}

.gx-compact .gx-main-label {
    font-size: .76rem;
}

.gx-compact .gx-react-stack .reaction-svg-icon {
    width: 15px;
    height: 15px;
}

.gx-compact .gx-react-total {
    font-size: .76rem;
}

@media (max-width: 600px) {
    .gx-pick .post-reaction-button {
        width: 44px;
        height: 44px;
    }

    .gx-pick .post-reaction-emoji .reaction-svg-icon {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gx-picker,
    .gx-pick .post-reaction-button {
        transition: opacity .01s linear;
    }

    .gx-main-icon.gx-pop .reaction-svg-icon,
    .gx-burst .reaction-svg-icon {
        animation: none;
    }

    .gx-burst {
        display: none;
    }
}
