/* =============================================================================
   Interactions - Comments, reactions, notifications
   ============================================================================= */

/* Interaction Pills (post cards) */
.interactions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.interaction-pill {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--color-reaction);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1;
}

.interaction-pill .icon {
    width: 0.85em;
    height: 0.85em;
}

/* =============================================================================
   Reaction Avatars (for detail page)
   ============================================================================= */

.reactions-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.reaction-group {
    margin-bottom: 1.5rem;
}

.reaction-group h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.reaction-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.reaction-avatar {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.15s;
}

.reaction-avatar:hover {
    transform: scale(1.1);
}

.reaction-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================================================
   Comments Section
   ============================================================================= */

.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.comments-section > h3 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.comment {
    margin-bottom: 1.5rem;
}

.comment-reply {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-meta {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: block;
}

.comment-author:hover {
    color: var(--link);
}

.comment-instance {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.comment-time {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    flex-shrink: 0;
}

.comment-time:hover {
    color: var(--link);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-content a {
    color: var(--link);
}

.comment-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.comment-action-btn:hover {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text);
    border-color: var(--text-muted);
}

.comment-action-btn svg {
    flex-shrink: 0;
}

.comment-action-btn.liked {
    color: #dc2626;
    border-color: #dc2626;
}

.comment-action-btn.boosted {
    color: var(--accent);
    border-color: var(--accent);
}

.comment-attachments {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-attachments img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Local reply indicator */
.comment-local {
    border-left-color: var(--accent);
}

/* Fallback avatar */
.avatar-fallback {
    width: 100%;
    height: 100%;
    background: var(--color-reaction);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* =============================================================================
   Notifications
   ============================================================================= */

/* Notification badge in sidebar */
.notification-badge {
    color: var(--accent);
    font-weight: 600;
}

/* Notifications page */
.notifications {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.no-notifications {
    color: var(--text-muted);
    font-style: italic;
}

.notification-group h2 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.notification-icon svg {
    width: 100%;
    height: 100%;
}

.notification-like .notification-icon {
    color: #e11d48;
}

.notification-boost .notification-icon {
    color: var(--accent);
}

.notification-reply .notification-icon {
    color: #3b82f6;
}

.notification-follow .notification-icon {
    color: #8b5cf6;
}

.notification-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-actor {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.notification-actor:hover {
    color: var(--link);
}

.notification-text {
    color: var(--text-muted);
}

.notification-post {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.notification-post:hover {
    color: var(--link);
}

.notification-time {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.notification-preview {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}
