.post-card { background: white; border-bottom: 1px solid var(--border); position: relative; padding: 0px; }
.post-row { padding-left: 12px; padding-right: 12px; }

@media (min-width: 769px) {
    .post-card { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
}

@media (max-width: 768px) {
    .post-row { padding-left: 10px; padding-right: 10px; }
    .post-card { border: none; border-bottom: 2px solid #E2E8F0; margin-bottom: 0; box-shadow: none; border-radius: 0; }
}
.post-row:first-child { padding-top: 10px; }
.post-row:last-child { padding-bottom: 6px; }

/* HEADER & USER INFO */
.post-header, .group-tag-header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; width: 100%; }
.avatar-container { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.pfp-placeholder { width: 40px; height: 40px; border-radius: 50%; background: #eff3f4; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; overflow: hidden; text-decoration: none; }
.follow-plus-btn { position: absolute; bottom: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: white; color: black; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; cursor: pointer; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* CONTENT & TRUNCATION */
.post-content-wrapper { font-size: 15px; line-height: 1.5; color: #0f1419; cursor: pointer; }
.post-content { font-size: 14px; font-weight: 400; line-height: 20px; white-space: pre-wrap; word-wrap: break-word; margin-top: 4px; }
.post-content.truncated { display: block; max-height: 112px; overflow: hidden; position: relative; }
.see-more { color: var(--green); font-weight: 600; cursor: pointer; margin-top: 5px; display: inline-block; }
.content-link { color: var(--indigo); text-decoration: none; word-break: break-all; }
.content-link:hover { text-decoration: underline; }

.post-img-container, 
.link-preview-card {
    width: 100%;
    margin: 6px 0 0 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #f0f2f5;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
}
.post-img { width: 100%; display: block; max-height: 550px; object-fit: cover; }

/* STATS & INTERACTIONS */
.stats-bar { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.stats-bar [data-action="copy-link"] { margin-left: auto; }

.stat-item { display: flex; align-items: center; gap: 6px; color: #818c99; font-size: 13px; border:none; background:none; padding: 6px 12px; border-radius: 20px; transition: 0.2s; position: relative; overflow: visible; }
.stat-item:hover { background: #f0f2f5; }
.stat-item.active { color: var(--pink); }

/* Heart Pop & Particles */
@keyframes heartPop {
    0% { transform: scale(1); }
    15% { transform: scale(1.4) rotate(-15deg); }
    30% { transform: scale(1.2) rotate(15deg); }
    45% { transform: scale(1.3) rotate(-10deg); }
    100% { transform: scale(1); }
}
.stat-item.active svg { fill: var(--pink); animation: heartPop 0.45s cubic-bezier(0.17, 0.89, 0.32, 1.49); }
.particle { position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; opacity: 0; }
@keyframes particleExplosion {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* LINK PREVIEWS */
.link-thumb { width: 100%; height: 210px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); border-radius: 0 !important; }
.link-info { padding: 12px; background: white; }
.link-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: #0f1419; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-desc { font-size: 14px; color: var(--gray); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-host { font-size: 12px; color: var(--gray); margin-bottom: 4px; text-transform: lowercase; }

/* GROUP HEADERS (Post Card Context) */
.group-avatar-mini { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); background: #f0f2f5; color: #536471; flex-shrink: 0; }
.group-name-link { font-weight: 600; color: #000; text-decoration: none; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.post-context-line { font-size: 13px; color: var(--gray); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.post-context-line { color: inherit; text-decoration: none; vertical-align: baseline }

/* MENU DROPDOWNS */
.menu-btn { background: none; border: none; color: #818c99; cursor: pointer; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.header-action-group { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    flex-shrink: 0; 
    margin-left: auto; 
}

