

/* ═══════════════════════════════
   RESET & TOKENS
═══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* ── Dark mode (default) ── */
  --bg: #07070f;
  --surface: #0f0f1e;
  --card: #0b0b1a;
  --border: #1c1c35;
  --border-hover: #2e2e55;
  --accent: #00ff88;
  --accent-dim: rgba(0,255,136,0.12);
  --accent2: #7b5cff;
  --accent2-dim: rgba(123,92,255,0.12);
  --text: #e8e8f2;
  --text-sub: #9090b0;
  --muted: #4a4a6a;
  --glow: 0 0 20px rgba(0,255,136,0.3);
  --glow-lg: 0 0 40px rgba(0,255,136,0.2);
  --nav-bg: rgba(7,7,15,0.9);
  --filter-bg: rgba(7,7,15,0.95);
  --shadow-card: 0 16px 48px rgba(0,0,0,0.6);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --nav-h: 60px;
  --sidebar-w: 240px;
  --transition: 0.2s ease;
}

/* ── Light mode ── */
html.light {
  --bg: #f0f2f8;
  --surface: #ffffff;
  --card: #f7f8fc;
  --border: #dde1ee;
  --border-hover: #b8c0d8;
  --accent: #008a4a;
  --accent-dim: rgba(0,138,74,0.1);
  --accent2: #5b3fd4;
  --accent2-dim: rgba(91,63,212,0.1);
  --text: #0e0e20;
  --text-sub: #4a4a70;
  --muted: #8888aa;
  --glow: 0 0 16px rgba(0,138,74,0.2);
  --glow-lg: 0 0 32px rgba(0,138,74,0.15);
  --nav-bg: rgba(240,242,248,0.92);
  --filter-bg: rgba(240,242,248,0.97);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.1);
}

/* Smooth theme transition on all elements */
*, *::before, *::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}
/* But NOT on animations/transforms */
img, svg, .wall-card, .pill, .modal { transition: none; }
.wall-card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pill      { transition: all 0.2s ease; }

/* ── Theme toggle button ── */
.theme-toggle {
  flex-shrink: 0;
  width: 44px; height: 26px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  overflow: hidden;
}
.theme-toggle:hover { border-color: var(--accent); box-shadow: var(--glow); }

/* Track icons */
.theme-toggle .t-sun,
.theme-toggle .t-moon {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  transition: opacity 0.3s ease !important;
  pointer-events: none;
}
.theme-toggle .t-sun  { right: 5px; opacity: 0; }
.theme-toggle .t-moon { left: 5px;  opacity: 1; }
html.light .theme-toggle .t-sun  { opacity: 1; }
html.light .theme-toggle .t-moon { opacity: 0; }

/* Thumb */
.theme-toggle .t-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s ease !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
html.light .theme-toggle .t-thumb { transform: translateX(18px); }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════
   SCROLLBAR
═══════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ═══════════════════════════════
   TOP NAVBAR
═══════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

/* Hamburger — mobile only */
.nav-ham {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  padding: 6px;
}
.nav-ham span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .hi { color: var(--accent); }
@keyframes glowPulse {
  0%,100% { text-shadow: 0 0 6px rgba(0,255,136,0.3); }
  50%      { text-shadow: 0 0 16px rgba(0,255,136,0.8); }
}
.nav-logo .hi { animation: glowPulse 3s ease-in-out infinite; }

/* Search */
.nav-search {
  flex: 1;
  position: relative;
  min-width: 0;
}
.nav-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px 8px 36px;
  color: var(--text);
  font-size: 0.84rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { border-color: var(--accent); box-shadow: var(--glow); }
.nav-search .s-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 15px; height: 15px;
}

/* Desktop category btn */
.cat-wrap { position: relative; flex-shrink: 0; }
.cat-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.cat-btn:hover, .cat-btn.open { border-color: var(--accent); box-shadow: var(--glow); }
.cat-btn .arr { transition: transform var(--transition); }
.cat-btn.open .arr { transform: rotate(180deg); }

/* Dropdown */
.cat-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), var(--glow);
  z-index: 2000;
}
.cat-drop.open { display: block; }
.cat-drop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.81rem;
  color: var(--text-sub);
  transition: background var(--transition), color var(--transition);
}
.cat-link:hover { background: var(--card); color: var(--accent); }

/* ═══════════════════════════════
   MOBILE DRAWER SIDEBAR
═══════════════════════════════ */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 950;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding-top: var(--nav-h);
}
.drawer.open { transform: translateX(0); }

.drawer-section { padding: 16px 16px 8px; }
.drawer-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.drawer-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.drawer-item:hover, .drawer-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}

