/*
 * BWS 2.0 — community.html overrides & new components
 * Loads after streets.css; wins via cascade.
 * Updated: polish-20260618
 */

/* Community visual polish — image-led cards, quieter section rhythm, and responsive surfaces. */
.streets-body { background: #080402; }
.streets-hero { min-height: clamp(460px, 62vh, 680px); border-bottom: 1px solid rgba(232, 170, 67, .24); }
.streets-hero-bg { filter: saturate(.9) contrast(1.06); transform: scale(1.015); }
.streets-hero-overlay { background: linear-gradient(90deg, rgba(7,3,1,.96) 0%, rgba(7,3,1,.72) 48%, rgba(7,3,1,.18) 100%), linear-gradient(0deg, #080402 0%, transparent 35%); }
.streets-hero-content { max-width: 780px; }
.streets-hero-content > p:not(.streets-kicker) { max-width: 68ch; color: rgba(255,245,230,.78); }
.streets-section { margin-block: clamp(32px, 5vw, 72px); }
.section-heading { align-items: end; padding-bottom: 14px; border-bottom: 1px solid rgba(200,137,42,.16); }
.section-heading h2 { letter-spacing: -.02em; }

.streets-card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.group-card { overflow: hidden; border-color: rgba(200,137,42,.2); background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(200,137,42,.025)); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.group-card:hover { transform: translateY(-4px); border-color: rgba(224,166,63,.48); box-shadow: 0 24px 60px rgba(0,0,0,.36); }
.group-card .streets-card-media { min-height: 190px; background-position: center; background-size: cover; }
.group-card .streets-card-body { padding: 20px; }
.group-card h3 { font-size: clamp(20px, 2vw, 26px); }
.community-image-surface { background-color: #17100b; }

.meetup-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; overflow: visible; }
.meetup-card { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(200,137,42,.2); border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: 0 16px 42px rgba(0,0,0,.22); }
.meetup-card-media { position: relative; min-height: 160px; background-position: center; background-size: cover; }
.meetup-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,4,2,.88)); }
.meetup-format-pill { position: absolute; z-index: 1; top: 12px; right: 12px; padding: 6px 10px; border: 1px solid rgba(255,232,188,.34); border-radius: 999px; background: rgba(8,4,2,.78); color: #ffe6ae; font: 700 10px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.meetup-card-content { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.meetup-card-content h3 { margin: 5px 0 8px; }
.meetup-card-content p { color: rgba(246,234,215,.64); }
.meetup-card-content .thread-actions { margin-top: auto; padding-top: 16px; }

.forum-board { gap: 18px; }
.forum-card { min-height: 270px; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 48px rgba(0,0,0,.24); }
.forum-card::before { filter: saturate(.9); transition: transform .45s ease; }
.forum-card:hover::before { transform: scale(1.035); }
.inf-post-card { overflow: hidden; border-radius: 14px; background: rgba(255,255,255,.028); }
.inf-post-media { aspect-ratio: 16 / 9; overflow: hidden; }
.inf-post-media img { width: 100%; height: 100%; object-fit: cover; }

.community-ad-image { position: relative; isolation: isolate; overflow: hidden; }
.community-ad-image::before { content: ''; position: absolute; z-index: -2; inset: 0; background: var(--ad-image) center / cover no-repeat; opacity: .48; }
.community-ad-image::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,4,2,.94), rgba(8,4,2,.45)); }

