/* =========================
   Container
   ========================= */
.bsky-feed {
  display: grid;
  gap: 1.25rem;
}

/* Optional inner padding for post body */
.bsky-wrapper {
  padding: 1.5rem 1.2rem;
}

/* =========================
   Compact Profile Header (top card)
   ========================= */
.bsky-header {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
}

.bsky-header--compact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Top row: avatar + identity */
.bsky-header-top {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.bsky-header-avatar--sm {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bsky-header-identity {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bsky-header-handle-title {
  font-weight: 700;
  color: #111;
  text-decoration: none;
  font-size: 1.5rem;
}
.bsky-header-handle-title:hover { text-decoration: underline; }

.bsky-header-username {
  font-size: .92rem;
  color: #666;
}

/* Centered stats row */
.bsky-header-stats--center {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  text-align: center;
}

.bsky-stat-num { font-weight: 700; }
.bsky-stat-label { font-size: .85rem; color: #666; }

/* Full-width follow button inside the card */
.bsky-follow-btn--full {
  display: block;
  font-size:1rem;
  width: 100%;
  margin-top:1rem;
  text-align: center;
  padding: .6rem .9rem;
  font-weight: 700;
  text-decoration: none;
  background: #c4d600;
  color: #fff !important;
}
.bsky-follow-btn--full i { margin-right: .4rem; }

/* =========================
   Posts Stream
   ========================= */
.bsky-post {
  padding: 1rem 0 0;
  border-bottom: 1px solid #e6e6e6; /* bottom divider only */
  background: transparent;
}
.bsky-post:last-child { border-bottom: none; }

/* Post header (avatar left, handle on top, time below) */
.bsky-post-header { margin-bottom: .5rem; }

.bsky-author-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1rem;
}

.bsky-post-avatar--sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: .2rem; /* align with first line */
  flex-shrink: 0;
}

.bsky-author-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bsky-handle-title {
  font-weight: 700;
  color: #222;
  text-decoration: none;
}
.bsky-handle-title:hover { text-decoration: underline; }

.bsky-time {
  margin-top: .15rem;
  font-size: .85rem;
  color: #777;
}

/* Body */
.bsky-text {
  margin: .5rem 0 1rem;
  white-space: pre-wrap;
  font-size: 1rem;
}

/* Media (uniform cropped images at 150px) */
.bsky-post-image {
  display: block;
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative; 
}
.bsky-post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;  
  object-position: center;
}

/* Play overlay for video posts */
.bsky-post-image.is-video .bsky-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.bsky-post-image.is-video .bsky-play i {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* =========================
   Actions Bar
   ========================= */
.bsky-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.bsky-actions-left,
.bsky-actions-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bsky-action,
.bsky-share {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  color: #c4d600 !important; /* brand */
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}

.bsky-action:hover,
.bsky-share:hover {
  opacity: 1;
  color: #000;
}

.bsky-count,
.bsky-share-label {
  font-size: .9rem;
}