/* ═══════════════════════════════
   DESKTOP LAYOUT SHELL
═══════════════════════════════ */
.shell {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* Desktop sidebar */
.sidebar {
  display: none; /* hidden on mobile */
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 20px 0 80px;
}
.sidebar-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 16px;
  margin-bottom: 6px;
  margin-top: 20px;
}
.sidebar-label:first-child { margin-top: 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  color: var(--text-sub);
  font-size: 0.83rem;
  transition: background var(--transition), color var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-item:hover { background: var(--accent-dim); color: var(--text); }
.sidebar-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-left-color: var(--accent);
}
.sidebar-item .ico { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 16px; }

/* ═══════════════════════════════
   MAIN CONTENT AREA
═══════════════════════════════ */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Filter bar ── */
.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--filter-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.pill-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pill-row::-webkit-scrollbar { display: none; }
.pill {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem; font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text-sub);
  background: transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}
.pill:hover { border-color: var(--muted); color: var(--text); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #000; box-shadow: var(--glow); }
.pill .ico { width: 13px; height: 13px; }

.tag-row {
  display: flex; gap: 6px;
  padding: 8px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tag-row::-webkit-scrollbar { display: none; }
.tag-chip {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.72rem; color: var(--muted);
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.tag-chip:hover { border-color: var(--accent2); color: var(--accent2); background: var(--accent2-dim); }

/* ── Section header ── */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 10px;
}
.sec-head-left { display: flex; align-items: center; gap: 10px; }
.sec-bar {
  width: 3px; height: 20px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: var(--glow);
}
.sec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 600;
}
.view-toggle { display: flex; gap: 4px; }
.vt-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--muted);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.vt-btn:hover, .vt-btn.active { border-color: var(--border); color: var(--text); background: var(--surface); }
.vt-btn svg { width: 15px; height: 15px; }

/* ═══════════════════════════════
   WALLPAPER GRID
═══════════════════════════════ */
.wall-grid {
  padding: 0 12px 120px; /* bottom pad for mobile bottom nav */
  columns: 1;
  column-gap: 10px;
}
.wall-grid.view-list {
  columns: 1 !important;
}

.wall-card {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.wall-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), var(--glow);
  border-color: rgba(0,255,136,0.4);
}
.wall-card img {
  width: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.wall-card:hover img { transform: scale(1.04); }

/* Overlay */
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,4,16,0.85) 0%, rgba(4,4,16,0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px;
  gap: 8px;
}
.wall-card:hover .card-overlay { opacity: 1; }

/* Always visible overlay on mobile (touch) */
@media (hover: none) {
  .card-overlay { opacity: 1; background: linear-gradient(to top, rgba(4,4,16,0.75) 0%, transparent 50%); }
}

