/* ═══════════════════════════════════════
   NOPZON.COM — v3
   Layout: 3-col social feed (Reddit-style)
   Theme: Black & White — monochrome
   Fonts: DM Serif Display + DM Sans + JetBrains Mono
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Monochrome Palette ── */
  --bg:        #f5f5f5;
  --bg2:       #ebebeb;
  --surface:   #ffffff;
  --surface2:  #fafafa;
  --surface3:  #f0f0f0;
  --border:    #e4e4e4;
  --border2:   #d0d0d0;
  --accent:    #111111;
  --accent-h:  #000000;
  --accent-bg: #f0f0f0;
  --accent-bdr:#d0d0d0;
  --blue:      #111111;
  --blue-bg:   #f0f0f0;
  --green:     #222222;
  --muted:     #aaaaaa;
  --dim:       #777777;
  --text:      #111111;
  --text2:     #333333;
  --text3:     #777777;

  /* ── Typography ── */
  --sans:   'DM Sans', sans-serif;
  --serif:  'DM Serif Display', serif;
  --mono:   'JetBrains Mono', monospace;

  /* ── Layout ── */
  --nav-w:    240px;
  --sidebar-w:300px;
  --header-h: 52px;
  --radius:   10px;
  --radius-sm:6px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════
   TOP HEADER BAR
══════════════════════════════════════ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: #fff; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.3px;
}
.logo-main span { color: var(--accent); }
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Header search — centre */
.header-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border2);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,68,10,.08);
  background: var(--surface);
}
.header-search i {
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
}
.header-search input {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  padding: 8px 0;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  padding: 0 18px;
  height: 100%;
  min-height: 36px;
  background: var(--accent);
  border: none;
  border-radius: 0 22px 22px 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.header-search button:hover { background: var(--accent-h); }

/* Header right nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-nav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  transition: all .15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.header-nav-btn:hover { background: var(--surface2); color: var(--text); }
.header-nav-btn.active { color: var(--accent); background: var(--accent-bg); border-color: var(--accent-bdr); }
.header-nav-btn i { font-size: 12px; }

/* ══════════════════════════════════════
   LEADERBOARD AD — below header
══════════════════════════════════════ */
.ad-leaderboard-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.ad-slot {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  box-sizing: border-box;
}

.ad-slot::before {
  content: 'AD';
  position: absolute;
  top: 4px; right: 6px;
  font-size: 9px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1px;
  opacity: .6;
}

.ad-leaderboard { width: 728px; height: 90px; max-width: 100%; }
.ad-rectangle  { width: 300px; height: 250px; }
.ad-halfpage   { width: 300px; height: 600px; }
.ad-infeed     { width: 100%; height: 120px; border-radius: var(--radius); }

/* ══════════════════════════════════════
   3-COLUMN LAYOUT
══════════════════════════════════════ */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: var(--nav-w) 1fr var(--sidebar-w);
  gap: 16px;
  align-items: start;
}

/* ── LEFT NAV ── */
.left-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.left-nav-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}

.left-nav-title {
  padding: 10px 14px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .8px;
  text-transform: uppercase;
}

.left-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  transition: all .12s;
  cursor: pointer;
}
.left-nav-item:hover { background: var(--surface2); color: var(--text); }
.left-nav-item.active { color: var(--accent); background: var(--accent-bg); font-weight: 600; }
.left-nav-item i { width: 16px; text-align: center; font-size: 13px; color: var(--dim); flex-shrink: 0; }
.left-nav-item.active i { color: var(--accent); }

/* ── CENTRE FEED ── */
.feed-col { min-width: 0; }

