/* ============================================================
   STREETMEET — MAIN STYLESHEET
   Design tokens, typography, layout, components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--black); font-family: var(--font-body); line-height: 1.5; min-height: 100vh; padding-top: var(--nav-h); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ── DESIGN TOKENS ── */
:root {
  /* Colors */
  --bg:           #E6F5F4;
  --black:        #000000;
  --white:        #ffffff;
  --red:          #c00000;
  --red-dark:     #990000;
  --teal:         #4a9b96;
  --teal-dark:    #3a7a76;
  --gray-100:     #f0f7f6;
  --gray-200:     #d8edeb;
  --gray-400:     #a0bfbd;
  --gray-600:     #5a7a78;
  --gray-800:     #2a3a39;

  /* Typography */
  --font-head:    'Bebas Neue', sans-serif;
  --font-body:    'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Font sizes — headers */
  --h1: 4rem;
  --h2: 2.8rem;
  --h3: 2.2rem;
  --h4: 1.2rem;

  /* Font sizes — paragraphs */
  --p1: 1.4rem;
  --p2: 1rem;
  --p3: 0.9rem;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  /* Layout */
  --max-w: 1100px;
  --nav-h: 64px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Transitions */
  --transition: 0.15s ease;
}

/* ── TYPOGRAPHY ── */
h1, .h1 {
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: 0em;
  color: var(--black);
}
h2, .h2 {
  font-family: var(--font-head);
  font-size: var(--h2);
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: 0em;
  color: var(--black);
}
h3, .h3 {
  font-family: var(--font-head);
  font-size: var(--h3);
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: 0em;
  color: var(--black);
}
h4, .h4 {
  font-family: var(--font-head);
  font-size: var(--h4);
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: 0em;
  color: var(--black);
}
.p1 { font-size: var(--p1); font-weight: 400; line-height: 1.5em; letter-spacing: 0em; color: var(--black); }
.p2 { font-size: var(--p2); font-weight: 400; line-height: 1.5em; letter-spacing: 0em; color: var(--black); }
.p3 { font-size: var(--p3); font-weight: 400; line-height: 1.5em; letter-spacing: 0em; color: var(--black); }

/* ── BUTTONS ── */
.btn {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm {
  font-size: 1.2rem;
  padding: 8px 18px;
}
.btn-md {
  font-size: 1.6rem;
  padding: 11px 24px;
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--black); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--gray-800); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-wide { width: 100%; }
.btn-icon { padding: 10px; font-size: 1rem; }

/* ── FORM ELEMENTS ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--black);
}
.field-input, .field-textarea, .field-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--gray-400);
  padding: 10px 14px;
  background: var(--white);
  color: var(--black);
  outline: none;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  appearance: none;
}
.field-input:focus, .field-textarea:focus, .field-select:focus { border-color: var(--black); }
.field-input::placeholder, .field-textarea::placeholder { color: var(--gray-400); }
.field-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-hint { font-size: var(--p3); color: var(--gray-600); }
.field-error { font-size: var(--p3); color: var(--red); }
.char-count { font-size: var(--p3); color: var(--gray-600); text-align: right; }
.char-count.over { color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .field.full { grid-column: 1 / -1; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--black);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.8rem; letter-spacing: 0.05em;
  color: var(--white); cursor: pointer;
  flex-shrink: 0; text-decoration: none;
}
.nav-logo sup { font-size: 0.65rem; vertical-align: super; line-height: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-head);
  font-size: 1.1rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--white); border-bottom-color: var(--red); }
.nav-user { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1rem; color: var(--white);
  cursor: pointer; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--black); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--black); min-width: 180px;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--teal);
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
/* Hover kept as progressive enhancement on desktop */
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
}
.nav-dropdown-item {
  display: block; font-family: var(--font-head);
  font-size: 1rem; letter-spacing: 0.04em;
  padding: 10px 16px; color: rgba(255,255,255,0.7);
  cursor: pointer; transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: var(--black); z-index: 2000;
  flex-direction: column; padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.05em;
  color: var(--white); cursor: pointer; align-self: flex-end; margin-bottom: 32px;
  background: none; border: none;
}
.mobile-nav-item {
  font-family: var(--font-head); font-size: 2.2rem; letter-spacing: 0.04em;
  color: var(--white); padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}
.mobile-nav-sub {
  font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6); padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}
.mobile-nav-sub:hover { color: var(--white); }