@media (max-width: 720px) {
  .streets-hero { min-height: 520px; }
  .streets-hero-overlay { background: linear-gradient(0deg, #080402 0%, rgba(7,3,1,.72) 55%, rgba(7,3,1,.3) 100%); }
  .community-stats-bar { justify-content: space-around; padding-inline: 8px; }
  .community-stat { min-width: 31%; padding-inline: 8px; }
  .community-stat-divider { display: none; }
  .meetup-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .streets-hero h1, .streets-quick-nav > * { animation: none; opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   HEADING DROP ANIMATION
══════════════════════════════════════════════════════════════ */

@keyframes communityDropIn {
  0%   { opacity: 0; transform: translateY(-80px) scaleY(.92); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

.streets-hero h1 {
  animation: communityDropIn 4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: .1s;
}

/* ══════════════════════════════════════════════════════════════
   QUICK-NAV BUTTON STAGGER
══════════════════════════════════════════════════════════════ */

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

.streets-quick-nav > * {
  opacity: 0;
  animation: quickNavAppear var(--qn-dur, .5s) ease both;
  animation-delay: var(--qn-del, 0s);
}

.streets-quick-nav > *:nth-child(1)  { --qn-dur: 2.0s; --qn-del: 0.0s; }
.streets-quick-nav > *:nth-child(2)  { --qn-dur: 1.8s; --qn-del: 0.2s; }
.streets-quick-nav > *:nth-child(3)  { --qn-dur: 1.6s; --qn-del: 0.4s; }
.streets-quick-nav > *:nth-child(4)  { --qn-dur: 1.4s; --qn-del: 0.6s; }
.streets-quick-nav > *:nth-child(5)  { --qn-dur: 1.2s; --qn-del: 0.8s; }
.streets-quick-nav > *:nth-child(6)  { --qn-dur: 1.0s; --qn-del: 1.0s; }
.streets-quick-nav > *:nth-child(7)  { --qn-dur: 0.8s; --qn-del: 1.2s; }
.streets-quick-nav > *:nth-child(8)  { --qn-dur: 0.6s; --qn-del: 1.4s; }
.streets-quick-nav > *:nth-child(9)  { --qn-dur: 0.4s; --qn-del: 1.6s; }
.streets-quick-nav > *:nth-child(n+10) { --qn-dur: 0.4s; --qn-del: 1.8s; }

/* ══════════════════════════════════════════════════════════════
   COMMUNITY STATS BAR
   Horizontal strip below the hero showing live community metrics.
══════════════════════════════════════════════════════════════ */

.community-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 14px 24px;
  background: rgba(200,137,42,.06);
  border-bottom: 1px solid rgba(200,137,42,.18);
}

.community-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 28px;
  text-align: center;
}

.community-stat--live {
  position: relative;
}

.community-stat-value {
  font: 800 22px var(--font-ui, 'Orbitron', sans-serif);
  color: var(--amber, #c8892a);
  line-height: 1;
  letter-spacing: .02em;
}

.community-stat-label {
  font: 500 10px var(--font-ui, 'Rajdhani', sans-serif);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(246,234,215,.48);
}

.community-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(200,137,42,.2);
  flex-shrink: 0;
}

@keyframes statPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.75); }
}

.community-stat-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5ddb8a;
  margin-right: 6px;
  vertical-align: middle;
  animation: statPulse 2s ease-in-out infinite;
}

.community-stat--live .community-stat-value {
  display: flex;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════════
   THREAD RAIL — FIXED TO BOTTOM
══════════════════════════════════════════════════════════════ */

.thread-rail {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  z-index: 90;
  justify-content: space-between;
  border-top: 1px solid rgba(200,137,42,.24);
  border-bottom: none;
  background: rgba(6,2,0,.96);
  backdrop-filter: blur(16px);
}

.streets-shell {
  padding-bottom: 72px;
}

.thread-rail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.thread-rail-view-btn {
  flex-shrink: 0;
  background: transparent;
  color: var(--amber, #c8892a);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 8px 16px;
  border: 1px solid rgba(200,137,42,.4);
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.thread-rail-view-btn:hover,
.thread-rail-view-btn.is-active {
  background: rgba(200,137,42,.15);
  color: #fde48a;
}

/* Mobile: 2-row layout so select dropdowns open above the action buttons */
@media (max-width: 620px) {
  .thread-rail {
    flex-wrap: wrap;
    padding: 8px 12px 10px;
    gap: 6px;
  }
  .thread-rail-drills {
    flex: 1 1 100%;
    width: 100%;
    overflow-x: auto;
  }
  .thread-rail-actions {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .thread-rail-view-btn,
  #thread-rail-new-btn {
    flex: 1;
  }
  .streets-shell {
    padding-bottom: 120px;
  }
}

/* ══════════════════════════════════════════════════════════════
   THREAD DRAWER
══════════════════════════════════════════════════════════════ */

:root { --drawer-w: min(480px, 90vw); }

.thread-drawer {
  position: fixed;
  inset: 0;
  bottom: 52px;
  z-index: 200;
  pointer-events: none;
}

@media (max-width: 620px) {
  .thread-drawer {
    bottom: 110px;
  }
}

.thread-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .35s;
}

.thread-drawer-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--drawer-w);
  background: #0c0500;
  border-right: 1px solid rgba(200,137,42,.28);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  z-index: 1;
}