.feed-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.feed-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  cursor: pointer;
  transition: all .12s;
  border: none; background: none;
}
.feed-tab:hover { background: var(--surface2); color: var(--text); }
.feed-tab.active { background: var(--accent); color: #fff; }
.feed-tab i { font-size: 12px; }

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── POST CARD (feed style) ── */
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.post:hover {
  border-color: var(--border2);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.post-inner { padding: 14px 16px; }

.post-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.post-author-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.post-author-left img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.post-author-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.post-author-handle {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.post-timestamp {
  font-family: var(--mono); font-size: 10px; color: var(--muted); flex-shrink: 0;
}

.post-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  word-break: break-word;
  margin-bottom: 10px;
}

.hashtag-link {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.hashtag-link:hover { text-decoration: underline; }

/* post body wrapper for old partial */
.post-body { padding: 14px 16px; }

/* card embeds */
.card-box {
  display: flex; flex-direction: column;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s;
}
.card-box:hover { border-color: var(--border2); }
.card-box > img, .card-box img { width: 100%; max-height: 200px; object-fit: cover; }
.card-meta { padding: 10px 12px; }
.card-meta strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.card-meta small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--dim); }
.youtube-thumb { position: relative; }
.youtube-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: #f00; font-size: 40px; }

/* post stats bar */
.post-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 8px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}
.post-stats span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; color: var(--dim);
  cursor: default;
  transition: background .12s, color .12s;
}
.post-stats span:hover { background: var(--surface3); color: var(--text); }
.post-stats i { font-size: 12px; }

/* ── IN-FEED AD ── */
.post-ad {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  position: relative;
}

/* ── RIGHT SIDEBAR ── */
.right-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.widget-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.widget-header i { font-size: 12px; color: var(--accent); }

.topic-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px; font-weight: 500;
  transition: background .12s;
  text-decoration: none;
}
.topic-item:last-child { border-bottom: none; }
.topic-item:hover { background: var(--surface2); color: var(--text); }
.topic-item-label span { color: var(--accent); font-weight: 700; }
.trend-count {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  background: var(--surface2); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border); flex-shrink: 0;
}

.widget-footer {
  padding: 10px 14px;
  text-align: center;
}
.widget-footer a {
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-decoration: none;
}
.widget-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   HERO (homepage only)
══════════════════════════════════════ */
.hero-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-bottom: 12px;
  text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  letter-spacing: .3px;
  margin-bottom: 16px;
}
.hero-badge-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}

.hero-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.hero-wrap h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 15px; color: var(--text3);
  line-height: 1.65; max-width: 420px;
  margin: 0 auto 24px;
}

.search-box {
  display: flex; align-items: stretch;
  max-width: 500px; margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,68,10,.09);
}
.search-box input {
  flex: 1; padding: 13px 16px;
  border: none; outline: none;
  font-family: var(--sans); font-size: 14px;
  background: transparent; color: var(--text); min-width: 0;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  padding: 0 22px; border: none; background: var(--accent);
  color: #fff; font-family: var(--sans); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: background .12s;
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.search-box button:hover { background: var(--accent-h); }

.feature-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-top: 16px;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 11px; color: var(--dim);
  transition: all .12s;
}
.pill:hover { border-color: var(--accent-bdr); color: var(--accent); }
.pill i { font-size: 10px; color: var(--accent); }

/* ══════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; gap: 8px;
  padding: 0 0 10px 0;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-dot {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}
.section-header h2 {
  font-size: 12px; font-weight: 700;
  color: var(--dim); letter-spacing: .8px; text-transform: uppercase;
}

/* ══════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════ */
.profile-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 280px 1fr var(--sidebar-w);
  gap: 16px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-banner {
  height: 100px;
  background: var(--surface2);
}
.profile-avatar-wrap {
  padding: 0 16px;
  margin-top: -24px;
  margin-bottom: 0;
  position: relative; z-index: 2;
}
.profile-avatar-wrap img {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  object-fit: cover;
  display: block;
}
.profile-sidebar-body { padding: 12px 16px 16px; }
.profile-display-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.profile-handle { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.profile-bio { font-size: 13px; color: var(--text3); line-height: 1.55; margin-bottom: 14px; }

.profile-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px;
}
.profile-stat-box {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px; text-align: center;
}
.profile-stat-box strong {
  display: block; font-family: var(--mono); font-size: 14px;
  font-weight: 700; color: var(--text); margin-bottom: 1px;
}
.profile-stat-box span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.profile-nav { display: flex; flex-direction: column; gap: 2px; }
.profile-nav-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--dim); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all .12s; border: 1px solid transparent;
}
.profile-nav-btn:hover { background: var(--surface2); color: var(--text); }
.profile-nav-btn.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-bdr); font-weight: 600; }
.profile-nav-btn i { font-size: 12px; width: 14px; text-align: center; }

/* profile main & sidebar ad column */
.profile-main { min-width: 0; }
.profile-content-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.profile-content-header h2 {
  font-size: 12px; font-weight: 700; color: var(--dim);
  letter-spacing: .8px; text-transform: uppercase;
}

