/* ============================================
   HUB-Master-Template-V5-20251128
   Django/Wagtail Ready - Full Pocket Navigation
   Billboard with Hanging Square Avatar (Places)
   Masonry Columns with Composer Tile
   Overlay-style Poster Cards

   NOTE: Header styles are consolidated in header-components.css.
   Do not add header/pocket/navigation/dropdown styles here.
   ============================================ */

:root {
  /* Hub Theme Variables - Change these per hub */
  --hub-primary: #F59E0B;
  --hub-gradient: linear-gradient(135deg, #F59E0B, #D97706);
  --hub-light: #FEF3C7;
  --hub-glow: rgba(245, 158, 11, 0.3);
  --hub-name: "BOOK";

  /* System Colors */
  --bg-page: #F8FAFC;
  --bg-card: #ffffff;
  --bg-dark: #111111;
  --bg-dropdown: #1a1a1a;
  --bg-dropdown-section: #222222;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-white: #ffffff;
  --border-light: #F3F4F6;
  --border-medium: #E5E7EB;
  --border-dark: #333333;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-dropdown: 0 10px 40px rgba(0,0,0,0.4);
}

/* Hub Theme Variants - defined in pocits-hub-themes.css */

/* Universal reset removed - use pocits-base.css for resets
   to avoid overriding header-components.css styles */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
}

/* =========================================
   HUB COLOR LINE
   ========================================= */
.hub-indicator {
  width: 100%;
  height: 3px;
  background: var(--hub-gradient);
  position: sticky;
  top: 56px;
  z-index: 99;
  cursor: pointer;
  transition: height 0.2s, box-shadow 0.2s;
}

.hub-indicator:hover {
  height: 5px;
  box-shadow: 0 2px 12px var(--hub-glow);
}

.hub-indicator-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dropdown);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  margin-top: var(--space-xs);
}

.hub-indicator:hover .hub-indicator-tooltip {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   MAIN LAYOUT
   ========================================= */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.main-grid {
  display: grid;
  grid-template-columns: 220px 3fr 280px;
  gap: var(--space-xl);
}

/* =========================================
   LEFT SIDEBAR
   ========================================= */
.sidebar {
  position: sticky;
  top: 83px;
  align-self: start;
  max-height: calc(100vh - 107px);
  overflow-y: auto;
}

.card {
  background: var(--bg-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hub-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--hub-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.view-toggle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.view-toggle span {
  cursor: pointer;
  transition: color 0.2s;
}

.view-toggle span:hover {
  color: var(--text-primary);
}

.view-toggle .active {
  font-weight: 600;
  color: var(--hub-primary);
}

.view-toggle .separator {
  color: var(--border-medium);
  cursor: default;
}

.filters {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
}

.filter-item {
  display: flex;
  align-items: center;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
}

.filter-item input {
  margin-right: 10px;
  accent-color: var(--hub-primary);
  width: 16px;
  height: 16px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

/* Category List - defined in pocits-base.css */

/* =========================================
   MAIN CONTENT
   ========================================= */
.content-main {
  min-width: 0;
}

/* =========================================
   BILLBOARD - Hanging Avatar Style (Square for Places)
   ========================================= */
.billboard-wrapper {
  position: relative;
  margin-bottom: var(--space-xl);
}

.hub-billboard {
  width: 100%;
  height: 280px;
  background: var(--hub-gradient);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hub-billboard::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.billboard-credit {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-md);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 11px;
  z-index: 2;
}

/* Place Info Section - Below Billboard */
.place-info-bar {
  display: flex;
  align-items: flex-start;
  padding-top: var(--space-md);
  gap: var(--space-md);
}

/* Hanging Avatar - Square for Places */
.place-avatar {
  width: 120px;
  height: 120px;
  border: 4px solid var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--bg-card);
  flex-shrink: 0;
  margin-top: -80px;
  margin-left: 10px;
  position: relative;
  z-index: 10;
}

.place-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hub-gradient);
  color: white;
  font-size: 36px;
  font-weight: 600;
}

/* Place Text - Dark, Single Line */
.place-text-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-xs);
  flex: 1;
}

.place-display-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.verified-badge {
  width: 18px;
  height: 18px;
  color: #3B82F6;
}

.place-title {
  font-size: 16px;
  color: var(--text-secondary);
}

