/*
 * Community Pulse Widget — pulse.css
 * Version: 1.1.4
 */

/* Avatar alignment */
.iso1200-pulse .portal-widget-activity-avatar {
    padding-top: 4px;
    flex-shrink: 0;
}

/* Hide broken Gravatar images — SD uses onerror="this.remove()" 
   but wp_kses_post strips event handlers. CSS fallback achieves the same result. */
.iso1200-pulse .portal-user-gravatar {
    color: transparent; /* hides the broken image icon */
}

/* .iso1200-pulse .portal-user-gravatar[src*="d=404"] {
    display: none;
}*/

/* Activity item row */
.iso1200-pulse .portal-widget-activity-item {
    display:       flex;
    gap:           10px;
    align-items:   flex-start;
    padding:       8px 0;
    border-bottom: 1px solid var(--portal-border-color, #eeeeee);
}

.iso1200-pulse .portal-widget-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Activity text */
.iso1200-pulse .portal-widget-activity {
    font-size:   13px;
    line-height: 1.5;
    color:       var(--portal-text-color, #333333);
}

/* Author name */
.iso1200-pulse .portal-widget-activity-author {
    font-weight:     600;
    text-decoration: none;
    color:           var(--portal-link-color, inherit);
}
.iso1200-pulse .portal-widget-activity-author:hover {
    text-decoration: underline;
}

/* Post title link (accessible posts) */
.iso1200-pulse .portal-widget-activity a:not(.portal-widget-activity-author) {
    text-decoration: none;
    color:           var(--portal-link-color, inherit);
}
.iso1200-pulse .portal-widget-activity a:not(.portal-widget-activity-author):hover {
    text-decoration: underline;
}

/* ── Locked item styles ───────────────────────────────────────── */

/* Whole item slightly dimmed */
.iso1200-pulse .portal-widget-activity-item.iso1200-pulse-locked {
    opacity: 0.72;
}

/* Greyed, unlinked title with lock icon inline */
.iso1200-pulse .iso1200-pulse-locked-title {
    display:     inline;
    color:       var(--portal-meta-color, #888888);
    font-style:  italic;
    cursor:      default;
}

/* Lock icon — vertically centred with text */
.iso1200-pulse .iso1200-pulse-lock {
    display:        inline-block;
    vertical-align: middle;
    margin-right:   3px;
    margin-top:     -2px;
    color:          var(--portal-meta-color, #888888);
    flex-shrink:    0;
}

/* ── Space name ──────────────────────────────────────────────── */
/* Same visual weight as the timestamp — small, muted, below timestamp */
.iso1200-pulse .portal-widget-activity-space {
    font-size:  11px;
    color:      var(--portal-meta-color, #888888);
    margin-top: 2px;
}

/* ── Timestamp ───────────────────────────────────────────────── */
.iso1200-pulse .portal-widget-activity-time {
    font-size:  11px;
    color:      var(--portal-meta-color, #888888);
    margin-top: 1px;
}
