/* ================================================================
   AshemaleParadise Community — Auth Modal, Reactions, Comments, Nav Menu
   Redesigned 2026-07-25 to match the site's real design tokens (see
   theme.css) — dark surfaces, green/purple accents, pill CTAs, Geist —
   instead of the generic fallback palette this shipped with originally.
   ================================================================ */

:root {
  --bcx-bg:       var(--bg,       #070709);
  --bcx-surface:  var(--surface,  #0f0f13);
  --bcx-surface2: var(--surface2, #17171e);
  --bcx-border:   var(--border,   rgba(255,255,255,.08));
  --bcx-green:    var(--green,    #01FF95);
  --bcx-purple:   var(--purple,   #DC86FD);
  --bcx-text:     var(--text,     #f0eef8);
  --bcx-muted:    var(--muted,    rgba(240,238,248,.5));
  --bcx-danger:   #ff4466;
  --bcx-font:     'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bcx-radius:   16px;
}

/* Still used by .bcx-dropdown.open below (the nav user menu), even though
   the auth modal that originally defined this keyframe is gone. */
@keyframes bcx-pop {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bcx-dropdown.open { animation: none; }
}

/* Benefits list — sells the account before the form, same restrained
   glassmorphism card language as shorts/social.css's .ss-auth-benefits
   (kept as its own class since this modal has no equivalent element to
   reuse and lives in a different stylesheet). */
.bcx-auth-benefits {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(1,255,149,.05);
  border: 1px solid rgba(1,255,149,.16);
  border-radius: 12px;
}
.bcx-auth-benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--bcx-text);
  line-height: 1.3;
}
.bcx-auth-benefits li svg {
  flex-shrink: 0;
  color: var(--bcx-green);
}

/* OAuth (Google, etc.) */
.bcx-oauth-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 40px;
}

.bcx-google-dob {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.bcx-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--bcx-muted);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 16px;
}
.bcx-divider::before,
.bcx-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--bcx-border);
}
.bcx-divider span { padding: 0 12px; }

/* Form */
.bcx-form { display: flex; flex-direction: column; gap: 14px; }

.bcx-field { display: flex; flex-direction: column; gap: 6px; }

.bcx-field label {
  font-size: .78rem;
  color: var(--bcx-muted);
  font-weight: 600;
}

.bcx-field input[type="text"],
.bcx-field input[type="email"],
.bcx-field input[type="password"],
.bcx-field input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  background: var(--bcx-surface2);
  border: 1px solid var(--bcx-border);
  border-radius: 10px;
  color: var(--bcx-text);
  font-family: inherit;
  font-size: .92rem;
  min-height: 44px;
  padding: 0 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.bcx-field input::placeholder { color: rgba(240,238,248,.28); }
.bcx-field input:focus {
  border-color: var(--bcx-green);
  box-shadow: 0 0 0 3px rgba(1,255,149,.14);
}

.bcx-submit {
  background: var(--bcx-green);
  color: #070709;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 800;
  min-height: 46px;
  padding: 0 20px;
  cursor: pointer;
  margin-top: 4px;
  transition: filter .15s, transform .1s;
}
.bcx-submit:hover:not(:disabled) { filter: brightness(1.08); }
.bcx-submit:active:not(:disabled) { transform: scale(.98); }
.bcx-submit:disabled { opacity: .5; cursor: default; }

.bcx-error-msg:empty { display: none; }
.bcx-error-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--bcx-danger);
  background: rgba(255,68,102,.08);
  border: 1px solid rgba(255,68,102,.22);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.4;
}

/* ── Navbar User Menu ─────────────────────────────────────────────── */
.bcx-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bcx-user-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bcx-text);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 12px 5px 5px;
  border-radius: 100px;
  min-height: 38px;
  transition: background .15s, transform .15s;
}
.bcx-user-trigger:hover { background: var(--bcx-surface2); transform: scale(1.03); }
.bcx-user-trigger:active { transform: scale(.96); }

.bcx-auth-trigger {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.bcx-auth-trigger svg { width: 20px; height: 20px; fill: currentColor; transition: fill .15s; }
.bcx-auth-trigger:hover svg { fill: var(--bcx-green); }

/* Logged-in state (2026-08-31, restored after a brief icon-only pass):
   real avatar photo (or the initial-letter fallback avatarHTML() already
   renders when there's no photo) + green ring + a small status dot, same
   language the mobile drawer's identity row already used. */
.bcx-avatar-trigger { width: auto; height: auto; padding: 4px; border-radius: 50%; }
.bcx-avatar-wrap { position: relative; display: inline-flex; }
.bcx-status-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bcx-green); border: 2px solid #070709;
}

.bcx-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bcx-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bcx-text);
  overflow: hidden;
  flex-shrink: 0;
}
.bcx-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Logged-in state reads "session active" at a glance — a green ring on the
   avatar, on both the desktop trigger and the mobile drawer's identity row. */
.bcx-user-trigger .bcx-avatar,
.bcx-drawer-user-link .bcx-avatar {
  box-shadow: 0 0 0 2px var(--bcx-green);
  transition: box-shadow .15s, transform .15s;
}
.bcx-user-trigger:hover .bcx-avatar,
.bcx-drawer-user-link:hover .bcx-avatar {
  box-shadow: 0 0 0 2px var(--bcx-green), 0 0 10px rgba(1,255,149,.4);
  transform: scale(1.06);
}

.bcx-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bcx-surface);
  border: 1px solid var(--bcx-border);
  border-radius: 14px;
  min-width: 170px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  overflow: hidden;
  padding: 6px;
  display: none;
  transform-origin: top right;
}
.bcx-dropdown.open { display: block; animation: bcx-pop .15s cubic-bezier(.16,1,.3,1); }

