/* PEACHBOOK Page Styles */

.peachbook-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

.peachbook-shell .feed-panel {
  padding: 14px 16px;
}

.peachbook-shell .section-heading {
  margin-bottom: 12px;
}

.peachbook-shell .section-heading h2 {
  font-size: 19px;
}

.peachbook-shell .section-kicker {
  margin-bottom: 2px;
  font-size: 9px;
  letter-spacing: 1px;
}

.peachbook-hero {
  padding: 36px 32px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 85% 40%, rgba(255, 110, 180, 0.2), transparent 55%),
              radial-gradient(ellipse at 15% 65%, rgba(255, 189, 131, 0.16), transparent 50%),
              linear-gradient(135deg, #172437 0%, #0d1522 100%);
  border: 1px solid var(--line, #253247);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.peachbook-hero h1 {
  margin: 6px 0 12px;
  font-family: var(--display-font, 'Trebuchet MS', sans-serif);
  font-size: clamp(32px, 5vw, 46px);
  color: #fff;
  letter-spacing: 0.03em;
  font-weight: 900;
  text-transform: uppercase;
}

.peachbook-intro-text {
  max-width: 680px;
  margin: 0;
  color: var(--muted, #98a7b9);
  font-size: 14px;
  line-height: 1.6;
}

/* PEACHBOOK Hub Gateways (Marketplace & Chef Corner) */
.peachbook-hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.peachbook-hub-card {
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(145deg, #121c2c 0%, #0c1421 100%);
  border: 1px solid var(--line, #253247);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.peachbook-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--peach, #ffbd83);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hub-card-marketplace::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #43e5dc, #ffbd83);
}

.hub-card-chef::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffbd83, #ff6eb4);
}

.hub-card-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--peach, #ffbd83);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.peachbook-hub-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #fff;
  font-weight: 700;
}

.peachbook-hub-card p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #98a7b9);
  flex-grow: 1;
}

.hub-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hub-cta-btn {
  text-decoration: none;
  font-size: 13px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

/* Composer Panel */
.peachbook-composer-panel {
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(16, 24, 39, 0.95);
  border: 1px solid var(--line, #253247);
  border-radius: 8px;
}

.peachbook-composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.peachbook-composer-header h2,
.peachbook-composer-header h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.peachbook-textarea {
  width: 100%;
  background: #0d1522;
  border: 1px solid var(--line, #253247);
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 52px;
  height: 52px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.peachbook-textarea:focus {
  border-color: var(--peach, #ffbd83);
}

.peachbook-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.peachbook-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #151f30;
  border: 1px dashed var(--peach, #ffbd83);
  border-radius: 8px;
  color: var(--peach, #ffbd83);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.peachbook-upload-btn:hover {
  background: rgba(255, 189, 131, 0.1);
}

.peachbook-image-preview-wrap {
  position: relative;
  display: inline-block;
  margin-top: 12px;
}

.peachbook-image-preview-wrap img {
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid var(--line, #253247);
  display: block;
}

.peachbook-remove-img-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

/* Feed Container */
.peachbook-feed-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.peachbook-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.peachbook-stream-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.peachbook-empty {
  text-align: center;
  padding: 48px 24px;
  background: rgba(16, 24, 39, 0.6);
  border: 1px dashed var(--line, #253247);
  border-radius: 12px;
}

.peachbook-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.peachbook-empty h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}

.peachbook-empty p {
  margin: 0;
  color: var(--muted, #98a7b9);
  font-size: 14px;
}


/* ========================================================
   UNIFIED PEACHBOOK FEED & FILTER BAR STYLES
   ======================================================== */

.peachbook-filter-bar {
  margin: 16px 0 24px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(18, 28, 44, 0.95) 0%, rgba(12, 20, 33, 0.98) 100%);
  border: 1px solid var(--line, #253247);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.filter-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.filter-bar-hint {
  font-size: 12px;
  color: var(--muted, #98a7b9);
}

.filter-buttons-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-filter-pill {
  appearance: none;
  background: #152033;
  border: 1px solid var(--line, #253247);
  border-radius: 30px;
  padding: 7px 15px;
  color: var(--muted, #98a7b9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  user-select: none;
}

.feed-filter-pill:hover {
  background: #1b2a42;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.feed-filter-pill.active {
  background: rgba(255, 189, 131, 0.14);
  color: #fff;
  border-color: var(--peach, #ffbd83);
  box-shadow: 0 0 12px rgba(255, 189, 131, 0.2);
}

.feed-filter-pill[data-feed="marketplace"].active {
  background: rgba(67, 229, 220, 0.14);
  border-color: var(--cyan, #43e5dc);
  box-shadow: 0 0 12px rgba(67, 229, 220, 0.2);
}

.feed-filter-pill[data-feed="chef"].active {
  background: rgba(255, 209, 102, 0.14);
  border-color: var(--gold, #ffd166);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.2);
}

.feed-filter-pill.all-pill.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.filter-check-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.15);
  color: var(--muted, #98a7b9);
}

.feed-filter-pill.active .filter-check-indicator {
  background: currentColor;
  color: #0b1320;
}

/* Feed Origin Badges */
.feed-origin-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.origin-social {
  background: rgba(255, 189, 131, 0.16);
  color: var(--peach, #ffbd83);
  border: 1px solid rgba(255, 189, 131, 0.35);
}

.origin-marketplace {
  background: rgba(67, 229, 220, 0.16);
  color: var(--cyan, #43e5dc);
  border: 1px solid rgba(67, 229, 220, 0.35);
}

.origin-chef {
  background: rgba(255, 209, 102, 0.16);
  color: var(--gold, #ffd166);
  border: 1px solid rgba(255, 209, 102, 0.35);
}

/* Unified Feed Card Borders & Indicators */
.feed-card-social {
  border-left: 4px solid var(--peach, #ffbd83) !important;
}

.feed-card-marketplace {
  border-left: 4px solid var(--cyan, #43e5dc) !important;
}

.feed-card-chef {
  border-left: 4px solid var(--gold, #ffd166) !important;
}

/* Marketplace Card Content Alignment & Typography (Consistent with Social Feed) */
.feed-mkt-meta-row {
  padding: 10px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-mkt-subject-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-mkt-subject {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.feed-mkt-condition-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted, #98a7b9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feed-mkt-condition-pill strong {
  color: #e2e8f0;
  font-weight: 700;
}

.feed-mkt-price-badge {
  font-size: 13px;
  font-weight: 800;
  color: #48c78e;
  background: rgba(72, 199, 142, 0.14);
  border: 1px solid rgba(72, 199, 142, 0.3);
  padding: 2px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.feed-mkt-type {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feed-mkt-type.sale {
  background: rgba(67, 229, 220, 0.15);
  color: var(--cyan, #43e5dc);
}

.feed-mkt-type.wanted {
  background: rgba(255, 209, 102, 0.15);
  color: var(--gold, #ffd166);
}

.feed-mkt-type.sold {
  background: rgba(255, 77, 109, 0.15);
  color: var(--cherry, #ff4d6d);
}

[data-theme="light"] .feed-mkt-subject {
  color: #0f172a;
}

[data-theme="light"] .feed-mkt-condition-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .feed-mkt-condition-pill strong {
  color: #0f172a;
}

.feed-chef-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 209, 102, 0.15);
  color: var(--gold, #ffd166);
  text-transform: uppercase;
}

.feed-card-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line, #253247);
  background: rgba(0, 0, 0, 0.15);
}

.user-avatar-mkt {
  background: linear-gradient(135deg, #1f4044 0%, #0d292b 100%) !important;
  color: var(--cyan, #43e5dc) !important;
  border: 1px solid rgba(67, 229, 220, 0.4) !important;
}

.user-avatar-chef {
  background: linear-gradient(135deg, #443c1f 0%, #2b240d 100%) !important;
  color: var(--gold, #ffd166) !important;
  border: 1px solid rgba(255, 209, 102, 0.4) !important;
}

/* Sponsors Feed Badges & Cards */
.origin-sponsor {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.25) 100%) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
}

.user-avatar-sponsor {
  background: linear-gradient(135deg, #134e4a 0%, #064e3b 100%) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
}

.feed-sponsor-perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold, #ffd166);
  border: 1px solid rgba(255, 209, 102, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.feed-sponsor-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.feed-sponsor-link-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  color: #fff;
}

.badge-sponsors {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.feed-post-header .user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  overflow: hidden;
  flex-shrink: 0;
}

.feed-post-header .user-avatar-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.feed-comment .user-avatar-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 9px;
  overflow: hidden;
  flex-shrink: 0;
}

.feed-comment .user-avatar-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}


/* Composer Category Tag Selector & Form Controls */
.composer-tag-group {
  margin-bottom: 8px;
}

.composer-tag-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #98a7b9);
  margin-bottom: 4px;
}

.composer-tag-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  background: #131c2b;
  border: 1px solid var(--line, #253247);
  color: var(--muted, #98a7b9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.composer-tag-pill input[type="radio"] {
  display: none;
}

.composer-tag-pill:hover {
  background: #1a273b;
  color: #fff;
}

.composer-tag-pill[data-type="social"].active {
  background: rgba(255, 189, 131, 0.16);
  border-color: var(--peach, #ffbd83);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 189, 131, 0.25);
}

.composer-tag-pill[data-type="marketplace"].active {
  background: rgba(67, 229, 220, 0.16);
  border-color: var(--cyan, #43e5dc);
  color: #fff;
  box-shadow: 0 0 10px rgba(67, 229, 220, 0.25);
}

.composer-tag-pill[data-type="chef"].active {
  background: rgba(255, 209, 102, 0.16);
  border-color: var(--gold, #ffd166);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.25);
}

.peachbook-input,
.peachbook-select {
  width: 100%;
  background: #0d1522;
  border: 1px solid var(--line, #253247);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.peachbook-input:focus,
.peachbook-select:focus {
  border-color: var(--peach, #ffbd83);
}

.composer-conditional-fields {
  background: rgba(13, 21, 34, 0.6);
  border: 1px dashed var(--line, #253247);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

/* Service Offer & Service Wanted Feed Badges */
.feed-mkt-type.service-offer {
  background: rgba(72, 199, 142, 0.15);
  color: #48c78e;
}

.feed-mkt-type.service-wanted {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

/* Feed Emoji Picker & Post Inline Editing */
.feed-emoji-picker {
  position: fixed;
  z-index: 1050;
  max-height: 380px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--peach, #ffbd83);
}

.feed-post-edit-container {
  margin: 10px 0;
}

.feed-post-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.chat-edit-button {
  background: transparent;
  border: 1px solid var(--line, #253247);
  color: var(--muted, #98a7b9);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-edit-button:hover {
  background: rgba(255, 189, 131, 0.15);
  color: var(--peach, #ffbd83);
  border-color: var(--peach, #ffbd83);
}

.feed-edited-tag {
  font-size: 11px;
  color: var(--muted, #98a7b9);
  font-style: italic;
  margin-left: 6px;
}

/* Modern Reaction Pills & Floating Emoji Pickers */
.event-reactions-bar,
.feed-reactions-bar,
.chef-reactions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #253247);
}

.event-reaction-btn,
.feed-reaction,
.feed-reaction-button,
.chef-reaction-btn,
.chef-react-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line, #253247);
  border-radius: 999px;
  background: #141f30;
  color: var(--muted, #98a7b9);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  line-height: 1;
}

.feed-reaction:hover,
.feed-reaction-button:hover,
.chef-reaction-btn:hover,
.chef-react-btn:hover {
  background: #1c2a40;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.feed-reaction.active,
.feed-reaction-button.active,
.chef-reaction-btn.active,
.chef-react-btn.active {
  background: rgba(67, 229, 220, 0.18);
  border-color: var(--cyan, #43e5dc);
  color: #fff;
  box-shadow: 0 0 12px rgba(67, 229, 220, 0.25);
}

.open-emoji-picker-btn,
.event-add-reaction-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--line, #253247);
  border-radius: 999px;
  color: var(--muted, #98a7b9);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.open-emoji-picker-btn:hover,
.event-add-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--cyan, #43e5dc);
  border-style: solid;
  transform: translateY(-1px);
}

.feed-emoji-picker,
.event-emoji-picker {
  position: fixed !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 10000 !important;
  width: 340px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: 420px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8) !important;
  border: 1px solid var(--cyan, #43e5dc) !important;
  border-radius: 12px !important;
  background: #131e2d !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px !important;
}

.feed-emoji-picker[hidden],
.event-emoji-picker[hidden] {
  display: none !important;
}

/* ========================================================
   MOBILE RESPONSIVENESS & AUTO-RESIZING
   ======================================================== */
@media (max-width: 768px) {
  .peachbook-shell {
    padding: 16px 12px 36px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .peachbook-hero {
    padding: 20px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .peachbook-hero h1 {
    font-size: clamp(22px, 6.5vw, 32px);
    margin: 4px 0 8px;
  }

  .peachbook-intro-text {
    font-size: 13px;
    line-height: 1.5;
  }

  .peachbook-hubs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .peachbook-hub-card {
    padding: 16px 14px;
  }

  .peachbook-filter-bar {
    padding: 12px 10px;
    margin: 12px 0 16px;
    gap: 8px;
    border-radius: 10px;
  }

  .filter-bar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .filter-buttons-row {
    gap: 6px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .feed-filter-pill {
    padding: 6px 10px;
    font-size: 12px;
    gap: 5px;
  }

  .peachbook-composer-panel {
    padding: 10px 10px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .composer-tag-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .composer-tag-pill {
    padding: 7px 8px;
    font-size: 11px;
    gap: 5px;
    justify-content: center;
  }

  .composer-conditional-fields {
    padding: 10px;
  }

  .composer-conditional-fields > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .peachbook-composer-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .peachbook-upload-btn,
  .peachbook-composer-actions button[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  .feed-post {
    border-radius: 9px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .feed-post-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .feed-post-description {
    padding: 10px 12px 4px;
    font-size: 13px;
  }

  .feed-post-image {
    max-height: 380px;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: #060a12;
    display: block;
  }

  .feed-mkt-meta-row {
    padding: 8px 12px 0;
    gap: 6px;
  }

  .feed-card-footer-actions {
    padding: 10px 12px;
    gap: 8px;
  }

  .feed-reactions-bar,
  .event-reactions-bar {
    padding-top: 8px;
    margin-top: 8px;
    gap: 4px;
  }

  .event-reaction-btn,
  .social-reaction-btn,
  .chef-reaction-btn {
    padding: 3px 8px;
    min-height: 28px;
    font-size: 12px;
    gap: 4px;
  }

  .feed-comments {
    padding: 0 10px;
    gap: 6px;
  }

  .feed-comment {
    padding: 6px 8px;
  }

  .feed-comment-form {
    padding: 8px 10px 12px;
    gap: 6px;
  }

  .feed-comment-form input {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* Header Navigation Buttons & Avatars */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

#peachbook-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}

#peachbook-auth-btn-label {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

#peachbook-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--cyan-dark, #00d2c4);
  flex-shrink: 0;
  vertical-align: middle;
  background: #1d2a3a;
  color: #c8d5e2;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

#peachbook-user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-actions .theme-toggle-button,
.header-actions #refresh-cache-btn {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  border: 1px solid var(--line, #334258);
  border-radius: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.header-actions .calendar-create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}

.header-actions .calendar-create-button span {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.header-actions .calendar-create-button .back-text-short {
  display: none;
}

.header-actions .calendar-create-button .back-text-full {
  display: inline;
}

@media (max-width: 560px) {
  .header-actions {
    gap: 6px;
  }

  #peachbook-auth-btn {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 0 9px;
    font-size: 10px;
    gap: 6px;
  }

  #peachbook-user-avatar {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    font-size: 9px;
  }

  .header-actions .theme-toggle-button,
  .header-actions #refresh-cache-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    font-size: 14px;
  }

  .header-actions .calendar-create-button {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }

  .header-actions .calendar-create-button span {
    font-size: 11px !important;
  }
}

@media (max-width: 520px) {
  .header-actions .calendar-create-button {
    padding: 0 8px !important;
    font-size: 11px !important;
  }
  .header-actions .calendar-create-button .back-text-full {
    display: none !important;
  }
  .header-actions .calendar-create-button .back-text-short {
    display: inline !important;
  }
}

/* ==========================================================================
   Light Mode Overrides for Social Club Hub Feed (Peachbook)
   ========================================================================== */

[data-theme="light"] .peachbook-shell,
[data-theme="light"] .feed-panel {
  color: #181028;
}

/* Composer Panel */
[data-theme="light"] .peachbook-composer-panel {
  background: #ffffff !important;
  border: 1px solid #ebd2e8 !important;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.06) !important;
}

[data-theme="light"] .peachbook-composer-header h2,
[data-theme="light"] .peachbook-composer-header h3 {
  color: #181028 !important;
}

[data-theme="light"] .composer-tag-label,
[data-theme="light"] #peachbook-post-label,
[data-theme="light"] .composer-conditional-fields label {
  color: #533b6e !important;
}

[data-theme="light"] .composer-tag-pill {
  background: #faf5fa !important;
  border: 1px solid #ebd2e8 !important;
  color: #533b6e !important;
}

[data-theme="light"] .composer-tag-pill:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  color: #181028 !important;
}

[data-theme="light"] .composer-tag-pill.active,
[data-theme="light"] .composer-tag-pill[data-type="sponsors"],
[data-theme="light"] .composer-tag-pill[data-type="sponsors"].active {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  color: #9a3412 !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12) !important;
}

[data-theme="light"] .composer-conditional-fields {
  background: #fffbf7 !important;
  border: 1px dashed #fad8c3 !important;
}

[data-theme="light"] .peachbook-textarea {
  background: #ffffff !important;
  border: 1px solid #ebd2e8 !important;
  color: #181028 !important;
  color-scheme: light !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .peachbook-textarea:focus {
  border-color: #ea580c !important;
  outline: 2px solid rgba(234, 88, 12, 0.15) !important;
}

[data-theme="light"] .peachbook-textarea::placeholder,
[data-theme="light"] .peachbook-input::placeholder {
  color: #8b76a0 !important;
}

[data-theme="light"] .peachbook-input,
[data-theme="light"] .peachbook-select {
  background: #ffffff !important;
  border: 1px solid #ebd2e8 !important;
  color: #181028 !important;
  color-scheme: light !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .peachbook-input:focus,
[data-theme="light"] .peachbook-select:focus {
  border-color: #ea580c !important;
  outline: 2px solid rgba(234, 88, 12, 0.15) !important;
}

[data-theme="light"] .peachbook-upload-btn {
  background: #fff7ed !important;
  border: 1px dashed #ea580c !important;
  color: #c2410c !important;
}

[data-theme="light"] .peachbook-upload-btn:hover {
  background: #ffedd5 !important;
  border-color: #c2410c !important;
}

[data-theme="light"] .peachbook-image-preview-wrap img {
  border-color: #ebd2e8 !important;
}

/* Feed Posts & Cards */
[data-theme="light"] .feed-post,
[data-theme="light"] .feed-post-card {
  background: #ffffff !important;
  border: 1px solid #ebd2e8 !important;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.06) !important;
}

[data-theme="light"] .feed-card-sponsor {
  border-left: 4px solid #ea580c !important;
}

[data-theme="light"] .feed-card-social {
  border-left: 4px solid #ea580c !important;
}

[data-theme="light"] .feed-card-marketplace {
  border-left: 4px solid #7c3aed !important;
}

[data-theme="light"] .feed-card-chef {
  border-left: 4px solid #ea580c !important;
}

[data-theme="light"] .feed-post-author strong {
  color: #181028 !important;
}

[data-theme="light"] .feed-post-author time,
[data-theme="light"] .feed-comment time,
[data-theme="light"] .feed-edited-tag {
  color: #6f5885 !important;
}

[data-theme="light"] .feed-post-description {
  color: #181028 !important;
}

/* Photos & Frames - Eliminated dark letterboxing/pillarbox borders */
[data-theme="light"] .feed-post-image,
[data-theme="light"] .feed-post-image-wrap,
[data-theme="light"] .feed-image-preview {
  background: #faf6f9 !important;
}

/* Origin Badges & Perk Pills */
[data-theme="light"] .origin-sponsor {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="light"] .origin-social {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="light"] .origin-marketplace {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border: 1px solid #ddd6fe !important;
}

[data-theme="light"] .origin-chef {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

[data-theme="light"] .feed-sponsor-perk-pill {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

/* Post Actions: Edit & Delete */
[data-theme="light"] .chat-edit-button {
  background: #faf5fa !important;
  border: 1px solid #ebd2e8 !important;
  color: #533b6e !important;
}

[data-theme="light"] .chat-edit-button:hover {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  color: #c2410c !important;
}

[data-theme="light"] .chat-delete-button {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

[data-theme="light"] .chat-delete-button:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #9f1239 !important;
}

/* Reactions Bar & Buttons */
[data-theme="light"] .event-reaction-btn,
[data-theme="light"] .feed-rx-btn,
[data-theme="light"] .feed-reaction {
  background: #faf5fa !important;
  border: 1px solid #ebd2e8 !important;
  color: #231438 !important;
}

[data-theme="light"] .event-reaction-btn:hover,
[data-theme="light"] .feed-rx-btn:hover,
[data-theme="light"] .feed-reaction:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  color: #6d28d9 !important;
}

[data-theme="light"] .event-reaction-btn.active,
[data-theme="light"] .feed-rx-btn.active,
[data-theme="light"] .feed-reaction.active {
  background: #fce7f3 !important;
  border-color: #ec4899 !important;
  color: #be185d !important;
}

[data-theme="light"] .event-reaction-btn .rx-count,
[data-theme="light"] .feed-rx-btn .rx-count,
[data-theme="light"] .feed-reaction-count {
  color: #533b6e !important;
}

[data-theme="light"] .event-add-reaction-btn,
[data-theme="light"] .open-emoji-picker-btn {
  background: #faf5fa !important;
  border: 1px solid #ebd2e8 !important;
  color: #7c3aed !important;
}

[data-theme="light"] .event-add-reaction-btn:hover,
[data-theme="light"] .open-emoji-picker-btn:hover {
  background: #f5f0ff !important;
  border-color: #7c3aed !important;
  color: #5b21b6 !important;
}

[data-theme="light"] .feed-mention-btn {
  background: #fdf4f8 !important;
  border: 1px solid #f3c2dc !important;
  color: #c026d3 !important;
}

[data-theme="light"] .feed-mention-btn:hover {
  background: #fce7f3 !important;
  border-color: #ec4899 !important;
  color: #9d174d !important;
}

/* Post Inline Edit Form */
[data-theme="light"] .feed-post-edit-container {
  background: #fffbf7 !important;
  border: 1px dashed #fad8c3 !important;
  border-radius: 8px !important;
  padding: 10px !important;
}

[data-theme="light"] .calendar-today-button {
  background: #faf5fa !important;
  border: 1px solid #ebd2e8 !important;
  color: #533b6e !important;
}

[data-theme="light"] .calendar-today-button:hover {
  background: #f5f0f5 !important;
  color: #181028 !important;
}

/* Comments Section */
[data-theme="light"] .feed-comments {
  border-top: 1px solid #f5ecf4 !important;
}

[data-theme="light"] .feed-comment {
  background: #faf6f9 !important;
  border: 1px solid #f0e4ee !important;
}

[data-theme="light"] .feed-comment p {
  color: #181028 !important;
}

[data-theme="light"] .feed-comment strong {
  color: #181028 !important;
}

[data-theme="light"] .feed-comment-form input {
  background: #ffffff !important;
  border: 1px solid #ebd2e8 !important;
  color: #181028 !important;
  color-scheme: light !important;
}

[data-theme="light"] .feed-comment-form input:focus {
  border-color: #ea580c !important;
}

/* Floating Emoji Picker */
[data-theme="light"] .feed-emoji-picker {
  background: #ffffff !important;
  border: 1px solid #ebd2e8 !important;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.14) !important;
}

/* Empty State */
[data-theme="light"] .peachbook-empty {
  background: #ffffff !important;
  border: 1px dashed #ebd2e8 !important;
}

[data-theme="light"] .peachbook-empty h3 {
  color: #181028 !important;
}

[data-theme="light"] .peachbook-empty p {
  color: #533b6e !important;
}

/* Guest Sign-In Prompt */
[data-theme="light"] .chef-signin-prompt {
  background: #fff8f2 !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="light"] .chef-signin-prompt p {
  color: #7c2d12 !important;
}

/* Lake Time Footer Capsule Pill in Light Mode */
[data-theme="light"] .footer-laketime-link {
  background: linear-gradient(135deg, #ff6b2b 0%, #ec4899 52%, #7c3aed 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.28), 0 2px 6px rgba(124, 58, 237, 0.16) !important;
}

[data-theme="light"] .footer-laketime-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff7a3d 0%, #f43f5e 52%, #8b5cf6 100%) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.42), 0 3px 8px rgba(124, 58, 237, 0.25) !important;
}

[data-theme="light"] .footer-laketime-logo {
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  background: #ffffff !important;
}

[data-theme="light"] .footer-laketime-powered {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .footer-laketime-brand {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .footer-laketime-sub {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .footer-laketime-dot {
  color: rgba(255, 255, 255, 0.85) !important;
}
