/* ══════════════════════════════════════════
   PostCard v2 — Premium Feed Design
   Sharp · Fast · Swipeable · Premium
   ══════════════════════════════════════════ */

/* ── Card shell ── */
.post-card {
    background: #fff !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03) !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s ease !important;
}
.post-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06) !important;
}

/* ── Trending strip ── */
.pc-trending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 5px 16px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* ── Header ── */
.post-card .pc-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 16px 6px !important;
}
.post-card .pc-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #e2e8f0 !important;
}
.post-card .pc-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}
.post-card .pc-avatar-ph {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    border-radius: 50% !important;
}
.post-card .pc-meta {
    flex: 1 !important;
    min-width: 0 !important;
}
.post-card .pc-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
}
.post-card .pc-name {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}
.post-card .pc-name:hover { color: #6366f1 !important; }
.post-card .pc-badge {
    font-size: 9px !important;
    padding: 1px 5px !important;
    border-radius: 3px !important;
    font-weight: 800 !important;
    background: #ede9fe !important;
    color: #6366f1 !important;
    letter-spacing: 0.3px !important;
}
.post-card .pc-check {
    color: #6366f1 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
.post-card .pc-tier {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #d97706 !important;
}
.post-card .pc-dot {
    color: #cbd5e1 !important;
    font-size: 12px !important;
}
.post-card .pc-time {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}
.post-card .pc-handle {
    font-size: 12px !important;
    color: #94a3b8 !important;
    display: block !important;
    margin-top: 1px !important;
}

/* ── Headline — BIG + tight ── */
.post-card .pc-headline {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
    padding: 6px 16px 2px !important;
    margin: 0 !important;
    letter-spacing: -0.4px !important;
}

/* ── Body text — compact ── */
.post-card .pc-body {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #475569 !important;
    padding: 4px 16px 6px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.post-card .pc-body-full {
    /* shown via JS when expanded */
}

/* ── Tags ── */
.post-card .pc-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 2px 16px 8px !important;
}
.post-card .pc-tag {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6366f1 !important;
    background: #ede9fe !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    display: inline-block !important;
}
/* Override any inline tags in body */
.post-card .pc-body .pc-tag {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ── Read more ── */
.post-card .pc-more {
    display: inline-block !important;
    visibility: visible !important;
    margin: 0 16px 8px !important;
    padding: 4px 0 !important;
    background: none !important;
    border: none !important;
    color: #6366f1 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    letter-spacing: 0.2px !important;
}
.post-card .pc-more:hover { text-decoration: underline !important; }

/* Also handle old .pc-expand class */
.post-card .pc-expand {
    display: inline-block !important;
    visibility: visible !important;
    margin: 0 16px 8px !important;
    padding: 4px 0 !important;
    background: none !important;
    border: none !important;
    color: #6366f1 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

/* ── Image — EDGE-TO-EDGE ── */
.post-card .pc-media {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-height: 340px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #f1f5f9 !important;
}
.post-card .pc-media a {
    display: block !important;
    visibility: visible !important;
    line-height: 0 !important;
}
.post-card .pc-media img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: cover !important;
    max-height: 340px !important;
}

/* ── Link pills ── */
.post-card .pc-links {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 10px 16px 6px !important;
}
.post-card .pc-pill,
.post-card .pc-link-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6366f1 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}
.post-card .pc-pill:hover,
.post-card .pc-link-btn:hover {
    background: #6366f1 !important;
    color: #fff !important;
    border-color: #6366f1 !important;
}

/* ── Action bar — clean 3-button ── */
.post-card .pc-actions {
    display: flex !important;
    border-top: 1px solid #f1f5f9 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.post-card .pc-act {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 11px 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #94a3b8 !important;
    transition: all 0.15s ease !important;
}
.post-card .pc-act:hover {
    background: #f8fafc !important;
    color: #6366f1 !important;
}
.post-card .pc-act:active { transform: scale(0.95) !important; }
.post-card .pc-act-icon { font-size: 16px !important; line-height: 1 !important; }
.post-card .pc-act-num {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: inherit !important;
}
/* Also handle old .pc-action class */
.post-card .pc-action {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 11px 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    transition: all 0.15s ease !important;
}
.post-card .pc-action:hover { background: #f8fafc !important; color: #6366f1 !important; }

/* ── Comments ── */
.post-card .pc-comments {
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 16px !important;
    background: #fafbfc !important;
}
.post-card .pc-comments-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}
.post-card .pc-comment {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
}
.post-card .pc-comment-author {
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0f172a !important;
}
.post-card .pc-comment-text { color: #334155 !important; font-size: 14px !important; flex: 1 !important; }
.post-card .pc-comment-time { font-size: 11px !important; color: #94a3b8 !important; }
.post-card .pc-no-comments { font-size: 13px !important; color: #94a3b8 !important; text-align: center !important; }
.post-card .pc-cmt-form,
.post-card .pc-comment-form {
    display: flex !important;
    gap: 8px !important;
}
.post-card .pc-cmt-form input,
.post-card .pc-comment-form input {
    flex: 1 !important;
    padding: 8px 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    background: #fff !important;
    color: #0f172a !important;
}
.post-card .pc-cmt-form input:focus,
.post-card .pc-comment-form input:focus {
    border-color: #6366f1 !important;
    outline: none !important;
}
.post-card .pc-cmt-form button,
.post-card .pc-comment-form button {
    padding: 8px 16px !important;
    background: #6366f1 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    cursor: pointer !important;
}
.post-card .pc-cmt-form button:hover,
.post-card .pc-comment-form button:hover { background: #4f46e5 !important; }

/* ── Feed container ── */
.feed-posts,
.explore-feed {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Explore page header ── */
.explore-header {
    padding: 16px;
}
.explore-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}