.profile-ad-col {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ══════════════════════════════════════
   POST GRID (used in profile, hashtag)
══════════════════════════════════════ */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ══════════════════════════════════════
   LOAD MORE
══════════════════════════════════════ */
.load-more-wrap { text-align: center; margin-top: 16px; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: 8px; color: var(--dim);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.load-more-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

/* ══════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════ */
.search-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 16px;
  align-items: start;
}
.search-main { min-width: 0; }
.search-page-header { margin-bottom: 16px; }
.search-page-header h1 {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  color: var(--text); letter-spacing: -.3px; margin-bottom: 4px;
}
.search-page-header h1 em { font-style: italic; color: var(--accent); }
.search-page-header p { font-size: 13px; color: var(--muted); }

.search-results-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.search-user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: all .15s;
}
.search-user-card:hover {
  border-color: var(--border2);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transform: translateX(3px);
}
.search-user-card img {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--border); flex-shrink: 0;
}
.search-user-card .u-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.search-user-card .u-handle { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.search-user-card .u-desc { font-size: 12px; color: var(--dim); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-user-card .u-stats { margin-left: auto; text-align: right; flex-shrink: 0; }
.search-user-card .u-stats span { font-family: var(--mono); font-size: 11px; color: var(--muted); display: block; }

/* ══════════════════════════════════════
   TRENDING PAGE
══════════════════════════════════════ */
.trending-layout {
  max-width: 1200px; margin: 0 auto; padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 16px;
  align-items: start;
}
.trending-main { min-width: 0; }
.trending-page-header { margin-bottom: 16px; }
.trending-page-header h1 {
  font-family: var(--serif); font-size: 30px; font-weight: 400;
  color: var(--text); letter-spacing: -.3px; margin-bottom: 4px;
}
.trending-page-header h1 em { font-style: italic; color: var(--accent); }

.trending-list { display: flex; flex-direction: column; gap: 6px; }
.trending-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: all .15s; gap: 12px;
}
.trending-item:hover {
  border-color: var(--accent-bdr); background: var(--accent-bg);
  transform: translateX(4px);
}
.trending-item-left { display: flex; align-items: center; gap: 14px; }
.trending-rank {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--muted); min-width: 24px;
}
.trending-item:nth-child(1) .trending-rank { color: var(--accent); }
.trending-item:nth-child(2) .trending-rank { color: #6b7280; }
.trending-item:nth-child(3) .trending-rank { color: #92400e; }
.trending-tag { font-size: 15px; font-weight: 600; color: var(--text); }
.trending-tag span { color: var(--accent); }
.trending-count {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: var(--surface2); padding: 3px 8px;
  border-radius: 5px; border: 1px solid var(--border); flex-shrink: 0;
}

/* ══════════════════════════════════════
   HASHTAG PAGE
══════════════════════════════════════ */
.hashtag-layout {
  max-width: 1200px; margin: 0 auto; padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 16px;
  align-items: start;
}
.hashtag-main { min-width: 0; }
.hashtag-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.hashtag-icon {
  width: 44px; height: 44px;
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-bdr);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}
.hashtag-title { font-family: var(--serif); font-size: 26px; color: var(--text); letter-spacing: -.3px; }
.hashtag-title span { color: var(--accent); font-style: italic; }
.hashtag-sidebar { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }

/* ══════════════════════════════════════
   FOLLOWING
══════════════════════════════════════ */
.following-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.following-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: all .15s;
}
.following-card:hover { border-color: var(--border2); background: var(--surface2); }
.following-card img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--border); flex-shrink: 0; }
.following-card .f-name { font-size: 13px; font-weight: 600; color: var(--text); }
.following-card .f-handle { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 1px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.main-footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-size: 13px; color: var(--dim); }
.footer-brand strong { color: var(--accent); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color .12s; }
.footer-links a:hover { color: var(--accent); }