.bcx-dropdown a,
.bcx-dropdown button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  border-radius: 9px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--bcx-text);
  cursor: pointer;
  text-decoration: none;
  min-height: 40px;
  transition: background .12s, transform .12s;
}
.bcx-dropdown a svg,
.bcx-dropdown button svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; opacity: .7; }
.bcx-dropdown a:hover,
.bcx-dropdown button:hover { background: var(--bcx-surface2); }
.bcx-dropdown a:active,
.bcx-dropdown button:active { transform: scale(.97); }

.bcx-dropdown .bcx-dashboard-link { margin-bottom: 2px; }
.bcx-dropdown .bcx-logout-btn { color: var(--bcx-danger); }
.bcx-dropdown .bcx-logout-btn svg { opacity: 1; }

/* Sign up reads as the site's primary CTA (same pill-button language as
   .bcx-submit) instead of a plain menu row, since it's the action we most
   want a logged-out visitor to take. */
.bcx-dropdown .bcx-auth-signup-link {
  background: var(--bcx-green);
  color: #070709;
  font-weight: 800;
  margin-top: 2px;
}
.bcx-dropdown .bcx-auth-signup-link svg { fill: #070709; opacity: 1; }
.bcx-dropdown .bcx-auth-signup-link:hover { background: var(--bcx-green); filter: brightness(1.08); }

/* ── Reaction Bar ──────────────────────────────────────────────────── */
.bcx-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem 0;
}

.bcx-reaction-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--bcx-surface);
  border: 1px solid var(--bcx-border);
  border-radius: 24px;
  padding: .35rem .75rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--bcx-text);
  transition: border-color .15s, background .15s, transform .1s;
  user-select: none;
}
.bcx-reaction-btn:hover {
  background: rgba(255,255,255,.06);
  transform: scale(1.05);
}
.bcx-reaction-btn.active {
  border-color: var(--bcx-green);
  color: var(--bcx-green);
}
.bcx-reaction-btn .bcx-rxn-count {
  font-size: .82rem;
  font-weight: 600;
  min-width: .8ch;
}

/* ── Comment Section ──────────────────────────────────────────────── */
.bcx-comments {
  margin-top: 2rem;
}

.bcx-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.bcx-comments-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bcx-text);
}

.bcx-sort-select {
  background: var(--bcx-surface);
  border: 1px solid var(--bcx-border);
  border-radius: 6px;
  color: var(--bcx-text);
  font-size: .82rem;
  padding: .3rem .55rem;
  cursor: pointer;
  outline: none;
}

/* Compose */
.bcx-compose {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.bcx-compose-avatar {
  flex-shrink: 0;
}

.bcx-compose-body { flex: 1; }

.bcx-comment-textarea {
  width: 100%;
  background: var(--bcx-surface);
  border: 1px solid var(--bcx-border);
  border-radius: 8px;
  color: var(--bcx-text);
  font-size: .9rem;
  padding: .65rem .85rem;
  resize: vertical;
  min-height: 70px;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  font-family: inherit;
}
.bcx-comment-textarea:focus { border-color: var(--bcx-green); }

.bcx-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .5rem;
}

.bcx-btn-submit-comment {
  background: var(--bcx-green);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  padding: .45rem 1rem;
  cursor: pointer;
  transition: opacity .15s;
}
.bcx-btn-submit-comment:hover { opacity: .85; }
.bcx-btn-submit-comment:disabled { opacity: .5; cursor: default; }

.bcx-btn-cancel {
  background: none;
  border: 1px solid var(--bcx-border);
  border-radius: 6px;
  color: var(--bcx-muted);
  font-size: .85rem;
  padding: .45rem .8rem;
  cursor: pointer;
}

/* Comment list */
.bcx-comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bcx-comment-item {
  display: flex;
  gap: .75rem;
}

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

.bcx-comment-meta {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}

.bcx-comment-username {
  font-size: .87rem;
  font-weight: 600;
  color: var(--bcx-text);
}

.bcx-comment-time {
  font-size: .78rem;
  color: var(--bcx-muted);
}

.bcx-comment-body {
  font-size: .88rem;
  color: var(--bcx-text);
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

.bcx-comment-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .45rem;
}

.bcx-action-btn {
  background: none;
  border: none;
  font-size: .8rem;
  color: var(--bcx-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .25rem;
  transition: color .15s;
}
.bcx-action-btn:hover { color: var(--bcx-text); }
.bcx-action-btn.liked { color: var(--bcx-green); }

/* Replies */
.bcx-replies {
  margin-top: .75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--bcx-border);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.bcx-toggle-replies {
  background: none;
  border: none;
  color: var(--bcx-green);
  font-size: .82rem;
  cursor: pointer;
  padding: .25rem 0;
  margin-top: .4rem;
}
.bcx-toggle-replies:hover { text-decoration: underline; }

/* Inline reply compose */
.bcx-reply-compose {
  margin-top: .6rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

/* Load more */
.bcx-load-more {
  text-align: center;
  margin-top: 1.25rem;
}

.bcx-btn-load-more {
  background: none;
  border: 1px solid var(--bcx-border);
  border-radius: 20px;
  color: var(--bcx-muted);
  font-size: .85rem;
  padding: .5rem 1.5rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.bcx-btn-load-more:hover { border-color: var(--bcx-text); color: var(--bcx-text); }

/* Empty state */
.bcx-empty {
  text-align: center;
  color: var(--bcx-muted);
  font-size: .9rem;
  padding: 2rem 0;
}

/* Spinner */
.bcx-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--bcx-border);
  border-top-color: var(--bcx-green);
  border-radius: 50%;
  display: inline-block;
  animation: bcx-spin .6s linear infinite;
}
@keyframes bcx-spin { to { transform: rotate(360deg); } }