/* View Toggle - Right Aligned */
.view-toggle-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  padding-top: var(--space-sm);
}

.view-toggle-right span {
  cursor: pointer;
  transition: color 0.2s;
}

.view-toggle-right span:hover { color: var(--text-primary); }
.view-toggle-right .active { font-weight: 600; color: var(--hub-primary); }

/* Legacy hero support - hide old elements */
.hero-banner { display: none; }
.hero-content { display: none; }
.hero-title { display: none; }
.hero-subtitle { display: none; }

/* Search Bar - defined in pocits-base.css */

/* Post Composer - Compact Tile Card */
.post-composer {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.composer-input {
  width: 100%;
  border: none;
  font-size: 13px;
  padding: var(--space-sm);
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  resize: none;
  height: 84px;
  line-height: 1.5;
}

.composer-input:focus { outline: none; }

.composer-input::placeholder { color: var(--text-muted); }

.composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.composer-icons {
  display: flex;
  gap: var(--space-xs);
}

.composer-tool {
  padding: var(--space-xs);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.composer-tool-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.composer-tool:hover {
  color: var(--hub-primary);
  background: var(--hub-light);
}

.composer-post-btn {
  background: var(--hub-gradient);
  color: white;
  border: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.composer-post-btn:hover {
  opacity: 0.9;
}

/* Visibility scope selector */
.composer-scope {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.composer-scope-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 2px;
  flex-shrink: 0;
}

.composer-scope-pill {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}

.composer-scope-pill:hover:not(:disabled) {
  border-color: var(--hub-primary);
  color: var(--hub-primary);
}

.composer-scope-pill.composer-scope-active {
  background: var(--hub-primary);
  border-color: var(--hub-primary);
  color: #ffffff;
}

.composer-scope-pill.composer-scope-locked {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Post Grid - Masonry-style columns */
.post-grid {
  column-count: 3;
  column-gap: var(--space-lg);
}

/* Prevent items from breaking across columns */
.post-grid > * {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: var(--space-md);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Post card as link — strip anchor decoration */
a.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.post-card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Headline sits at the top, hub-color for scannability */
.post-headline {
  font-weight: 700;
  font-size: 13px;
  color: var(--hub-book, #F5D97A);
  margin: 0 0 10px;
  line-height: 1.35;
}

/* Body row: text left, avatar anchored to bottom-right */
.post-body-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.post-body-wrap .post-text {
  flex: 1;
  margin-bottom: 0;
}

.post-author-float {
  flex-shrink: 0;
  text-align: center;
  width: 48px;
}

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.post-author-name {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.2;
  word-break: break-word;
  margin-bottom: 3px;
}

.post-type-label {
  font-size: 8px;
  color: var(--text-muted);
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-header {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  gap: var(--space-sm);
}

.post-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--hub-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.post-meta {
  flex: 1;
}

.post-business {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.post-category {
  font-size: 12px;
  color: var(--text-muted);
}

.post-image {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--border-light), var(--border-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.post-content {
  padding: 0;
}

.post-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.post-actions {
  display: flex;
  gap: var(--space-lg);
  font-size: 12px;
  color: var(--text-muted);
}

.post-actions span {
  cursor: pointer;
  transition: color 0.2s;
}

.post-actions span:hover {
  color: var(--hub-primary);
}

.post-actions .likes {
  color: var(--hub-primary);
  font-weight: 500;
}

/* =========================================
   RIGHT SIDEBAR - POSTER ADS (Overlay Style)
   ========================================= */
.sidebar-ads {
  position: sticky;
  /* top: 75px; */
  /* NV changed */
  top: 10px;
  align-self: start;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
}

/* Poster Card - Full Image with Text Overlay */
.poster-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: linear-gradient(135deg, var(--hub-light), var(--border-light));
  background-size: cover;
  background-position: center;
}

.poster-card:hover {
  /* Hover effect removed per user request */
}

.poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}

.poster-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  margin-bottom: 2px;
}

.poster-category {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Hide old poster structure */
.poster-image { display: none; }
.poster-info { display: none; }

.compliment-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hub-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
}

.compliment-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.referral-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.referral-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--border-medium), var(--border-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.referral-info {
  flex: 1;
}

.referral-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.referral-business {
  font-size: 11px;
  color: var(--text-muted);
}

/* =========================================
   VERSION LABEL
   ========================================= */
.version-label {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: monospace;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
  .main-grid {
    grid-template-columns: 200px 2fr 240px;
  }
  .post-grid {
    column-count: 2;
  }
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr 240px;
  }
  .sidebar:first-of-type {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .post-grid {
    column-count: 1;
  }
}

.hamburger-menu {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.hamburger-menu:hover {
  background: rgba(255,255,255,0.1);
}

.hamburger-menu svg {
  width: 20px;
  height: 20px;
  color: var(--text-white);
}

/* ==========================================================================
   Hub Identity Strip — small profile context bar at top of hub-content-wrapper
   ========================================================================== */

.hub-identity-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hub-identity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.hub-identity-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-identity-avatar-initials {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: 50%;
}

.hub-identity-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hub-identity-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-identity-title {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Hub Search Title Row — "Joe's BOOK" inside the sticky search container
   ========================================================================== */

/* Override sticky top to match fixed header height exactly */
.hub-content-wrapper .search-sticky-container {
  top: 60px;
  margin-bottom: 0;
}

.hub-search-title {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 4px;
}

.hub-search-title .hub-abbrev {
  font-size: 14px;
  font-weight: 700;
  color: var(--hub-color, rgba(255,255,255,0.95));
  letter-spacing: 0.02em;
}

.hub-search-title-name {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Hub Category Panel — right sidebar in hub view
   ========================================================================== */

.hub-category-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  background: #1e2030;
  border-radius: 8px;
  overflow: hidden;
}

/* Profile identity at top of panel */
.hub-panel-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
}

.hub-panel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.hub-panel-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-panel-avatar-initials {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: 50%;
}

.hub-panel-identity-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hub-panel-identity-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-panel-identity-title {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Activity | Directory toggle */
.hub-view-toggle {
  display: flex;
  gap: 2px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hub-view-btn {
  flex: 1;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.hub-view-btn.active {
  background: var(--hub-color, rgba(255,255,255,0.12));
  border-color: var(--hub-color, rgba(255,255,255,0.25));
  color: rgba(255,255,255,0.95);
}

.hub-view-btn:hover:not(.active) {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

/* Profile type filter — collapsible dropdown */
.hub-type-filter-dropdown {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hub-filter-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  text-align: left;
}

.hub-filter-trigger-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.hub-filter-trigger-value {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  flex: 1;
}

.hub-filter-trigger-chevron {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  transition: transform 0.2s;
  line-height: 1;
}

.hub-filter-trigger:hover .hub-filter-trigger-value {
  color: rgba(255,255,255,0.9);
}

.hub-filter-panel {
  display: none;
  padding: 4px 12px 10px;
}

.hub-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
}

.hub-filter-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hub-filter-check-box {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.hub-filter-check input:checked + .hub-filter-check-box {
  background: var(--hub-color, rgba(255,255,255,0.2));
  border-color: var(--hub-color, rgba(255,255,255,0.45));
}

.hub-filter-check input:checked + .hub-filter-check-box::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 3px;
  width: 5px;
  height: 8px;
  border: 1.5px solid rgba(255,255,255,0.9);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.hub-filter-check-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.hub-filter-check:hover .hub-filter-check-label {
  color: rgba(255,255,255,0.9);
}

.hub-filter-check input:not(:checked) ~ .hub-filter-check-label {
  color: rgba(255,255,255,0.3);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.15);
}

/* Categories label */
.hub-categories-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 10px 12px 4px;
}

/* Category accordion */
.hub-categories-accordion {
  display: flex;
  flex-direction: column;
}

.hub-cat-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hub-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.hub-cat-header:hover {
  background: rgba(255,255,255,0.05);
}

.hub-cat-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.hub-cat-name {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.hub-cat-count {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.hub-cat-chevron {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  transition: transform 0.2s;
  line-height: 1;
}

.hub-cat-item.expanded .hub-cat-chevron {
  transform: rotate(90deg);
}

.hub-cat-subs {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.12);
  padding: 2px 0 4px;
}

.hub-cat-item.expanded .hub-cat-subs {
  display: flex;
}

.hub-cat-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px 5px 40px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.hub-cat-sub:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}

.hub-cat-sub span {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}
