/* User status tray + Instagram-style viewer + suggest rails */

.wp-status-tray {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 14px 10px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.wp-status-tray::-webkit-scrollbar { height: 4px; }
.wp-status-tray::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.wp-status-item {
  flex: 0 0 auto;
  width: 76px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
}
.wp-status-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 50%;
  padding: 3px;
  background: #ddd;
  box-sizing: border-box;
  position: relative;
}
.wp-status-ring.has-new {
  background: linear-gradient(135deg, #fce268, #27ae60 45%, #056636);
}
.wp-status-ring.has-seen {
  background: #cfd8d3;
}
.wp-status-ring.is-add {
  background: #e8f5ee;
  border: 2px dashed #27ae60;
  padding: 2px;
}
.wp-status-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
  border: 2px solid #fff;
  box-sizing: border-box;
}
.wp-status-add-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #056636;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  border: 2px solid #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  box-sizing: border-box;
  /* Optical center for the "+" glyph (sits slightly high otherwise) */
  padding-bottom: 1px;
}
.wp-status-name {
  font-size: 11px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
  margin: 0 auto;
}

/* Composer modal */
.wp-status-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.wp-status-modal-overlay[hidden] { display: none !important; }
.wp-status-composer {
  background: #fff;
  border-radius: 14px;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  padding: 16px 18px 18px;
}
.wp-status-composer h3 { margin: 0 0 12px; font-size: 17px; }
.wp-status-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.wp-status-tabs button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.wp-status-tabs button.is-active {
  background: #e8f5ee;
  border-color: #27ae60;
  color: #056636;
}
.wp-status-composer textarea {
  width: 100%;
  min-height: 100px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  font: inherit;
  box-sizing: border-box;
  resize: vertical;
}
.wp-status-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.wp-status-colors button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.wp-status-colors button.is-active { border-color: #111; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #056636; }
.wp-status-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.wp-status-composer-actions .wp-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.wp-status-composer-actions .wp-btn-primary { background: #056636; color: #fff; }
.wp-status-composer-actions .wp-btn-ghost { background: #f0f0f0; color: #333; }
.wp-status-composer-msg { font-size: 13px; margin-top: 8px; min-height: 1.2em; }
.wp-status-file-label {
  display: block;
  padding: 24px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  color: #555;
  font-size: 13px;
}
.wp-status-file-label input { display: none; }
.wp-status-preview {
  max-width: 100%;
  max-height: 220px;
  display: none;
  margin: 10px auto 0;
  border-radius: 10px;
}

/* Fullscreen viewer */
.wp-status-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  background: #0b0b0b;
  color: #fff;
  display: flex;
  flex-direction: column;
  touch-action: none;
}
.wp-status-viewer[hidden] { display: none !important; }
.wp-status-viewer-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  padding: 10px 12px 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
}
.wp-status-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.wp-status-progress span {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.35);
  border-radius: 2px;
  overflow: hidden;
}
.wp-status-progress span i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.wp-status-progress span.is-done i { width: 100%; }
.wp-status-progress span.is-active i {
  width: 0;
  animation: wpStatusFill linear forwards;
}
@keyframes wpStatusFill {
  from { width: 0; }
  to { width: 100%; }
}
.wp-status-viewer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
}
.wp-status-viewer-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.4);
}
.wp-status-viewer-user .meta { flex: 1; min-width: 0; }
.wp-status-viewer-user .meta strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-status-viewer-user .meta small { opacity: .8; font-size: 11px; }
.wp-status-viewer-close,
.wp-status-viewer-del {
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.wp-status-viewer-del { font-size: 13px; width: auto; padding: 0 10px; border-radius: 18px; }
.wp-status-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  padding: 72px 0 48px;
  box-sizing: border-box;
}
.wp-status-stage-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
}
.wp-status-stage-text {
  display: none;
  width: min(520px, 92%);
  min-height: 50vh;
  border-radius: 12px;
  padding: 28px 22px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.wp-status-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 2;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}
.wp-status-nav.prev { left: 0; }
.wp-status-nav.next { right: 0; }