/* ══════════════════════════════════════
   STATIC PAGES
══════════════════════════════════════ */
.static-layout { max-width: 680px; margin: 40px auto; padding: 0 24px; }
.static-layout h1 { font-family: var(--serif); font-size: 34px; font-weight: 400; color: var(--text); margin-bottom: 8px; }
.static-layout .lead { font-size: 15px; color: var(--text3); line-height: 1.7; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.static-layout h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); margin: 24px 0 8px; }
.static-layout p { font-size: 14px; color: var(--text3); line-height: 1.75; margin-bottom: 12px; }
.static-layout a { color: var(--accent); }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state i { font-size: 32px; color: var(--border2); display: block; margin-bottom: 14px; }
.empty-state p { font-size: 13px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --sidebar-w: 260px; }
}
@media (max-width: 960px) {
  .page-wrap { grid-template-columns: var(--nav-w) 1fr; }
  .right-sidebar { display: none; }
  .profile-layout { grid-template-columns: 260px 1fr; }
  .profile-ad-col { display: none; }
}
@media (max-width: 700px) {
  .page-wrap { grid-template-columns: 1fr; }
  .left-nav { display: none; }
  .search-layout, .trending-layout, .hashtag-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .profile-main { padding-top: 16px; }
  .main-header { padding: 0 12px; }
  .hero-wrap { padding: 24px 16px; }
  .following-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   HEADER — MOBİL OVERRIDE & YENİ LOGO
══════════════════════════════════════ */

/* Nav label metinleri — masaüstünde görünür */
.nav-label { display: inline; margin-left: 4px; }

/* 768px altında: search full-width ikinci satıra in, nav sadece ikon */
@media (max-width: 768px) {
  .main-header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px;
    gap: 8px;
  }

  /* Logo + Nav yan yana, ilk satır */
  .logo { order: 1; }
  .header-nav { order: 2; margin-left: auto; gap: 2px; }

  /* Search ikinci satırda, tam genişlik — varsayılan gizli */
  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    display: none;           /* mobilde gizle */
    margin: 0;
    flex: none;
  }

  /* JS ile .mobile-open eklenince göster */
  .header-search.mobile-open {
    display: flex;
  }

  /* Nav label metinleri mobilde gizle */
  .nav-label { display: none; }

  .header-nav-btn {
    padding: 7px 10px;
    font-size: 14px;
  }

  /* Search toggle butonunu nav'da göster */
  .search-toggle-btn { display: flex; }
}

/* 640px üstünde search her zaman görünür */
@media (min-width: 640px) {
  .header-search {
    display: flex !important;
    flex: 1;
    max-width: 460px;
  }
  .search-toggle-btn { display: none !important; }
  .nav-label { display: inline; }
}

/* Leaderboard ad — mobilde tam genişlik */
@media (max-width: 728px) {
  .ad-leaderboard {
    width: 100% !important;
    height: 60px !important;
    font-size: 9px;
  }
}

/* ── Logo mark — N harfi, siyah kare ── */
.logo-mark {
  border-radius: 9px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: box-shadow .15s;
  overflow: hidden;
}
.logo-mark:hover { box-shadow: 0 3px 10px rgba(0,0,0,.28); }
.logo-mark svg { width: 34px; height: 34px; display: block; }

/* ── Feed tabs aktif stil düzeltmesi ── */
.feed-tab.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Post grid override — feed listesi tek kolon ── */
.feed-list .post { border-radius: var(--radius); }
.feed-list .post + .post { margin-top: 0; }

/* ══════════════════════════════════════
   FEED TYPE HEADER CARD
══════════════════════════════════════ */
.feed-type-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.feed-type-icon {
  width: 42px; height: 42px;
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-bdr);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent); flex-shrink: 0;
}

.feed-type-title {
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2;
}
.feed-type-desc {
  font-size: 12px; color: var(--dim); margin-top: 2px;
}

.feed-type-tabs {
  display: flex; gap: 4px;
  margin-left: auto;
}
.feed-type-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--dim);
  border: 1px solid var(--border); background: var(--surface2);
  text-decoration: none; transition: all .12s;
}
.feed-type-tab:hover { border-color: var(--accent-bdr); color: var(--accent); background: var(--accent-bg); }
.feed-type-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.feed-type-tab i { font-size: 11px; }

@media (max-width: 600px) {
  .feed-type-tabs { margin-left: 0; width: 100%; }
  .feed-type-tab span { display: none; }
}

/* Static page main span 2 */
.page-wrap > main[style*="span 2"] {
  grid-column: 2 / span 2;
}
@media (max-width: 960px) {
  .page-wrap > main[style*="span 2"] { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════ */
.search-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  margin-bottom: 12px;
  text-align: center;
}

.search-hero-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  margin: 0 auto 16px;
}

