/* ==========================================================================
   STONE FEST 2026 - NETWORK UPDATES & POST FEED STYLES
   Shared styles for updates.php, org.php storefront updates, and dashboard
   ========================================================================== */

/* Post Cards */
.post-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.post-author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.95rem;
}
.post-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}
.post-author-meta {
    flex: 1;
    min-width: 0;
}
.post-author-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-author-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}
.post-category-tag {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.post-content-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 0.95rem;
    white-space: pre-line;
}

.post-hashtags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.95rem;
}
.post-hashtag-pill {
    color: #ca8a04;
    background: #fefce8;
    border: 1px solid #fde047;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.post-hashtag-pill:hover {
    background: #fef08a;
    border-color: #eab308;
    color: #854d0e;
}

.post-media-box {
    margin-bottom: 1.15rem;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #e2e8f0;
}
.post-media-box img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.post-media-box:hover img {
    transform: scale(1.01);
}

.post-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 8px;
}
.post-action-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.post-action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.post-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.post-action-btn.liked {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* Owner Management Action Bar */
.post-owner-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Feed Grid Mode */
.feed-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.feed-posts-grid .post-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}
.feed-posts-grid .post-content-text {
    flex: 1;
}
.feed-posts-grid .post-media-box img {
    height: 200px;
}
