.post-card { background: white; border-bottom: 1px solid var(--border); position: relative; transition: 0.3s; padding: 0px; }
.post-row { padding-left: 16px; padding-right: 16px; }

@media (min-width: 769px) {
    .post-card { border: 1px solid var(--border); border-radius: 16px; margin-bottom: 9px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
    .post-card:hover { background: #fcfcfc; }
}

@media (max-width: 768px) {
    .post-row { padding-left: 12px; padding-right: 12px; }
    .post-card { border: none; margin-bottom: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
}
.post-row:first-child { padding-top: 16px; }
.post-row:last-child { padding-bottom: 12px; }

/* HEADER & USER INFO */
.post-header, .group-tag-header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; 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 { white-space: pre-wrap; word-wrap: break-word; margin-top: 4px; }
.post-content.truncated { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.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: 12px 0 0 0;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #f0f2f5;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.post-img { width: 100%; display: block; max-height: 550px; object-fit: cover; }

/* STATS & INTERACTIONS */
.stats-bar { display: flex; justify-content: space-between; padding-top: 10px; margin-top: 4px; }

.stat-item { display: flex; align-items: center; gap: 6px; color: var(--gray); font-size: 13px; cursor: pointer; 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); }

/* ANIMATIONS (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: 800; 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; }

/* MENU DROPDOWNS */
.menu-btn { background: none; border: none; color: var(--gray); cursor: pointer; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* SUGGESTION RAIL */
.suggestion-rail { background: white; margin-bottom: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
@media (min-width: 769px) { .suggestion-rail { border: 1px solid var(--border); border-radius: 16px; margin-bottom: 15px; } }
.rail-header { padding: 0 16px 12px; font-weight: 800; font-size: 16px; font-family: 'Montserrat'; color: #000; }
.rail-track { display: flex; overflow-x: auto; gap: 12px; padding: 0 16px; scrollbar-width: none; }
.rail-card { flex: 0 0 150px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; position: relative; }
.rail-cover { width: 100%; height: 75px; object-fit: cover; background: var(--green); border-bottom: 1px solid var(--border); }
.rail-info { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.rail-name { font-weight: 700; font-size: 14px; color: #0f1419; text-decoration: none; }
.rail-join-btn { margin-top: auto; background: var(--green); color: white; border: none; padding: 8px 0; border-radius: 14px; font-weight: 700; cursor: pointer; }

/* SKELETONS */
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
.skeleton { background: #eff1f3; background-image: linear-gradient(90deg, #eff1f3 0%, #f7f8f9 50%, #eff1f3 100%); background-repeat: no-repeat; background-size: 1000px 100%; display: inline-block; position: relative; animation: shimmer 2s infinite linear; border-radius: 4px; }
.skeleton-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 768px) { .skeleton-card { border: none; border-radius: 0; border-bottom: 1px solid var(--border); } }

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    background-color: var(--pink);
}

.content-link {
    color: var(--indigo);
    text-decoration: none;
    font-weight: 500;
}

.content-link:hover {
    text-decoration: underline;
}

.header-action-group { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    flex-shrink: 0; 
    margin-left: auto; 
}

.badge-indigo { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 14px; 
    height: 14px; 
    background-color: var(--indigo); 
    color: white; 
    border-radius: 50%; 
    margin-left: 4px; 
    font-size: 8px; 
    vertical-align: middle; 
    flex-shrink: 0; 
}

.badge-indigo::after { 
    content: "✓"; 
    font-weight: bold; 
}