/* Gönderi / not detay — kabuk içi düzen */
body.app-route-post #page-content,
body.app-route-note #page-content {
    max-width: none;
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
    body.app-route-post #page-content,
    body.app-route-note #page-content {
        padding-bottom: 2rem;
    }
}

.post-detail-page {
    width: 100%;
}

.post-detail-compose-field:focus-within {
    box-shadow: 0 0 0 2px rgba(22, 99, 199, 0.15);
    border-color: #1663c7;
}

.post-detail-comments-scroll {
    -webkit-overflow-scrolling: touch;
}

.post-detail-comments-scroll::-webkit-scrollbar {
    width: 6px;
}

.post-detail-comments-scroll::-webkit-scrollbar-thumb {
    background: #d8dae2;
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .post-detail-compose-desktop {
        display: flex !important;
    }

    #post-detail-compose,
    #note-detail-compose {
        display: none !important;
    }

    body.app-route-post #page-content,
    body.app-route-note #page-content {
        padding-bottom: 1.5rem;
    }
}

.note-detail-root {
    padding-bottom: 0.5rem;
}

/* İçerik ile yorum paneli arası boşluk */
@media (max-width: 1023px) {
    .post-detail-layout {
        gap: 2.5rem;
    }

    .post-detail-comments-panel {
        margin-top: 0.25rem;
    }
}

@media (min-width: 1024px) {
    .post-detail-layout {
        gap: 2rem;
    }
}

/* Yorum listesi ile yazma alanı arası */
.post-detail-comments-compose-wrap {
    margin-top: 0.75rem;
    padding-top: 1.125rem !important;
}

/* Beğeni / kaydet — minimalist animasyon */
.post-detail-action-btn,
.note-detail-action-btn,
.content-bookmark-btn,
.feed-card__action {
    position: relative;
    overflow: visible;
}

.post-detail-action-btn.is-action-pop,
.note-detail-action-btn.is-action-pop,
.content-bookmark-btn.is-action-pop,
.feed-card__action.is-action-pop {
    animation: detailActionBtnPop 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.post-detail-action-btn.is-action-pop .material-symbols-outlined,
.note-detail-action-btn.is-action-pop .material-symbols-outlined,
.content-bookmark-btn.is-action-pop .material-symbols-outlined,
.feed-card__action.is-action-pop .material-symbols-outlined {
    animation: detailActionIconPop 0.48s cubic-bezier(0.34, 1.35, 0.64, 1);
}

@keyframes detailActionBtnPop {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes detailActionIconPop {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.28);
    }
    100% {
        transform: scale(1);
    }
}

.detail-action-fx-burst {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.25rem;
    height: 2.25rem;
    margin: -1.125rem 0 0 -1.125rem;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0.55;
    animation: detailActionFxBurst 0.55s ease-out forwards;
}

.detail-action-fx-burst--like {
    color: #1663c7;
}

.detail-action-fx-burst--save {
    color: #1663c7;
}

@keyframes detailActionFxBurst {
    0% {
        transform: scale(0.35);
        opacity: 0.65;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

.detail-action-fx-spark {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.35rem;
    height: 0.35rem;
    margin: -0.175rem 0 0 -0.175rem;
    border-radius: 50%;
    opacity: 0;
    animation: detailActionFxSpark 0.5s ease-out forwards;
}

.detail-action-fx-spark--like {
    background: #1663c7;
    box-shadow:
        0 -14px 0 -2px rgba(22, 99, 199, 0.75),
        10px -8px 0 -3px rgba(22, 99, 199, 0.45),
        -10px -8px 0 -3px rgba(22, 99, 199, 0.45);
}

.detail-action-fx-spark--save {
    background: #1663c7;
    box-shadow:
        0 -12px 0 -2px rgba(22, 99, 199, 0.55),
        9px -6px 0 -3px rgba(22, 99, 199, 0.35),
        -9px -6px 0 -3px rgba(22, 99, 199, 0.35);
}

@keyframes detailActionFxSpark {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-detail-action-btn.is-action-pop,
    .note-detail-action-btn.is-action-pop,
    .content-bookmark-btn.is-action-pop,
    .post-detail-action-btn.is-action-pop .material-symbols-outlined,
    .note-detail-action-btn.is-action-pop .material-symbols-outlined,
    .content-bookmark-btn.is-action-pop .material-symbols-outlined {
        animation: none;
    }

    .detail-action-fx-burst,
    .detail-action-fx-spark {
        display: none;
    }
}