/* Owner view count bar (bottom of fullscreen viewer) */
.wp-status-views-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 14px 16px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  pointer-events: none;
}
.wp-status-views-bar[hidden] { display: none !important; }
.wp-status-views-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .15s, transform .15s;
}
.wp-status-views-btn:hover {
  background: rgba(255,255,255,.24);
  transform: translateY(-1px);
}
.wp-status-views-icon {
  font-size: 15px;
  line-height: 1;
  opacity: .95;
}

/* People who viewed sheet */
.wp-status-viewers-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  max-height: min(62vh, 480px);
  background: #161616;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wp-status-viewers-sheet[hidden] { display: none !important; }
.wp-status-viewers-sheet-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wp-status-viewers-sheet-hd strong {
  font-size: 15px;
  font-weight: 700;
}
.wp-status-viewers-close {
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wp-status-viewers-list {
  overflow-y: auto;
  padding: 6px 0 16px;
  -webkit-overflow-scrolling: touch;
}
.wp-status-viewers-empty {
  padding: 28px 16px;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 14px;
}
.wp-status-viewer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  transition: background .12s;
}
.wp-status-viewer-row:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
}
.wp-status-viewer-row img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
  flex-shrink: 0;
}
.wp-status-viewer-row-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wp-status-viewer-row-meta strong {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-status-viewer-row-meta small {
  font-size: 11px;
  color: rgba(255,255,255,.55);
}

/* Suggest profiles rail in feed */
.wp-suggest-rail {
  max-width: 500px;
  margin: 15px auto 25px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  padding: 12px 0 14px;
  overflow: hidden;
  position: relative;
}
.wp-suggest-rail-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}
.wp-suggest-rail-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wp-suggest-rail-title span,
.wp-suggest-rail-hd span { font-size: 11px; font-weight: 600; color: #888; }
.wp-suggest-nav-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wp-suggest-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #d5e8dc;
  background: #f3faf6;
  color: #056636;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: background .15s, border-color .15s, opacity .15s, color .15s;
  font-family: inherit;
}
.wp-suggest-nav:hover:not(:disabled) {
  background: #056636;
  border-color: #056636;
  color: #fff;
}
.wp-suggest-nav:disabled {
  opacity: .35;
  cursor: default;
}
.wp-suggest-scroller-wrap { position: relative; }
.wp-suggest-scroller {
  display: flex;
  align-items: stretch; /* equal card heights */
  gap: 12px;
  overflow-x: auto;
  padding: 0 14px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
/* Equal-size cards: fixed width/height, flex column so Follow always sits on one baseline */
.wp-suggest-card {
  flex: 0 0 156px;
  width: 156px;
  min-width: 156px;
  max-width: 156px;
  height: 232px;
  min-height: 232px;
  max-height: 232px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 10px 12px;
  background: #fafbfa;
  transition: border-color .15s, box-shadow .15s, opacity .38s ease, transform .38s ease;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.wp-suggest-card.is-hidden { display: none; }
/* Fade-out after follow (and dismiss) */
.wp-suggest-card.is-fading-out {
  opacity: 0 !important;
  transform: scale(0.94) translateY(6px);
  pointer-events: none;
  border-color: transparent;
  box-shadow: none;
}
.wp-suggest-card:hover {
  border-color: #c8e6d4;
  box-shadow: 0 2px 10px rgba(39,174,96,.1);
}
.wp-suggest-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  color: #666;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wp-suggest-dismiss:hover { background: #e0e0e0; color: #222; }
/* Top content block: avatar + name + handle + short bio — grows, fixed slots */
.wp-suggest-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  text-decoration: none;
  color: inherit;
  padding: 0 2px;
  box-sizing: border-box;
}
.wp-suggest-card-link img.avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  background: #e8e8e8;
  flex-shrink: 0;
}
.wp-suggest-card .name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  height: 1.25em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
  width: 100%;
}
.wp-suggest-card .handle {
  font-size: 11px;
  color: #888;
  line-height: 1.2;
  height: 1.2em;
  margin: 0 0 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
/* Short bio — single line, equal space on every card */
.wp-suggest-card .bio {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
  height: 1.3em;
  max-height: 1.3em;
  margin: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
/* Mutual row always reserved so buttons stay level (empty spacer when none) */
.wp-suggest-mutual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  margin: 6px 0 8px;
  font-size: 10px;
  color: #666;
  flex-shrink: 0;
  overflow: hidden;
}
.wp-suggest-mutual.is-empty {
  visibility: hidden; /* keeps height, no visible content */
}
.wp-suggest-mutual-faces {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  flex-shrink: 0;
}
.wp-suggest-mutual-faces img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
  margin-left: -5px;
  background: #ddd;
}
.wp-suggest-mutual-faces img:last-child { margin-left: 0; }
.wp-suggest-mutual-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}
/* Footer: Follow always same size, same baseline on every card */
.wp-suggest-card-footer {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 2px;
}
.wp-suggest-follow-btn {
  display: block;
  width: 100%;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: #056636;
  color: #fff;
  font-family: inherit;
  box-sizing: border-box;
}
.wp-suggest-follow-btn:hover { background: #04522c; }
.wp-suggest-follow-btn.is-following {
  background: #fff;
  color: #056636;
  border-color: #056636;
}
.wp-suggest-follow-btn.is-following:hover {
  background: #fdecea;
  border-color: #e74c3c;
  color: #c0392b;
}
.wp-suggest-follow-btn:disabled { opacity: .65; cursor: wait; }
.wp-suggest-undo-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 14px 0;
  padding: 8px 12px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
}
.wp-suggest-undo-bar.is-visible { display: flex; }
.wp-suggest-undo-bar button {
  border: none;
  background: #27ae60;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: inherit;
}
.wp-suggest-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