.overlay-btns { display: flex; gap: 6px; }
.ov-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.73rem; font-weight: 600;
  transition: filter var(--transition);
  border: none;
}
.ov-btn svg { width: 12px; height: 12px; }
.ov-btn.pri { background: var(--accent); color: #000; }
.ov-btn.sec { background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(6px); }
.ov-btn:hover { filter: brightness(1.15); }

.card-meta {
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.card-meta-name {
  font-size: 0.7rem; color: var(--text-sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.res-badge {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.62rem; font-weight: 600;
  color: var(--accent);
}

/* List view card */
.wall-grid.view-list .wall-card {
  display: flex; flex-direction: row;
  height: 80px;
}
.wall-grid.view-list .wall-card img {
  width: 130px; height: 100%;
  object-fit: cover; flex-shrink: 0;
}
.wall-grid.view-list .card-overlay { display: none; }
.wall-grid.view-list .card-meta {
  flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px;
}
.wall-grid.view-list .card-meta-name { white-space: normal; font-size: 0.78rem; color: var(--text); }

/* ═══════════════════════════════
   DETAIL MODAL
═══════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 3000;
  padding: 16px;
  overflow-y: auto;
  align-items: flex-end; /* bottom sheet on mobile */
}
.modal-overlay.open { display: flex; }
@media (min-width: 768px) {
  .modal-overlay { align-items: center; justify-content: center; }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 520px;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5), var(--glow-lg);
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
@media (min-width: 768px) {
  .modal { border-radius: var(--radius-lg); animation: fadeIn 0.2s ease; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Pull handle on mobile */
.modal-handle {
  width: 36px; height: 4px;
  background: var(--border-hover);
  border-radius: 2px;
  margin: 10px auto;
}
@media (min-width: 768px) { .modal-handle { display: none; } }

.modal-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
}
.modal-body { padding: 16px; }
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 6px;
}
.modal-desc {
  font-size: 0.78rem; color: var(--text-sub);
  line-height: 1.65; margin-bottom: 14px;
}
.modal-dl-col { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.dl-btn-full {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  width: 100%;
  transition: filter var(--transition), box-shadow var(--transition);
}
.dl-btn-full svg { width: 15px; height: 15px; }
.dl-btn-full.primary { background: var(--accent); color: #000; }
.dl-btn-full.primary:hover { box-shadow: var(--glow); filter: brightness(1.08); }
.dl-btn-full.ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.dl-btn-full.ghost:hover { border-color: var(--accent); color: var(--accent); }

.modal-res-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.modal-res-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.73rem; color: var(--text-sub);
  transition: all var(--transition);
}
.modal-res-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tag {
  padding: 3px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.68rem; color: var(--muted);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  color: var(--text);
  backdrop-filter: blur(4px);
  font-size: 1.1rem;
  z-index: 10;
}
.modal-close:hover { background: rgba(0,0,0,0.8); }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-size: 0.73rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ═══════════════════════════════
   POPULAR TAGS SECTION
═══════════════════════════════ */
.pop-tags {
  padding: 28px 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.pop-tags-label {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; line-height: 1.8; }
.tc-tag {
  color: var(--muted);
  transition: color var(--transition);
  font-weight: 500;
}
.tc-tag:hover { color: var(--accent); }
.tc-tag.xl  { font-size: 1.4rem; font-weight: 700; }
.tc-tag.lg  { font-size: 1.1rem; font-weight: 600; }
.tc-tag.md  { font-size: 0.9rem; }
.tc-tag.sm  { font-size: 0.75rem; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 16px 90px; /* extra bottom for mobile nav */
  text-align: center;
  font-size: 0.72rem; color: var(--muted);
}
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }
@media (min-width: 768px) { footer { padding-bottom: 24px; } }

/* ═══════════════════════════════
   MOBILE BOTTOM NAV
═══════════════════════════════ */
.bottom-nav {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(7,7,15,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  height: 60px;
}
.bn-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  font-size: 0.58rem; font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.bn-item svg { width: 20px; height: 20px; }
.bn-item.active { color: var(--accent); }
.bn-item:hover { color: var(--text); }

/* ═══════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════ */

/* ≥ 480px: 2 columns */
@media (min-width: 480px) {
  .wall-grid { columns: 2; }
}

/* ≥ 768px: tablet — hide bottom nav, show desktop cat button */
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .wall-grid { columns: 2; padding-bottom: 40px; }
  .wall-grid.view-3 { columns: 3; }
  footer { padding-bottom: 32px; }
}

/* ≥ 1024px: desktop — show sidebar, hide hamburger */
@media (min-width: 1024px) {
  .nav-ham { display: none; }
  .sidebar { display: block; }
  .wall-grid { columns: 3; padding: 0 16px 40px; }
  .wall-grid.view-2 { columns: 2; }
  .wall-grid.view-4 { columns: 4; }
  .cat-drop { min-width: 480px; }
}

/* ≥ 1280px: wide */
@media (min-width: 1280px) {
  .wall-grid { columns: 4; }
  .wall-grid.view-2 { columns: 2; }
  .wall-grid.view-3 { columns: 3; }
  :root { --sidebar-w: 260px; }
}

/* ≥ 1600px */
@media (min-width: 1600px) {
  .wall-grid { columns: 5; }
}



/* ── WordPress specific additions ── */
.sb-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px;
  color: var(--text);
}
.sb-logo .hi { color: var(--accent); }
.sb-nav { display: flex; flex-direction: column; }
.sb-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  color: var(--text-sub);
  font-size: 0.83rem;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.sb-link:hover { background: var(--accent-dim); color: var(--accent); border-left-color: var(--accent); }
.sb-count {
  font-size: 0.65rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1px 7px; color: var(--muted);
}
.sb-divider { height: 1px; background: var(--border); margin: 12px 16px; }
.cat-item {
  display: block; padding: 9px 12px;
  border-radius: 8px; font-size: 0.81rem;
  color: var(--text-sub); transition: all var(--transition);
}
.cat-item:hover { background: var(--card); color: var(--accent); }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  padding: 18px 16px 10px;
  color: var(--text);
}
.filter-bar {
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  position: sticky; top: var(--nav-h); z-index: 50;
  background: var(--filter-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-right { display: flex; align-items: center; gap: 8px; }
.vt-btns { display: flex; gap: 3px; }
.no-results { padding: 40px 16px; color: var(--muted); text-align: center; }
.load-more-btn {
  padding: 10px 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.85rem;
  cursor: pointer; transition: all var(--transition);
}
.load-more-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
