.c-feed {
    display: flex;
    flex-direction: column;
}

.c-post {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.c-post__header {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.c-post__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 0.75rem;
}

.c-post__user-info {
    flex: 1;
}

.c-post__name {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    min-width: 0;
}

.c-post__name .ph-seal-check,
.c-post__name i {
    flex-shrink: 0;
    white-space: nowrap;
}

.c-post__location {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.c-page-type-badge {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary);
    vertical-align: middle;
    margin-left: 0.25rem;
    white-space: nowrap;
}

.c-post__options {
    color: var(--color-text-primary);
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.c-post__options:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Options Menu */
.c-post__options-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.c-post__options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    animation: menuFadeIn 0.2s ease;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.c-post__options-menu.is-visible {
    display: flex;
}

.c-post__options-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    text-align: left;
    transition: background 0.2s;
}

.c-post__options-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.c-post__options-item i {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
}

.c-post__options-item--danger {
    color: #ff4444;
}

.c-post__options-item--danger i {
    color: #ff4444;
}

.c-post__options-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.4rem 0;
}

/* Post Description clamping and layout styles */
.c-post-desc {
    padding: 0 1.5rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}
/* NOTE: vertical spacing is a MARGIN, not padding, and the clamp is applied to
   the padding-free box. If vertical padding lived on the clamped element, the
   padding area (inside border-box) could still paint folded lines below the
   ellipsis in some engines ("text peeking out from under the ... "). max-height
   is also omitted on purpose - a fixed max-height combined with border-box
   shrinks the visible text area and crops the last line. */

/* Dynamic Read More button animation and transitions */
.c-post-desc__read-more {
    transition: color 0.2s ease, transform 0.2s ease;
}

.c-post-desc__read-more:hover {
    color: var(--color-accent) !important;
    transform: translateX(2px);
}

/* Hide price row when description collapsed */
.c-post-desc:not(.expanded)+#js-universal-price-row {
    display: none;
}

/* Expanded description shows full text */
.c-post-desc.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

.c-post__content {
    padding: 0 1.5rem;
    cursor: pointer;
}

.c-post__image {
    width: 100%;
    border-radius: 1rem;
    display: block;
    object-fit: cover;
}

.c-post__footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem 0;
}

.c-post__actions-left,
.c-post__actions-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.c-post__action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.c-post__action i {
    font-size: 1.4rem;
}

.c-post__action:hover {
    color: var(--color-text-secondary);
}

.c-post__action.is-active {
    color: var(--color-primary);
}

.c-post__action.js-save-btn.is-active {
    color: #FBBF24 !important;
}

.c-post__action.js-ad-save-btn.is-active {
    color: #FBBF24 !important;
}

/* Seamless Inline Comments */
.c-post__inline-comments {
    border-top: none;
    background: none;
}

.c-post__comment-box-seamless {
    transition: transform 0.2s ease;
}

.c-post__comment-box-seamless:focus-within {
    transform: translateY(-1px);
}

.c-post__comments-list-inline::-webkit-scrollbar {
    width: 4px;
}

.c-post__comments-list-inline::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Targeted Post Glow Animation */
@keyframes targetPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 155, 240, 0.4);
        border-color: var(--color-primary);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(29, 155, 240, 0.25);
        border-color: var(--color-primary);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(29, 155, 240, 0);
    }
}

.c-post:target {
    animation: targetPulse 2s ease-in-out 3;
    border-color: var(--color-primary) !important;
}