.thread-drawer.is-open { pointer-events: all; }
.thread-drawer.is-open .thread-drawer-overlay { opacity: 1; }
.thread-drawer.is-open .thread-drawer-panel { transform: translateX(0); }

body.thread-drawer-open { overflow-x: hidden; }

.thread-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(200,137,42,.18);
  flex-shrink: 0;
  background: rgba(200,137,42,.06);
}

.thread-drawer-title {
  font: 700 13px var(--font-ui);
  color: var(--amber, #c8892a);
  letter-spacing: .08em;
  text-transform: uppercase;
  flex: 1; min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-drawer-close {
  background: transparent;
  border: 1px solid rgba(200,137,42,.28);
  border-radius: 50%;
  width: 28px; height: 28px;
  color: rgba(246,234,215,.6);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.thread-drawer-close:hover { background: rgba(200,137,42,.12); color: var(--amber); }

.thread-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,137,42,.3) transparent;
}

@keyframes drawerSlideIn {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.thread-drawer-list { display: grid; gap: 8px; animation: drawerSlideIn .3s ease both; }

.thread-drawer-item {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(200,137,42,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: inherit;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.thread-drawer-item:hover {
  background: rgba(200,137,42,.06);
  border-color: rgba(200,137,42,.36);
}
.thread-drawer-item-title {
  font: 700 13px var(--font-ui);
  color: #f6ead7;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thread-drawer-item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(246,234,215,.42);
  font-family: var(--font-ui);
}
.thread-drawer-item-cat { color: var(--amber, #c8892a); font-weight: 700; }
.thread-drawer-empty {
  color: rgba(246,234,215,.35);
  font-size: 13px;
  text-align: center;
  padding: 32px 0;
}

/* ══════════════════════════════════════════════════════════════
   NEW THREAD MODAL — full-screen overlay
══════════════════════════════════════════════════════════════ */

.new-thread-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  padding: 24px 16px 80px; /* bottom clears thread rail */
  overflow-y: auto;
}

.new-thread-panel[hidden] { display: none; }

.new-thread-panel-inner {
  width: 100%;
  max-width: 680px;
  background: #0d0500;
  border: 1px solid rgba(200,137,42,.32);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}

/* Pad everything below the header row */
.new-thread-panel-inner > *:not(.new-thread-panel-head) {
  padding-left: 20px;
  padding-right: 20px;
}
.new-thread-panel-inner > form:last-of-type {
  padding-bottom: 24px;
}
.new-thread-panel-inner > #composer-gate-row {
  padding-top: 14px;
  padding-bottom: 4px;
}
.new-thread-panel-inner > #composer-identity {
  padding-top: 14px;
}

.new-thread-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(200,137,42,.18);
  background: rgba(200,137,42,.07);
}
.new-thread-panel-head strong {
  font: 700 14px var(--font-ui);
  color: var(--amber, #c8892a);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.new-thread-close {
  background: transparent;
  border: 1px solid rgba(200,137,42,.3);
  border-radius: 50%;
  width: 30px; height: 30px;
  color: rgba(246,234,215,.6);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.new-thread-close:hover { background: rgba(200,137,42,.14); color: var(--amber); }

/* Prevent body scroll while modal is open */
body.modal-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════
   FORUM CREATE MODAL
══════════════════════════════════════════════════════════════ */

.forum-create-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  padding: 24px 16px 80px;
  overflow-y: auto;
}
.forum-create-panel[hidden] { display: none; }

.forum-create-panel-inner {
  width: 100%;
  max-width: 600px;
  background: #0d0500;
  border: 1px solid rgba(200,137,42,.32);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}

.forum-create-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(200,137,42,.18);
  background: rgba(200,137,42,.07);
}
.forum-create-panel-head strong {
  font: 700 14px var(--font-ui);
  color: var(--amber, #c8892a);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.forum-create-close {
  background: transparent;
  border: 1px solid rgba(200,137,42,.3);
  border-radius: 50%;
  width: 30px; height: 30px;
  color: rgba(246,234,215,.6);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.forum-create-close:hover { background: rgba(200,137,42,.14); color: var(--amber); }

.forum-create-panel form,
.forum-create-panel-inner > form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ══════════════════════════════════════════════════════════════
   HOT TOPICS — TWO-COLUMN LAYOUT WITH SIDEBAR
══════════════════════════════════════════════════════════════ */

.community-feed-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.community-sidebar-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(200,137,42,.18);
  border-radius: 10px;
  padding: 16px;
}

.community-sidebar-card--coming-soon {
  border-style: dashed;
  border-color: rgba(200,137,42,.28);
  opacity: .88;
}

.sidebar-card-title {
  font: 700 13px var(--font-ui, 'Rajdhani', sans-serif);
  color: var(--amber, #c8892a);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 10px;
}

.sidebar-card-sub {
  display: block;
  font: 600 11px var(--font-ui);
  color: rgba(246,234,215,.55);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sidebar-card-desc {
  font-size: 12px;
  color: rgba(246,234,215,.6);
  line-height: 1.5;
  margin: 0 0 10px;
}

/* ── Trending list ───────────────────────────────────────────── */
.trending-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trending-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.trending-list a {
  font: 600 12px var(--font-ui);
  color: #f6ead7;
  text-decoration: none;
  transition: color .15s;
  flex: 1;
}
.trending-list a:hover { color: var(--amber, #c8892a); }
.trending-list span {
  font-size: 11px;
  color: rgba(246,234,215,.38);
  white-space: nowrap;
}

/* ── Coming soon sidebar cards ──────────────────────────────── */
.cs-pill {
  display: inline-block;
  font: 700 9px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber, #c8892a);
  background: rgba(200,137,42,.14);
  border: 1px solid rgba(200,137,42,.35);
  border-radius: 4px;
  padding: 3px 7px;
  margin-bottom: 8px;
}

.cs-notify-btn {
  width: 100%;
  padding: 8px;
  background: rgba(200,137,42,.08);
  border: 1px dashed rgba(200,137,42,.3);
  border-radius: 6px;
  color: rgba(246,234,215,.4);
  font: 600 11px var(--font-ui);
  cursor: not-allowed;
  text-align: center;
}

/* ── Leaderboard preview list ─────────────────────────────────  */
.cs-preview-list {
  list-style: none;
  margin: 8px 0 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-preview-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(246,234,215,.65);
}
.cs-rank {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(200,137,42,.18);
  border: 1px solid rgba(200,137,42,.3);
  display: flex; align-items: center; justify-content: center;
  font: 800 9px var(--font-ui);
  color: var(--amber, #c8892a);
  flex-shrink: 0;
  font-size: 10px;
}
.cs-score {
  margin-left: auto;
  font: 700 11px var(--font-ui);
  color: rgba(200,137,42,.65);
}

/* ── Guardrail list ──────────────────────────────────────────── */
.guardrail-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.guardrail-list li {
  font-size: 12px;
  color: rgba(246,234,215,.6);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.guardrail-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--amber, #c8892a);
}

/* ══════════════════════════════════════════════════════════════
   HOT TOPICS GRID — UNIFORM CARD SIZE
══════════════════════════════════════════════════════════════ */

.hot-topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(240px, 280px) !important;
  gap: 14px !important;
}

.hot-topic-grid .thread-card:first-child {
  grid-row: auto !important;
  grid-column: auto !important;
}

/* ══════════════════════════════════════════════════════════════
   SPONSORED / BOOSTED GROUPS GRID
══════════════════════════════════════════════════════════════ */

.streets-ad-slot--boosted {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 20%, rgba(8,3,1,.88) 80%),
    var(--boost-bg, linear-gradient(135deg, rgba(220,148,43,.25), rgba(0,0,0,.9)));
  background-size: cover;
  background-position: center;
}
.streets-ad-slot--boosted::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(8,3,1,.92) 100%),
    var(--boost-img);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.streets-ad-slot--boosted > * { position: relative; z-index: 1; }
.streets-ad-slot--boosted .boost-badge {
  display: inline-block;
  font: 800 9px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffd680;
  background: rgba(200,137,42,.28);
  border: 1px solid rgba(200,137,42,.45);
  border-radius: 4px;
  padding: 3px 7px;
  margin-bottom: 6px;
}
.streets-ad-slot--boosted strong { font-size: 18px; line-height: 1.1; margin-top: 6px; }
.streets-ad-slot--boosted p { color: rgba(246,234,215,.72); font-size: 13px; margin: 5px 0 0; line-height: 1.4; }
.streets-ad-slot--boosted.is-top-boost strong { font-size: 22px; }

/* ══════════════════════════════════════════════════════════════
   MEETUP CARD — JOIN / APPLY BUTTON
══════════════════════════════════════════════════════════════ */

.meetup-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 999px;
  font: 700 12px var(--font-ui);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s, background .15s;
  border: 1px solid var(--amber, #c8892a);
  background: var(--amber, #c8892a);
  color: #0a0500;
}
.meetup-join-btn:hover:not(:disabled) { opacity: .85; }
.meetup-join-btn:disabled { opacity: .55; cursor: default; }
.meetup-join-btn--apply {
  background: rgba(200,137,42,.14);
  border-color: rgba(200,137,42,.55);
  color: var(--amber, #c8892a);
}
.meetup-join-btn--member {
  background: rgba(93,219,138,.12);
  border-color: #5ddb8a;
  color: #5ddb8a;
}
.meetup-join-btn--pending {
  background: rgba(200,137,42,.1);
  border-color: rgba(200,137,42,.4);
  color: rgba(200,137,42,.8);
}

/* ══════════════════════════════════════════════════════════════
   COMING SOON SECTION
══════════════════════════════════════════════════════════════ */

.coming-soon-section .section-heading { margin-bottom: 24px; }

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.cs-card {
  position: relative;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(200,137,42,.28);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}

.cs-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(200,137,42,.05), transparent 70%);
  pointer-events: none;
}

.cs-card:hover {
  border-color: rgba(200,137,42,.48);
  background: rgba(200,137,42,.04);
}

.cs-card-icon {
  font-size: 32px;
  line-height: 1;
  filter: grayscale(40%);
}

.cs-card-body {
  flex: 1;
}

.cs-card-body h3 {
  font: 700 15px var(--font-ui, 'Rajdhani', sans-serif);
  color: #f6ead7;
  margin: 0 0 8px;
  letter-spacing: .02em;
}

.cs-card-body p {
  font-size: 13px;
  color: rgba(246,234,215,.58);
  line-height: 1.55;
  margin: 0;
}

.cs-feature-list {
  list-style: none;
  margin: 10px 0 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cs-feature-list li {
  font-size: 12px;
  color: rgba(246,234,215,.48);
  padding-left: 14px;
  position: relative;
  line-height: 1.35;
}
.cs-feature-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--amber, #c8892a);
}

.cs-badge {
  display: inline-block;
  align-self: flex-start;
  font: 700 9px var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(200,137,42,.7);
  background: rgba(200,137,42,.1);
  border: 1px dashed rgba(200,137,42,.3);
  border-radius: 4px;
  padding: 4px 8px;
}

/* ══════════════════════════════════════════════════════════════
   COMMUNITY SETTINGS CTA
══════════════════════════════════════════════════════════════ */

.community-settings-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 32px;
  margin: 0 0 80px; /* bottom offset above thread rail */
  border-top: 1px solid rgba(200,137,42,.14);
  background: rgba(200,137,42,.03);
  font-size: 13px;
  color: rgba(246,234,215,.45);
}

.community-settings-link {
  font: 600 12px var(--font-ui);
  color: var(--amber, #c8892a);
  text-decoration: none;
  letter-spacing: .04em;
  transition: opacity .15s;
}
.community-settings-link:hover { opacity: .75; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .community-feed-layout {
    grid-template-columns: 1fr;
  }
  .community-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  :root { --drawer-w: 92vw; }

  .community-stats-bar {
    gap: 0;
    padding: 12px 16px;
  }
  .community-stat { padding: 4px 14px; }
  .community-stat-value { font-size: 18px; }
  .community-stat-divider { height: 24px; }

  .hot-topic-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(200px, auto) !important;
  }

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .new-thread-panel,
  .forum-create-panel {
    padding: 16px 12px 72px;
  }
}

/* ══════════════════════════════════════════════════════════════
   COLLAPSIBLE SECTION PANELS
   Social Inbox, Activity Feed — collapse to header strip.
══════════════════════════════════════════════════════════════ */

.comm-collapsible { margin-block: clamp(6px, 1.2vw, 12px); }

.comm-details {
  border: 1px solid rgba(200,137,42,.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}

.comm-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.comm-summary::-webkit-details-marker { display: none; }
.comm-summary::marker { display: none; }
.comm-summary:hover { background: rgba(200,137,42,.06); }

.comm-summary-left {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.comm-summary-left h2 {
  font-size: .95rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #f0e5cc;
}
.comm-summary-icon {
  width: 16px;
  height: 16px;
  color: rgba(200,137,42,.75);
  flex-shrink: 0;
}

.comm-summary-right {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.comm-chevron {
  width: 16px;
  height: 16px;
  color: rgba(200,137,42,.6);
  transition: transform .22s ease;
}
.comm-details[open] .comm-chevron { transform: rotate(180deg); }

.comm-inbox-preview {
  font-size: .72rem;
  font-weight: 700;
  color: #e04040;
  background: rgba(224,64,64,.14);
  border: 1px solid rgba(224,64,64,.3);
  border-radius: 20px;
  padding: .1rem .55rem;
}
.comm-inbox-preview:empty { display: none; }

.comm-details-body {
  border-top: 1px solid rgba(200,137,42,.12);
  padding: 1.2rem 1.25rem 1.4rem;
}

/* ══════════════════════════════════════════════════════════════
   POLITICAL FORUM SECTION — Tupac Hero Background
══════════════════════════════════════════════════════════════ */

.streets-political-section {
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  overflow: hidden;
  margin-block: clamp(36px, 5vw, 72px);
}

.political-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/images/tupac-hero-header.png') center 18% / cover no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.streets-political-section:hover .political-hero-bg { transform: scale(1.06); }

.political-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,1,1,.78) 0%, rgba(4,1,1,.5) 38%, rgba(4,1,1,.88) 100%),
    linear-gradient(90deg, rgba(4,1,1,.95) 0%, rgba(4,1,1,.32) 65%, rgba(4,1,1,.75) 100%);
}

.political-inner {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 3rem);
}

.political-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(200,137,42,.25);
}
.political-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(200,137,42,.8);
  margin-bottom: .45rem;
}
.political-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: #fff8ee;
  margin: 0 0 .5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.political-subtitle {
  font-size: .9rem;
  color: rgba(246,234,215,.65);
  margin: 0;
  max-width: 52ch;
  line-height: 1.55;
}
.political-cta-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.3rem;
  border: 1.5px solid rgba(200,137,42,.55);
  border-radius: 7px;
  color: #c8922a;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(200,137,42,.08);
  transition: border-color .15s, background .15s, color .15s;
  flex-shrink: 0;
}
.political-cta-link:hover { border-color: #c8922a; background: rgba(200,137,42,.18); color: #e6ab40; }

/* Thread grid */
.pol-thread-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pol-thread-card {
  position: relative;
  border: 1px solid rgba(200,137,42,.22);
  border-radius: 12px;
  background: rgba(4,1,1,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.pol-thread-card:hover {
  border-color: rgba(200,137,42,.65);
  background: rgba(200,137,42,.1);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.pol-thread-card--alert  { border-color: rgba(220,60,60,.3); }
.pol-thread-card--alert:hover { border-color: rgba(220,60,60,.7); background: rgba(220,60,60,.08); }
.pol-thread-card--gold   { border-color: rgba(200,137,42,.4); }
.pol-thread-card--gold:hover { background: rgba(200,137,42,.16); }

.pol-thread-num {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(200,137,42,.6);
}
.pol-thread-card--alert .pol-thread-num { color: rgba(220,80,80,.75); }

.pol-thread-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff5e0;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}

.pol-thread-desc {
  font-size: .78rem;
  color: rgba(246,234,215,.58);
  line-height: 1.5;
  flex: 1;
}

.pol-thread-meta {
  display: flex;
  gap: .55rem;
  font-size: .72rem;
  color: rgba(246,234,215,.42);
  margin-top: .2rem;
}

.pol-thread-cta {
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
  font-weight: 700;
  color: #c8922a;
  margin-top: .35rem;
  transition: color .15s;
}
.pol-thread-card:hover .pol-thread-cta { color: #e6ab40; }
.pol-thread-card--alert .pol-thread-cta { color: rgba(220,80,80,.9); }
.pol-thread-card--alert:hover .pol-thread-cta { color: #e05050; }

/* Political footer */
.political-footer {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(200,137,42,.2);
}
.political-see-all {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(200,137,42,.8);
  text-decoration: none;
  transition: color .15s;
}
.political-see-all:hover { color: #c8922a; }
.political-see-all--fund { color: rgba(220,80,80,.8); }
.political-see-all--fund:hover { color: #e04040; }

/* Responsive: political grid */
@media (max-width: 960px) {
  .pol-thread-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pol-thread-grid { grid-template-columns: 1fr; }
  .political-header { flex-direction: column; align-items: flex-start; }
  .political-cta-link { align-self: flex-start; }
  .comm-details-body { padding: .9rem 1rem 1.1rem; }
}
