/* ==========================================================================
   Layout — three columns: left sidebar | main center | right sidebar
   ========================================================================== */
.sr-wrap {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.sr-main {
  flex: 1;
  display: flex;
  max-width: var(--sr-main-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--sr-gap);
  gap: 0;
}
/* Left sidebar — nav + themes */
.sr-sidebar-left {
  width: var(--sr-sidebar-w);
  flex-shrink: 0;
  padding: var(--sr-gap) var(--sr-gap) var(--sr-gap) 0;
  border-right: 1px solid var(--sr-border);
}
.sr-nav-left { margin-bottom: var(--sr-gap); }
.sr-nav-list { list-style: none; padding: 0; margin: 0; }
.sr-nav-list li { margin: 0; }
.sr-nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--sr-radius-sm);
  color: var(--sr-text);
  font-size: 0.95rem;
}
.sr-nav-list a:hover { background: var(--sr-card); color: var(--sr-accent); text-decoration: none; }
.sr-nav-list a.current {
  background: rgba(230, 57, 0, 0.15);
  color: var(--sr-accent);
  font-weight: 500;
}
.sr-nav-list a.current:hover { color: var(--sr-accent-hover); }
.sr-nav-icon { opacity: 0.7; font-size: 0.85rem; }
.sr-sidebar-left-section { margin-bottom: var(--sr-gap); }
.sr-sidebar-left-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sr-muted);
  margin: 0 0 10px;
  padding: 0 10px;
}
.sr-sidebar-left .sr-topics-list { padding: 0; margin: 0; list-style: none; }
.sr-sidebar-left .sr-topics-list li { margin: 0; }
.sr-sidebar-left .sr-topics-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 10px;
  border-radius: var(--sr-radius-sm);
  color: var(--sr-text);
  font-size: 0.9rem;
}
.sr-sidebar-left .sr-topics-list a:hover { background: var(--sr-card); color: var(--sr-accent); text-decoration: none; }
.sr-sidebar-left .sr-topic-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--sr-radius-sm);
  background: var(--sr-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.sr-sidebar-left-footer {
  margin-top: var(--sr-gap);
  padding-top: var(--sr-gap);
  border-top: 1px solid var(--sr-border);
}
.sr-sidebar-left-footer a {
  display: block;
  min-height: 44px;
  padding: 12px 10px;
  line-height: 1.4;
  color: var(--sr-muted);
  font-size: 0.9rem;
}
.sr-sidebar-left-footer a:hover { color: var(--sr-text); text-decoration: none; }
/* Main center — post space, centered */
.sr-content {
  flex: 1;
  min-width: 0;
  max-width: var(--sr-content-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--sr-gap);
  border-right: 1px solid var(--sr-border);
}
/* Right sidebar — same width as left */
.sr-sidebar-right {
  width: var(--sr-sidebar-w);
  flex-shrink: 0;
  padding: var(--sr-gap) 0 var(--sr-gap) var(--sr-gap);
}
.sr-sidebar-right-block {
  background: var(--sr-card);
  border-radius: var(--sr-radius);
  padding: var(--sr-gap);
  margin-bottom: var(--sr-gap);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sr-muted);
  text-align: center;
}
.sr-tab-groups-placeholder { min-height: 180px; }
.sr-placeholder-label { font-size: 0.9rem; margin-bottom: 4px; }
.sr-placeholder-icon { font-size: 2rem; opacity: 0.5; margin-bottom: 8px; }
.sr-placeholder-hint { font-size: 0.8rem; margin: 0; opacity: 0.8; }
.sr-widget-placeholder .sr-placeholder-hint { margin-top: 8px; }
.sr-sidebar-right .sr-widget {
  margin-bottom: var(--sr-gap);
  padding: 0;
}
.sr-sidebar-right .sr-widget:last-child { margin-bottom: 0; }
.sr-sidebar-right .sr-sidebar-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sr-text);
  margin: 0 0 10px;
}

/* Shared card/bubble container (feed, single, comments, bookmarks) */
.sr-bubble {
  background: var(--sr-card);
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius);
  overflow: hidden;
}
