/* =========================================================
   SMM.BZ — Dashboard Sidebar & Layout 2026
   Clean professional SaaS design — light mode default
   ========================================================= */

/* The sidebar tokens inherit from style.css :root / [data-theme="dark"]
   This file only adds sidebar-specific layout rules. */

/* Fixed sidebar */
.sidebar {
  width: 256px;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

.sidebar-logo {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  min-height: 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.nav-section {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: 14px 10px 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-lg, 16px);
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-link i {
  width: 16px;
  text-align: center;
  font-size: .875rem;
  flex-shrink: 0;
  opacity: .75;
}

.nav-link.active i {
  opacity: 1;
}

/* Earn / Feature-request highlight variant */
.nav-link-highlight {
  background: var(--accent-light);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border);
}
.nav-link-highlight:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nav-link-highlight.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nav-link-highlight .earn-badge {
  margin-left: auto;
  font-size: .625rem;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 9999px;
  letter-spacing: .04em;
}
.nav-link-highlight.active .earn-badge {
  background: rgba(255,255,255,.3);
  color: #fff;
}

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Main content area ── */
.main-content {
  margin-left: 256px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ── Topbar ── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
}

.topbar-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all .15s;
}

.balance-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.balance-chip i { color: var(--accent); font-size: .8rem; }

.balance-amount { font-weight: 700; font-variant-numeric: tabular-nums; }

.add-funds-cta {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 6px;
  border-left: 1px solid var(--border);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  transition: all .15s;
  position: relative;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 1.5px solid var(--surface);
}

.avatar-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Page area ── */
.page-area {
  padding: 28px;
  flex: 1;
}

/* ── Mobile sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.4);
  z-index: 39;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.show { display: block; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .page-area { padding: 16px; }
}

/* ── View-As-Customer bar ── */
.vac-bar {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  padding: 10px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .8125rem;
  color: #fff;
  border-radius: var(--radius-xl, 20px);
  margin-bottom: 20px;
}

.vac-bar.active { display: flex; }
.vac-username { background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 9999px; font-weight: 800; font-size: .78rem; }
.vac-exit { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 5px 16px; border-radius: 9999px; font-weight: 700; cursor: pointer; font-family: var(--font); font-size: .8rem; transition: background .15s; }
.vac-exit:hover { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════════════════════════════
   SEO CONTENT PAGE SIDEBAR (.sb-* classes)
   Used by smm-reviews/, smm-guides/, tutorials/, trends/, etc.
   ═══════════════════════════════════════════════════════════════ */

/* Layout wrapper */
.sb-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text-primary);
}

/* Sidebar */
.sb-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.sb-sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sb-nav-section-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 20px 6px;
}

.sb-nav {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  gap: 2px;
}

.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .15s;
}
.sb-nav-item i { width: 16px; text-align: center; font-size: .875rem; color: var(--text-muted); flex-shrink: 0; }
.sb-nav-item:hover { background: var(--surface-2); color: var(--text-primary); }
.sb-nav-item:hover i { color: var(--primary); }
.sb-nav-item.sb-active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sb-nav-item.sb-active i { color: var(--primary); }

.sb-sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sb-sidebar-footer a:hover { color: var(--primary) !important; }

/* Main content area */
.sb-main {
  flex: 1;
  min-width: 0;
  background: var(--bg);
}

/* Hero */
.sb-hero {
  background: linear-gradient(to bottom, var(--primary-light), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 48px 32px 40px;
  position: relative;
  overflow: hidden;
}
.sb-hero::after {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.sb-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}

/* Content page body */
.sb-page {
  padding: 40px 32px;
  line-height: 1.75;
  color: var(--text-secondary);
  font-size: .9375rem;
}
.sb-page h2 {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 700; color: var(--text-primary);
  margin: 32px 0 12px; letter-spacing: -.02em;
}
.sb-page h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary); margin: 24px 0 8px;
}
.sb-page p { margin-bottom: 16px; }
.sb-page ul, .sb-page ol { padding-left: 22px; margin-bottom: 16px; }
.sb-page li { margin-bottom: 6px; }
.sb-page a { color: var(--primary); }
.sb-page a:hover { text-decoration: underline; }
.sb-page strong { font-weight: 700; color: var(--text-primary); }
.sb-page blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  background: var(--primary-light);
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  color: var(--text-primary);
  font-style: italic;
}
.sb-page .sb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
}
.sb-page .sb-badge {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 9999px;
  background: var(--primary-light); color: var(--primary);
  margin-right: 6px;
}

/* Mobile topbar (hidden on desktop) */
.sb-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}

.sb-hamburger {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text-primary); padding: 6px;
}
.sb-theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: 9999px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .875rem; color: var(--text-secondary);
  transition: all .15s;
}
.sb-theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

.sb-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 39;
  background: rgba(0,0,0,.4);
}
.sb-overlay.sb-open { display: block; }

/* Mobile breakpoint */
@media (max-width: 900px) {
  .sb-layout { flex-direction: column; }
  .sb-topbar { display: flex; }
  .sb-sidebar {
    position: fixed; top: 0; left: -280px; bottom: 0;
    width: 260px; height: 100vh;
    transition: left .25s ease;
    z-index: 40;
  }
  .sb-sidebar.sb-open { left: 0; }
  .sb-main { min-height: calc(100vh - 56px); }
  .sb-hero { padding: 32px 20px; }
  .sb-page { padding: 28px 20px; }
}