/* ── LAYOUT HELPERS ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-2xl) 24px; max-width: var(--max-w); margin: 0 auto; }
.section-full { padding: var(--space-2xl) 24px; }
.section-dark { background: var(--black); color: var(--white); padding: var(--space-2xl) 24px; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.divider { height: 1px; background: var(--gray-200); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: var(--space-lg);
}
.card-dark { background: var(--black); border-color: rgba(255,255,255,0.1); color: var(--white); }

/* ── TAGS / BADGES ── */
.tag {
  font-family: var(--font-head);
  font-size: 0.85rem; letter-spacing: 0.06em;
  padding: 3px 10px;
  display: inline-block;
}
.tag-black { background: var(--black); color: var(--white); }
.tag-red { background: var(--red); color: var(--white); }
.tag-teal { background: var(--teal); color: var(--white); }
.tag-outline { border: 1.5px solid var(--gray-400); color: var(--gray-600); }
.role-chip {
  font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.05em;
  padding: 8px 16px; border: 2px solid var(--gray-400);
  background: var(--white); color: var(--gray-600);
  cursor: pointer; transition: all var(--transition); text-align: center;
  border-radius: var(--radius-sm);
}
.role-chip.selected { background: var(--black); color: var(--white); border-color: var(--black); }
.role-chip:hover:not(.selected) { border-color: var(--black); color: var(--black); }

/* ── PHOTO SLOTS ── */
.photo-slot {
  aspect-ratio: 1/1; background: var(--gray-100);
  border: 2px dashed var(--gray-400);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; transition: border-color var(--transition), background var(--transition);
  position: relative; overflow: hidden;
}
.photo-slot:hover { border-color: var(--black); }
.photo-slot .slot-icon { width: 28px; height: 28px; fill: var(--gray-400); }
.photo-slot .slot-label { font-size: var(--p3); color: var(--gray-400); margin-top: 6px; font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.05em; }
.photo-slot.filled { border-style: solid; border-color: var(--gray-200); position: relative; }
.photo-slot.filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Delete button — appears on hover over a filled slot */
.photo-delete-btn {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.65); color: var(--white);
  border: none; border-radius: 50%;
  font-size: 0.7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
}
.photo-slot.filled:hover .photo-delete-btn { opacity: 1; }

/* ── HERO ── */
.hero {
  background: var(--black); min-height: 580px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
/* ── QW4: YouTube video hero background ── */
.hero-video-wrap {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-video {
  position: absolute;
  /* Oversized to cover the hero — same technique as object-fit:cover for iframes */
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;   /* 16:9 ratio — ensures full width coverage */
  height: 56.25vw;   /* 16:9 ratio — ensures full height coverage */
  min-width: 100%;
  min-height: 100%;
  border: none;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55); /* Dark overlay for text legibility */
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.3;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 60px 24px; max-width: 800px;
}
.hero-logo { font-family: var(--font-head); font-size: clamp(3.5rem, 9vw, 7.5rem); color: var(--white); letter-spacing: 0.05em; line-height: 1; }
.hero-logo sup { font-size: 1.5rem; vertical-align: super; line-height: 0; }
.hero-tagline {
  background: var(--white); color: var(--black);
  font-family: var(--font-head); font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.25em; padding: 5px 22px;
  display: inline-block; margin: 12px 0 28px;
}
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; }