/* Profile avatar ring */
#wyp-profile-header-root .wyp-avatar-status-ring {
  border-radius: 50%;
  padding: 4px;
  line-height: 0;
  cursor: pointer;
  /* overflow visible so dropdown can sit below the circle */
  overflow: visible;
}
#wyp-profile-header-root .wyp-avatar-status-ring.has-status {
  background: linear-gradient(135deg, #fce268, #27ae60 45%, #056636);
}
#wyp-profile-header-root .wyp-avatar-status-ring.has-seen {
  background: #cfd8d3;
}
#wyp-profile-header-root .wyp-avatar-status-ring.is-add {
  background: #e8f5ee;
  box-shadow: 0 0 0 2px #27ae60 inset;
}
#wyp-profile-header-root .wyp-avatar-status-ring img {
  border: 3px solid #fff !important;
  box-sizing: border-box;
}

/* Simple avatar options dropdown */
#wyp-profile-header-root .wp-profile-avatar-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 80;
  min-width: 188px;
  max-width: min(240px, 80vw);
  background: #fff;
  border: 1px solid #dce8e1;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(5, 102, 54, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 6px 0;
  text-align: left;
  line-height: 1.3;
}
#wyp-profile-header-root .wp-profile-avatar-menu[hidden] {
  display: none !important;
}
#wyp-profile-header-root .wp-profile-avatar-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #dce8e1;
  border-top: 1px solid #dce8e1;
}
#wyp-profile-header-root .wp-profile-avatar-menu-item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 11px 16px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
}
#wyp-profile-header-root .wp-profile-avatar-menu-item:hover,
#wyp-profile-header-root .wp-profile-avatar-menu-item:focus {
  background: #f3faf6;
  color: #056636;
  outline: none;
}
#wyp-profile-header-root .wp-profile-avatar-menu-item.is-primary {
  color: #056636;
}
#wyp-profile-header-root .wyp-avatar-status-ring.menu-open {
  z-index: 90;
}

@media (max-width: 640px) {
  .wp-status-tray { padding: 10px 10px 8px; gap: 10px; border-radius: 10px; }
  .wp-status-item { width: 68px; }
  .wp-status-ring { width: 56px; height: 56px; }
  .wp-status-stage { padding: 64px 0 36px; }
  .wp-status-stage-text { min-height: 42vh; font-size: clamp(18px, 5.5vw, 26px); }
  .wp-suggest-rail { margin: 12px 8px 20px; }
  .wp-suggest-card {
    flex: 0 0 148px;
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    height: 224px;
    min-height: 224px;
    max-height: 224px;
  }
}

/* Clickable status links */
.wp-status-link {
  color: #fce268 !important;
  text-decoration: underline !important;
  word-break: break-all !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 20 !important;
  pointer-events: auto !important;
}
.wp-status-link:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}
