/* BotFeed Nostr posts page */

.bot-profile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    margin-bottom: 24px;
    background: var(--card-background);
    border-left: 4px solid #8b5cf6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bot-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #8b5cf6;
    flex-shrink: 0;
}

.bot-meta p {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.bot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: #8b5cf6;
    color: #fff;
    transition: opacity 0.2s;
}
.pill:hover { opacity: 0.85; }
.pill.lightning { background: #f59e0b; color: #1a1a1a; cursor: default; }

/* Post cards */
.post-card {
    background: var(--card-background);
    border-left: 3px solid #8b5cf6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 12px 16px;
    margin-bottom: 10px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--link-color);
    text-decoration: none;
    line-height: 1.4;
}
.post-title:hover { text-decoration: underline; }
span.post-title { color: var(--text-color); }

.post-time {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-summary {
    margin: 4px 0 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.88;
    line-height: 1.5;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-stats {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e5e7eb;
    color: #374151;
}
@media (prefers-color-scheme: dark) {
    .post-stats { background: #374151; color: #d1d5db; }
}
.post-stats.src-hn     { background: #fef3c7; color: #92400e; }
.post-stats.src-sn     { background: #fef9c3; color: #854d0e; }
.post-stats.src-nostr  { background: #ede9fe; color: #5b21b6; }
.post-stats.src-reddit { background: #fee2e2; color: #991b1b; }
@media (prefers-color-scheme: dark) {
    .post-stats.src-hn     { background: #451a03; color: #fbbf24; }
    .post-stats.src-sn     { background: #3f2d00; color: #fbbf24; }
    .post-stats.src-nostr  { background: #2e1065; color: #c4b5fd; }
    .post-stats.src-reddit { background: #450a0a; color: #fca5a5; }
}

.nostr-link {
    font-size: 0.82rem;
    color: #8b5cf6;
    text-decoration: none;
}
.nostr-link:hover { text-decoration: underline; }

/* States */
.loading { padding: 20px; text-align: center; color: #888; }
.error   { padding: 12px; color: #dc2626; background: #fee2e2; border-radius: 4px; margin-bottom: 12px; }
.empty   { padding: 20px; text-align: center; color: #888; }