/* ── TICKER ── */
.ticker { background: var(--black); padding: 10px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,255,255,0.08); }
.ticker-track { display: inline-block; animation: ticker 20s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); padding: 0 40px; }
.ticker-sep { color: var(--red); padding: 0 6px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── EVENT CARDS ── */
.event-card { background: var(--white); border: 1.5px solid var(--gray-200); overflow: hidden; transition: transform var(--transition); }
.event-card:hover { transform: translateY(-3px); }
.event-card-img { width: 100%; aspect-ratio: 16/9; background: var(--black); overflow: hidden; position: relative; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-img-placeholder { width: 100%; height: 100%; background: var(--gray-800); display: flex; align-items: center; justify-content: center; }
.event-card-badge { position: absolute; top: 10px; left: 10px; }
.event-card-body { padding: 16px; }
.event-card-community { font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.1em; color: var(--red); margin-bottom: 4px; }
.event-card-title { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px; }
.event-card-desc { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-meta-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: var(--p3); }
.event-meta-icon { width: 14px; height: 14px; fill: var(--gray-600); flex-shrink: 0; margin-top: 2px; }
.event-meta-link { color: var(--black); text-decoration: underline; cursor: pointer; font-size: var(--p3); background: none; border: none; padding: 0; font-family: var(--font-body); text-align: left; }
.event-meta-link:hover { color: var(--red); }
.rsvp-counts { display: flex; gap: 14px; margin: 10px 0; }
.rsvp-count-item { font-family: var(--font-head); font-size: 0.9rem; color: var(--gray-600); letter-spacing: 0.03em; }
.rsvp-count-item strong { color: var(--black); font-weight: 400; }
.rsvp-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.rsvp-btn {
  font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 9px 6px; cursor: pointer; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-600);
  text-align: center; transition: all var(--transition); line-height: 1.2;
}
.rsvp-btn:hover { border-color: var(--black); color: var(--black); }
.rsvp-btn.going { background: var(--black); border-color: var(--black); color: var(--white); }
.rsvp-btn.maybe { background: var(--gray-100); border-color: var(--gray-400); color: var(--black); }
.rsvp-btn.notgoing { border-color: var(--gray-400); color: var(--gray-400); }

/* ── COMMENTS ── */
.comment-thread { display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; gap: 10px; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 0.95rem; color: var(--white); flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment-name { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.03em; }
.comment-role { font-family: var(--font-head); font-size: 0.75rem; background: var(--red); color: var(--white); padding: 1px 7px; letter-spacing: 0.05em; }
.comment-time { font-size: var(--p3); color: var(--gray-600); }
.comment-text { font-size: var(--p3); line-height: 1.5; color: var(--black); }
.comment-input-row { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-200); }
.comment-input-row .field-input { flex: 1; }

/* ── CHAT (AIM-STYLE) ── */
.chat-shell { border: 1.5px solid var(--gray-200); overflow: hidden; background: var(--white); }
.chat-titlebar { background: var(--black); padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; }
.chat-title { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.04em; color: var(--white); }
.chat-room-label { font-family: var(--font-head); font-size: 0.85rem; color: var(--red); letter-spacing: 0.05em; }
.chat-controls { display: flex; gap: 5px; }
.chat-ctrl { width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer; }
.chat-online-bar { background: #1a1a1a; padding: 5px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.chat-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #4CAF50; flex-shrink: 0; }
.chat-online-text { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.05em; color: #4CAF50; }
.chat-layout { display: grid; grid-template-columns: 1fr 130px; }
.chat-messages { height: 300px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--gray-200); }
.chat-msg { font-size: 0.875rem; line-height: 1.5; font-family: var(--font-body); }
.chat-msg .sender { font-weight: 700; color: var(--black); }
.chat-msg .sender.host { color: var(--red); }
.chat-msg .sys { color: var(--gray-600); font-style: italic; font-size: 0.8rem; }
.chat-users { background: var(--gray-100); padding: 10px; overflow-y: auto; height: 300px; }
.chat-users-title { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--gray-600); margin-bottom: 8px; text-transform: uppercase; }
.chat-user { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.chat-user-dot { width: 6px; height: 6px; border-radius: 50%; background: #4CAF50; flex-shrink: 0; }
.chat-user-dot.away { background: var(--gray-400); }
.chat-user-name { font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.03em; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.chat-user-badge { font-family: var(--font-head); font-size: 0.65rem; background: var(--red); color: var(--white); padding: 1px 5px; letter-spacing: 0.03em; flex-shrink: 0; }
.chat-input-bar { display: flex; align-items: stretch; border-top: 1px solid var(--gray-200); }
.chat-input-bar input[type="file"] { display: none; }
.chat-input-bar .chat-input { flex: 1; min-width: 0; }
.chat-input-bar .chat-send { width: 80px; flex-shrink: 0; }
.chat-input { font-family: var(--font-body); font-size: 0.9rem; border: none; padding: 10px 14px; background: var(--white); color: var(--black); outline: none; border-right: 1.5px solid var(--gray-200); }
.chat-send { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.05em; background: var(--red); color: var(--white); border: none; cursor: pointer; transition: background var(--transition); }
.chat-send:hover { background: var(--red-dark); }
.chat-room-tabs { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--gray-200); overflow-x: auto; flex-wrap: nowrap; }
.chat-room-tab { font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.04em; padding: 6px 14px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-600); cursor: pointer; white-space: nowrap; transition: all var(--transition); border-radius: var(--radius-sm); }
.chat-room-tab.active, .chat-room-tab:hover { background: var(--black); border-color: var(--black); color: var(--white); }

/* ── PROFILE ── */
.profile-header { background: var(--black); padding: 32px 24px; }
.profile-avatar-lg { width: 120px; height: 120px; border-radius: 0; border: 3px solid var(--white); overflow: hidden; flex-shrink: 0; }
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-head); font-size: var(--h2); color: var(--white); line-height: 1; letter-spacing: 0.03em; }
.profile-role { font-family: var(--font-head); font-size: 1.1rem; color: var(--red); letter-spacing: 0.1em; }
.profile-community { font-family: var(--font-head); font-size: 0.95rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; }
.profile-photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* Task 12 — 2-col grid for Photographer and Model public profiles */
.profile-photos-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.profile-photo-lg {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
  position: relative;
}
.profile-photo-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.profile-photo-lg:hover img { transform: scale(1.04); }
.profile-photo-lg::after {
  content: '⤢';
  position: absolute;
  top: 8px; right: 8px;
  font-size: 1rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.profile-photo-lg:hover::after { opacity: 1; }
.profile-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--gray-100); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── COMMUNITY HERO ── */
.community-hero { background: var(--black); padding: 80px 24px; text-align: center; position: relative; overflow: hidden; }
.community-hero-bg { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; opacity: 1; }
.community-hero--has-image { padding: 0; height: 220px; }
.community-hero--has-image .community-city,
.community-hero--has-image .community-sub,
.community-hero--has-image .community-code { display: none; }
.community-hero-logo { display: none; }
.community-code { font-family: var(--font-head); font-size: clamp(4rem, 10vw, 8rem); color: var(--white); letter-spacing: 0.06em; line-height: 1; position: relative; z-index: 1; }
.community-city { font-family: var(--font-head); font-size: clamp(1.2rem, 2.5vw, 1.8rem); color: rgba(255,255,255,0.5); letter-spacing: 0.15em; position: relative; z-index: 1; margin-top: 6px; }
.community-sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); max-width: 560px; margin: 20px auto 0; line-height: 1.7; position: relative; z-index: 1; }

