/* ── Animations ──────────────────────────────────────────── */

@keyframes streamFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes streamPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ── Stream page wrapper ─────────────────────────────────── */

.stream-page {
  max-width: 640px;
  margin: 0;
  padding: 24px 4px 0;
}
@media (min-width: 768px)  { .stream-page { margin-left: 30px;  margin-right: 15px; } }
@media (min-width: 992px)  { .stream-page { margin-left: 60px;  margin-right: 30px; } }

/* ── Profile header ──────────────────────────────────────── */

.stream-profile {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e1e1e;
}

.stream-profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.stream-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.stream-profile h1 {
  margin: 0;
  font-size: 22px;
  color: #eee;
}

.stream-handle {
  color: #777;
  font-size: 16px;
  margin: 0 0 5px 0;
}

.stream-bio {
  color: #aaa;
  font-size: 17px;
  margin: 0;
}

/* ── Post avatar image ───────────────────────────────────── */

.stream-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}


/* ── Post layout ─────────────────────────────────────────── */

.stream-post {
  display: flex;
  gap: 14px;
  padding: 16px 0 16px 12px;
  border-bottom: 1px solid #2e2e2e;
  animation: streamFadeIn 0.22s ease both;
  transition: background 0.15s ease;
}

.stream-post:last-child {
  border-bottom: none;
}

.stream-post:hover {
  background: color-mix(in srgb, var(--accent, #ffffff) 5%, transparent);
}


.stream-post-left {
  flex-shrink: 0;
  padding-top: 2px;
}

.stream-post-right {
  flex: 1;
  min-width: 0;
}

/* ── Post meta row (name · handle · time · copy btn) ─────── */

.stream-post-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.stream-meta-name {
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #ddd;
}

.stream-meta-handle {
  color: #777;
  font-size: 15px;
}

.stream-meta-dot {
  color: #666;
  font-size: 15px;
}

.stream-meta-time {
  color: #777;
  font-size: 15px;
}

/* ── Fresh pulse dot ─────────────────────────────────────── */

.stream-fresh-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00c9ff;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  animation: streamPulse 2s ease-in-out infinite;
}

/* ── Copy-link button ────────────────────────────────────── */

.stream-copy-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #555;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
}

.stream-post:hover .stream-copy-btn {
  opacity: 1;
}

.stream-copy-btn:hover {
  color: #2F9EFF;
}

/* ── Post title ──────────────────────────────────────────── */

.stream-meta-icon {
  font-size: 13px;
  line-height: 1;
}

.stream-post-title {
  font-size: 16px;
  font-weight: 600;
  color: #ccc;
  line-height: 1.4;
  margin: 0 0 4px 0;
}

/* ── Post body ───────────────────────────────────────────── */

.stream-post-body {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  color: #aaa;
  line-height: 1.8;
  margin-top: 4px;
}

.stream-post-body a {
  color: #2F9EFF;
  text-decoration: none;
}

.stream-post-body a:hover {
  text-decoration: underline;
}

/* ── Link footnote ───────────────────────────────────────── */

.stream-link-footnote {
  display: inline-block;
  margin-top: 8px;
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

.stream-link-footnote:hover {
  color: #999;
  text-decoration: underline;
}

/* ── Empty / loading states ──────────────────────────────── */

.stream-loading,
.stream-empty {
  color: #666;
  font-size: 17px;
  padding: 16px 0;
}

/* ── Stream nav accent ───────────────────────────────────── */

.sidebar-menu-item a[href*="stream"]:hover,
.sidebar-menu-item.active a[href*="stream"] {
  border-left-color: #00c9ff;
  background-color: rgba(0, 201, 255, 0.07);
}

/* ── Sidebar activity widget ─────────────────────────────── */

.activity-widget {
  border-top: 1px solid #1e1e1e;
  margin-top: 20px;
  padding-top: 14px;
  margin-bottom: 16px;
}

.activity-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 8px;
}

.activity-widget-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.activity-widget-icon {
  font-size: 12px;
  line-height: 1;
}

.activity-widget-dot {
  color: #666;
  font-size: 12px;
}

.activity-widget-header h3 {
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #777;
  margin: 0;
}

.activity-widget-link {
  font-size: 14px;
  color: #2F9EFF;
  text-decoration: none;
}

.activity-widget-link:hover {
  text-decoration: underline;
}

.activity-widget-item {
  font-size: 15px;
  margin-bottom: 12px;
}

.activity-widget-item:last-child {
  margin-bottom: 0;
}

.activity-widget-title {
  color: #bbb;
  line-height: 1.4;
  margin-bottom: 3px;
}

.activity-widget-body {
  color: #888;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.activity-widget-time {
  color: #888;
  font-size: 12px;
}

.activity-widget-link-footnote {
  display: inline-block;
  margin-top: 4px;
  color: #555;
  font-size: 12px;
  text-decoration: none;
}

.activity-widget-link-footnote:hover {
  color: #888;
  text-decoration: underline;
}