.search-hero h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.search-hero h1 em { font-style: italic; color: var(--text); }

.search-hero-sub {
  font-size: 14px;
  color: var(--dim);
  max-width: 420px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

/* Tab switcher */
.search-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.search-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all .12s;
}
.search-tab:hover { color: var(--text); background: var(--surface); }
.search-tab.active { background: var(--accent); color: #fff; }
.search-tab i { font-size: 12px; }

/* Big search form */
.search-big-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.search-big-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border: 2px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.search-big-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
  background: var(--surface);
}

.search-big-prefix {
  padding: 0 6px 0 16px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--dim);
  flex-shrink: 0;
  line-height: 1;
}

.search-big-input-wrap input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  padding: 13px 14px 13px 4px;
}
.search-big-input-wrap input::placeholder { color: var(--muted); }

.search-big-form button {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, transform .1s;
  letter-spacing: .2px;
}
.search-big-form button:hover { background: var(--accent-h); }
.search-big-form button:active { transform: scale(.98); }

.search-hint {
  font-size: 12px;
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.search-hint i { font-size: 11px; }
.search-hint code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--surface3);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text2);
}

/* Results list */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.search-user-row:last-child { border-bottom: none; }
.search-user-row:hover { background: var(--surface2); }

.search-user-row > img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.sur-body { flex: 1; min-width: 0; }
.sur-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sur-handle {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.sur-desc {
  font-size: 12px; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
}
.sur-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.sur-meta span {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}
.sur-meta span i { font-size: 10px; }
.sur-arrow { color: var(--border2) !important; margin-top: 4px; }
.search-user-row:hover .sur-arrow { color: var(--dim) !important; }

/* Tag cloud */
.search-suggestions { margin-top: 4px; }
.tag-cloud {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud-item {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface2);
  text-decoration: none;
  transition: all .12s;
}
.tag-cloud-item:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ══════════════════════════════════════
   SEARCH PAGE — v2 overrides
══════════════════════════════════════ */

/* Hero top row: icon + title side by side */
.search-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}
.search-hero-top .search-hero-icon {
  margin: 0;
  flex-shrink: 0;
}
.search-hero { text-align: left; }
.search-hero h1 { font-size: 26px; margin-bottom: 4px; }
.search-hero-sub { margin: 0; }

/* Search big input: button INSIDE the input row */
.search-big-input-wrap {
  position: relative;
}
.search-big-input-wrap button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  font-size: 13px;
}
.search-big-input-wrap input {
  padding-right: 48px;
}
.search-big-form { align-items: flex-start; }

/* Tabs left-aligned */
.search-tabs { margin-bottom: 16px; }

/* Result header */
.search-result-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 8px;
}
.srh-left {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text2);
}
.srh-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 100px;
}

/* Tag cloud box */
.tag-cloud-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tag-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: var(--text2);
  background: var(--surface2);
  text-decoration: none;
  transition: all .12s;
}
.tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
/* ══════════════════════════════════════
   TAG EMPTY STATE
══════════════════════════════════════ */
.tag-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 48px;
}
.tag-empty-icon {
  width: 80px; height: 80px;
  background: var(--accent-bg);
  border: 2px solid var(--accent-bdr);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(232,93,38,.12);
}
.tag-empty-hash {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.tag-empty-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -.3px;
}
.tag-empty-title em { color: var(--accent); font-style: italic; }
.tag-empty-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 420px;
  margin: 0 0 28px;
}
.tag-empty-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.tag-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
}
.tag-empty-btn--primary {
  background: var(--accent);
  color: #fff;
}
.tag-empty-btn--primary:hover { opacity: .88; }
.tag-empty-btn--ghost {
  background: transparent;
  color: var(--text2);
  border: 1.5px solid var(--border2);
}
.tag-empty-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.tag-empty-suggestion p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.tag-empty-input {
  padding: 8px 14px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text);
  font-size: 13px;
  font-family: var(--mono);
  outline: none;
  transition: border-color .18s;
  min-width: 160px;
}
.tag-empty-input:focus { border-color: var(--accent); }
.tag-empty-search-btn {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity .18s;
}
.tag-empty-search-btn:hover { opacity: .88; }
