/* Public community — social feed */
.community-page {
  padding-bottom: 2rem;
}

.community-page-header {
  text-align: center;
  padding: 1.75rem 1rem 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}

.community-brand-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 400;
  color: var(--gold-light, #e8b84b);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.community-brand-sub {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: rgba(208, 185, 140, 0.78);
  margin: 0;
  font-style: italic;
  line-height: 1.45;
}

.community-feed-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 12px 2rem;
}

/* Single post card — IG / X inspired */
.social-post {
  margin-bottom: 1.25rem;
}

.social-post-inner {
  background: linear-gradient(165deg, rgba(22, 14, 6, 0.92) 0%, rgba(10, 6, 2, 0.96) 100%);
  border: 1px solid rgba(122, 85, 32, 0.38);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.social-post-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 10px;
}

.social-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(201, 146, 42, 0.25), rgba(80, 45, 10, 0.4));
  border: 1px solid rgba(122, 85, 32, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 17px;
  color: var(--gold-pale, #f0d5a0);
  flex-shrink: 0;
}

.social-post-head-text {
  min-width: 0;
  flex: 1;
}

.social-author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.social-author-name {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-pale, #e8d5a8);
}

.social-badge {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201, 146, 42, 0.2);
  border: 1px solid rgba(201, 146, 42, 0.35);
  color: var(--gold-bright, #f5d070);
}

.social-time {
  display: block;
  font-size: 12px;
  color: rgba(208, 185, 140, 0.45);
  margin-top: 2px;
}

.social-post-body {
  padding: 0 16px 12px;
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-pale, #e8d5a8);
}

.social-media-wrap {
  border-top: 1px solid rgba(122, 85, 32, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.social-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.social-media-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.social-video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #000;
}

.social-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(122, 85, 32, 0.22);
}

.social-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(8, 5, 2, 0.4);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(208, 185, 140, 0.85);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-tool:hover {
  border-color: rgba(122, 85, 32, 0.45);
  color: var(--gold-bright, #f5d070);
}

.social-like-btn.is-liked {
  color: #ff8a9a;
  border-color: rgba(255, 100, 120, 0.35);
  background: rgba(80, 20, 30, 0.25);
}

.social-tool:disabled {
  opacity: 0.6;
  cursor: wait;
}

.social-tool-guest {
  color: rgba(208, 185, 140, 0.75);
}

.social-comments {
  padding: 0 12px 14px;
  border-top: 1px solid rgba(122, 85, 32, 0.15);
  background: rgba(0, 0, 0, 0.12);
}

.social-comment {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-comment-reply {
  margin-left: 20px;
  padding-left: 10px;
  border-left: 2px solid rgba(122, 85, 32, 0.25);
}

.social-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 146, 42, 0.12);
  border: 1px solid rgba(122, 85, 32, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gold-light, #e8b84b);
  flex-shrink: 0;
}

.social-comment-bubble {
  flex: 1;
  min-width: 0;
}

.social-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 12px;
  color: rgba(208, 185, 140, 0.5);
  margin-bottom: 4px;
}

.social-comment-author {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold-pale, #f0d5a0);
}

.social-comment-text {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(232, 213, 168, 0.92);
}

.social-pending-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 200, 120, 0.8);
}

.social-comment-delete-form {
  display: inline;
  margin: 6px 0 0;
}

.social-comment-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin: 0;
  border: none;
  background: none;
  color: rgba(255, 200, 200, 0.55);
  cursor: pointer;
  vertical-align: middle;
  line-height: 0;
}

.social-comment-delete:hover {
  color: rgba(255, 160, 160, 0.9);
}

.social-comment-delete-icon {
  display: block;
  flex-shrink: 0;
}

.social-reply-toggle {
  margin-top: 6px;
  margin-right: 12px;
  padding: 0;
  border: none;
  background: none;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 146, 42, 0.85);
  cursor: pointer;
  display: inline-block;
  vertical-align: baseline;
}

.social-reply-toggle:hover {
  color: var(--gold-bright, #f5d070);
}

.social-reply-form {
  margin-top: 8px;
  padding-top: 8px;
}

.social-composer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(122, 85, 32, 0.25);
}

.social-composer-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(122, 85, 32, 0.4);
  background: rgba(6, 4, 2, 0.65);
  color: var(--text-pale, #e8d5a8);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  padding: 10px 12px;
  resize: vertical;
  min-height: 44px;
}

.social-composer-input:focus {
  outline: none;
  border-color: rgba(201, 146, 42, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 146, 42, 0.15);
}

.social-composer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.social-composer-submit {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #e8b84b, #c9922a);
  color: #1a0a00;
  font-weight: 600;
}

.social-composer-submit-sm {
  padding: 6px 14px;
  font-size: 9px;
}

.social-login-hint {
  margin: 12px 0 0;
  font-size: 14px;
  font-style: italic;
  color: rgba(208, 185, 140, 0.55);
}

.social-login-hint a {
  color: var(--gold-light, #e8b84b);
}

.community-feed-empty {
  text-align: center;
  padding: 3rem 1rem;
  font-style: italic;
  color: rgba(208, 185, 140, 0.55);
}

.community-pagination {
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 0 12px;
}

.community-pagination nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.community-pagination a,
.community-pagination span {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-pale, #e8d5a8);
  text-decoration: none;
  border: 1px solid rgba(122, 85, 32, 0.35);
}

.community-pagination a:hover {
  border-color: rgba(201, 146, 42, 0.55);
  color: var(--gold-bright, #f5d070);
}

.community-pagination span[aria-current="page"] {
  background: rgba(201, 146, 42, 0.12);
  border-color: rgba(201, 146, 42, 0.45);
}

/* Lightbox */
.social-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 2, 1, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.social-lightbox[hidden] {
  display: none !important;
}

.social-lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
}

.social-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 146, 42, 0.4);
  border-radius: 8px;
  background: rgba(10, 6, 2, 0.8);
  color: var(--gold-light, #e8b84b);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .community-feed-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ─── Progressive comment disclosure ─────────────────────────────── */
.social-comment-hidden {
  display: none;
}

.social-comment-hidden.social-comment-revealed {
  display: block;
  animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* "View X more comments" button */
.social-view-more-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 146, 42, 0.75);
  cursor: pointer;
  transition: color 0.15s;
}

.social-view-more-btn:hover {
  color: var(--gold-bright, #f5d070);
}

/* Replies collapse wrapper */
.social-replies-wrap {
  margin-left: 20px;
  padding-left: 10px;
  border-left: 2px solid rgba(122, 85, 32, 0.22);
  margin-top: 4px;
}

.social-replies-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: none;
  background: none;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 146, 42, 0.7);
  cursor: pointer;
  transition: color 0.15s;
}

.social-replies-toggle:hover {
  color: var(--gold-bright, #f5d070);
}

.social-replies-toggle svg {
  transition: transform 0.2s;
}

.social-replies-toggle[aria-expanded="true"] svg {
  transform: rotate(270deg) !important;
}

.social-replies-list {
  padding-top: 4px;
}

.social-replies-list[hidden] {
  display: none;
}