/* ── HOST CARDS ── */
.host-card { display: flex; gap: 20px; align-items: flex-start; }
.host-img { width: 110px; height: 110px; object-fit: cover; flex-shrink: 0; filter: grayscale(10%); }
.host-img-placeholder { width: 110px; height: 110px; background: var(--gray-200); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.host-name { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: 0.04em; margin-bottom: 2px; }
.host-handle { font-size: var(--p3); color: var(--gray-600); margin-bottom: 8px; }
.host-bio { font-size: var(--p3); color: var(--gray-600); line-height: 1.6; margin-bottom: 10px; }
.host-link { font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.05em; color: var(--black); border-bottom: 1px solid var(--black); display: inline-block; padding-bottom: 1px; cursor: pointer; }
.host-link:hover { color: var(--red); border-color: var(--red); }

/* ── MODAL / SHEET ── */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9200; align-items: flex-end; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal-sheet { background: var(--bg); width: 100%; max-width: 500px; max-height: 80vh; overflow-y: auto; border-top: 3px solid var(--black); }
.modal-header { background: var(--black); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-head); font-size: 1.6rem; color: var(--white); letter-spacing: 0.04em; }
.modal-close { font-family: var(--font-head); font-size: 1.1rem; background: none; border: none; color: var(--white); cursor: pointer; letter-spacing: 0.05em; }

/* ── ADMIN TABLE ── */
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--p3); table-layout: fixed; }
.admin-table th { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 12px; text-align: left; background: var(--gray-100); border-bottom: 2px solid var(--black); color: var(--black); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.admin-table tr:hover td { background: var(--gray-100); }
.action-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.action-btn { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.05em; padding: 4px 9px; border: 1.5px solid; background: transparent; cursor: pointer; transition: all var(--transition); border-radius: var(--radius-sm); }
.action-btn.promote { border-color: var(--teal); color: var(--teal); }
.action-btn.promote:hover { background: var(--teal); color: var(--white); }
.action-btn.demote { border-color: var(--d3, #D4850A); color: var(--d3, #D4850A); }
.action-btn.demote:hover { background: var(--d3, #D4850A); color: var(--white); }
.action-btn.restrict { border-color: var(--gray-600); color: var(--gray-600); }
.action-btn.restrict:hover { border-color: var(--red); color: var(--red); }
.action-btn.remove { border-color: var(--red); color: var(--red); }
.action-btn.remove:hover { background: var(--red); color: var(--white); }

/* ── FOOTER ── */
.footer { background: var(--black); color: rgba(255,255,255,0.55); padding: var(--space-2xl) 24px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 48px; align-items: start; }
.footer-logo { font-family: var(--font-head); font-size: 2rem; letter-spacing: 0.05em; color: var(--white); line-height: 1; margin-bottom: 6px; }
.footer-logo sup { font-size: 0.6rem; vertical-align: super; line-height: 0; }
.footer-tagline { font-size: var(--p3); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.footer-col-title { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.1em; color: var(--white); margin-bottom: 12px; }
.footer-link { display: block; font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.45); padding: 3px 0; cursor: pointer; transition: color var(--transition); }
.footer-link:hover { color: var(--white); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; margin-top: 40px; text-align: center; font-size: 0.78rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.25); max-width: var(--max-w); margin-left: auto; margin-right: auto; }

/* ── PAGE ROUTING ── */
.page { display: none; }
.page.active { display: block; }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  background: var(--black); color: var(--white);
  font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.05em;
  padding: 12px 20px;
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid #4CAF50; }
.toast.error { border-left: 4px solid var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  :root { --h1: 3rem; --h2: 2.2rem; --h3: 1.8rem; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.full { grid-column: 1; }
  .chat-layout { grid-template-columns: 1fr 100px; }
  .chat-users { width: 100px; }
}
@media (max-width: 640px) {
  :root { --h1: 2.5rem; --h2: 1.8rem; --h3: 1.5rem; --space-2xl: 40px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .three-col { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: 1fr 1fr; }
  .rsvp-btns { grid-template-columns: 1fr; }
  .profile-photos-grid { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-users { display: none; }
  .admin-table { font-size: 0.75rem; }
  .hero { min-height: 440px; }
  .section { padding: 40px 16px; }
  .footer-inner { gap: 20px; }
  .footer-cols { grid-template-columns: 1fr; }
  .host-card { flex-direction: column; }
}

/* ── SECTION LABEL (eyebrow component) ── */
.section-label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--teal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Above-fold content should always be visible — no animation needed */
.reveal-text {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════
   PHASE 2 — COMMUNITY TABS, BOARD, CHAT REPLIES
══════════════════════════════════════════════════════════ */

/* ── Community tab switcher ── */
.community-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--black);
  background: var(--white);
  padding: 0 var(--space-lg);
  max-width: var(--max-w);
  margin: 0 auto;
}
.community-tab {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--gray-600);
  transition: color var(--transition), border-color var(--transition);
}
.community-tab:hover { color: var(--black); }
.community-tab.active { color: var(--black); border-bottom-color: var(--red); }

/* ── Chat reply quote block (in messages) ── */
.chat-reply-quote {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 10px;
  border-left: 3px solid var(--teal);
  background: rgba(74,155,150,0.08);
  margin-bottom: 5px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.reply-to-name {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--teal-dark, #3a7a76);
}
.reply-preview {
  font-size: 0.8rem;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* ── Reply trigger button (↩ hover on messages) ── */
.reply-trigger {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 2px 6px;
  opacity: 1;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.reply-trigger:hover { color: var(--teal); background: rgba(74,155,150,0.08); }

/* ── Sender link (profile-linked username) ── */
.sender-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: inherit;
  color: var(--black);
  cursor: pointer;
  transition: color var(--transition);
  text-align: left;
}
.sender-link:hover { color: var(--teal); text-decoration: underline; }
.sender-link.host { color: var(--red); }
.sender-link.host:hover { color: var(--red); opacity: 0.8; }

/* ── Chat message content layout ── */
.chat-msg-content {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.chat-colon { font-weight: 700; color: var(--black); }
.chat-txt { flex: 1; word-break: break-word; }
.chat-time {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-left: 6px;
  flex-shrink: 0;
}

/* ── Reply strip (above chat input) ── */
.reply-strip-inner { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.reply-strip-label { font-size: 0.8rem; color: var(--gray-600); }
.reply-strip-preview { font-size: 0.78rem; color: var(--gray-400); }
.reply-strip-close {
  background: none; border: none; cursor: pointer;
  font-size: 0.9rem; color: var(--gray-600); padding: 0 4px;
  flex-shrink: 0;
}

/* ── Discussion Board ── */
.board-thread-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gray-200);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.board-thread-row:hover { border-left-color: var(--teal); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.board-pinned { border-left-color: var(--red) !important; }
.board-thread-cat { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.board-thread-body { flex: 1; min-width: 0; }
.board-thread-title { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.03em; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-thread-meta { font-size: 0.78rem; color: var(--gray-600); }
.board-pin-btn { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 4px; flex-shrink: 0; opacity: 0.5; transition: opacity 0.15s; }
.board-pin-btn:hover { opacity: 1; }
.board-delete-btn { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 4px; flex-shrink: 0; opacity: 0.4; transition: opacity 0.15s; }
.board-delete-btn:hover { opacity: 1; }

/* Board thread header */
.board-thread-header { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 2px solid var(--black); }
.board-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-size: 0.9rem;
  letter-spacing: 0.06em; color: var(--gray-600);
  margin-bottom: 16px; padding: 0;
  transition: color var(--transition);
}
.board-back-btn:hover { color: var(--black); }

/* Board replies */
.board-replies { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.board-reply {
  display: flex;
  gap: 12px;
  background: var(--white);
}
/* Opening post — distinct card treatment */
.board-reply.opening-post {
  background: var(--gray-100);
  border-left: 4px solid var(--black);
  padding: 20px;
  margin-bottom: 0;
}
.board-reply.opening-post .comment-avatar {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}
.board-reply.opening-post .comment-name {
  font-size: 1.1rem;
}
.board-reply.opening-post .comment-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 8px;
}
/* Reply section — indented below opening post */
.board-reply-section {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--gray-200);
  margin-top: 4px;
  position: relative;
}
/* Replies — indented with smaller avatar */
.board-reply-section .board-reply .comment-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Board new thread form */
.board-new-thread {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 24px;
  margin-bottom: 20px;
}
.board-reply-form { padding-top: 20px; border-top: 1px solid var(--gray-200); }

/* ── Event Admin Bar (Edit / Delete) ── */
.event-admin-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  justify-content: flex-end;
}
.event-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
}
.event-admin-btn.edit {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.event-admin-btn.edit:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.event-admin-btn.delete {
  color: rgba(192,0,0,0.7);
  border-color: rgba(192,0,0,0.3);
}
.event-admin-btn.delete:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}
.event-admin-btn.export {
  color: rgba(74,155,150,0.85);
  border-color: rgba(74,155,150,0.3);
}
.event-admin-btn.export:hover {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

/* ══════════════════════════════════════════════════════════
   TASK 3.1 — NOTIFICATION BELL & DRAWER
══════════════════════════════════════════════════════════ */
.nav-notif {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 4px;
}
.notif-bell {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color var(--transition);
  border-radius: var(--radius-sm);
}
.notif-bell:hover { color: var(--white); }
.notif-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--black);
}
.notif-drawer {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  width: 320px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 2px solid var(--teal);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  max-height: 460px;
  overflow: hidden;
}
.notif-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: var(--white);
}
.notif-drawer-title {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--black);
}
.notif-mark-all {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--teal-dark, #3a7a76);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.notif-drawer-list {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0; /* critical — allows flex child to shrink and scroll */
}
.notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--gray-100); }
.notif-item.unread { background: rgba(74,155,150,0.06); }
.notif-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.notif-body { flex: 1; min-width: 0; }
.notif-msg {
  font-size: 0.82rem;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 3px;
}
.notif-time {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: var(--gray-600);
  letter-spacing: 0.04em;
}
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── QW3: Event description See More toggle ── */
.see-more-btn {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--teal-dark, #3a7a76);
  cursor: pointer;
  padding: 2px 0;
  margin-top: 4px;
  transition: color var(--transition);
}
.see-more-btn:hover { color: var(--teal); }

/* ══════════════════════════════════════════════════════════
   TASK 14 — COMMUNITY MEMBERS + 3-COL LAYOUT
══════════════════════════════════════════════════════════ */
.community-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.community-col {
  min-width: 0;
}
/* Divider between Row 1 and Row 2 */
.community-row2 {
  border-top: 2px solid var(--gray-200);
  padding-top: var(--space-xl);
  margin-top: 0;
}
/* All three column section labels aligned consistently */
.community-col > .section-label {
  display: block;
  margin-bottom: 16px;
  min-height: 20px;
}
.community-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
  min-height: 72px;
}
.community-event-item:last-child { border-bottom: none; }
.community-event-item:hover { background: var(--gray-100); padding-left: 6px; }
.community-event-item:hover .community-event-title { color: var(--teal); }
.community-event-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm, 2px);
  background: var(--gray-200);
}
.community-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community-event-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
}
.community-event-info { flex: 1; min-width: 0; }
.community-event-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  transition: color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.community-event-meta {
  font-size: var(--p3);
  color: var(--gray-600);
}
.see-more-btn {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.see-more-btn:hover { color: var(--teal-dk, var(--teal)); text-decoration: underline; }

/* Host cards — compact for column layout */
.host-card-col {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background var(--transition);
}
.host-card-col:last-child { border-bottom: none; }
.host-card-col:hover { background: var(--gray-100); }
.host-avatar-col {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.host-avatar-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.host-info-col { flex: 1; min-width: 0; }
.host-name-col {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.host-bio-col {
  font-size: var(--p3);
  color: var(--gray-600);
  line-height: 1.5;
}

/* Members grid — avatar cards */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.member-card:hover { background: var(--gray-100); }
.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.member-avatar-initials {
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.member-name {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.member-type {
  font-size: 0.65rem;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 900px) {
  /* Tablet — two columns: hosts+members left, meets right */
  .community-three-col {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  /* Upcoming meets spans full width at tablet */
  .community-col:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .community-three-col { grid-template-columns: 1fr; gap: 28px; }
  .community-col:last-child { grid-column: auto; }
  .members-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Task 15: Instagram feed embed ── */
.ig-feed-wrap {
  margin-top: 12px;
  width: 100%;
}
.ig-feed-wrap behold-widget {
  display: block;
  width: 100%;
}

/* ── Task 13: Events page community filter tabs ── */
.events-filter-tab {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  margin-bottom: 16px;
}
.events-filter-tab:hover {
  border-color: rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.9);
}
.events-filter-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ── Task 14: Event Lightbox ── */
.event-lb-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--black);
  flex-shrink: 0;
}
.event-lb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-lb-cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-lb-cover-placeholder span {
  font-family: var(--font-head);
  font-size: 5rem;
  color: rgba(255,255,255,0.06);
  letter-spacing: 0.15em;
}
/* Clickable card elements */
.event-card-img { transition: opacity 0.15s; }
.event-card-img:hover { opacity: 0.88; }
.event-card-title { transition: color 0.15s; }
.event-card-title:hover { color: var(--teal); }

/* ── Task 15: Past Meets section ── */
.past-meets-section {
  margin-top: 48px;
  border-top: 2px solid var(--gray-200);
  padding-top: 0;
}
.past-meets-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  width: 100%;
  text-align: left;
  transition: color 0.15s;
}
.past-meets-toggle:hover { color: var(--black); }
.past-meets-toggle svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.past-meets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}
.past-event-card {
  transition: opacity 0.15s;
}
.past-event-card:hover {
  opacity: 0.85;
}
@media (max-width: 768px) {
  .past-meets-grid { grid-template-columns: 1fr; }
}

/* all-events is a block container — internal grids handle columns */
#all-events { display: block; }

/* ── Task 16: Board thread image thumbnail in list row ── */
.board-thread-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
}
.board-thread-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Task 17: Chat image upload button ── */
.chat-img-btn {
  background: none;
  border: none;
  border-left: 1px solid var(--gray-200);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  width: 44px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-img-btn:hover { opacity: 1; }

/* ── Task 07: Community page upcoming meets — horizontal card ── */
.community-event-item--large {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: box-shadow 0.15s;
  overflow: hidden;
  cursor: pointer;
}
.community-event-item--large:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

/* Image — 25% width, fixed height */
.community-event-cover {
  width: 25%;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--black);
  position: relative;
}
.community-event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.community-event-item--large:hover .community-event-cover img { transform: scale(1.05); }
.community-event-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}
.community-event-cover-placeholder span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.1em;
}

/* Info — takes remaining 75% */
.community-event-info--large {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.community-event-title--large {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Responsive: home mission + landing platform grids ── */
@media (max-width: 640px) {
  .home-mission-grid   { grid-template-columns: 1fr !important; gap: 24px !important; }
  .landing-platform-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
}
