/* ==========================================================================
   duno theme (2026-11-02): VK-style layout, Badoo-inspired colour
   Neutral grey canvas, crisp white cards with thin borders, a deep plum-violet
   for everything clickable and a magenta accent kept for likes, hearts and badges.
   Compact rounded "pill" actions under posts.
   Loaded AFTER duno.css from header.php. To go back to the old look,
   remove the theme-cobalt.css <link> line in header.php.
   ========================================================================== */
:root {
  --bg: #f0eff3;
  --card: #ffffff;
  --elev: #ffffff;
  --ink: #1c1828;
  --ink-2: #353042;
  --muted: #736d80;
  --faint: #a19bad;
  --line: #e2dfe8;
  --line-2: #f1eff5;
  --hover: #f3f1f7;
  --press: #e9e5f0;
  --brand: #6327d9;
  --brand-600: #521cc0;
  --brand-50: #f2ecff;
  --brand-100: #e2d6ff;
  --brand-grad: linear-gradient(135deg, #6327d9 0%, #8a2fd6 100%);
  --hot: #e0177a;
  --hot-50: #fde8f2;
  --coral: #e0177a;
  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 16px;
  --shadow-xs: none;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 12px 32px -12px rgba(16, 24, 40, .20);
  --shadow-lg: 0 24px 60px -18px rgba(16, 24, 40, .30);
  --primary: var(--brand); --primary-dark: var(--brand-600);
}
[data-theme="dark"] {
  --bg: #141219;
  --card: #1d1a24;
  --elev: #25212e;
  --ink: #ece9f2;
  --ink-2: #cbc6d6;
  --muted: #958fa3;
  --faint: #6f6980;
  --line: #2e2939;
  --line-2: #24202d;
  --hover: #272231;
  --press: #312b3d;
  --brand: #a47bff;
  --brand-600: #b996ff;
  --brand-50: #261c3d;
  --brand-100: #33255a;
  --brand-grad: linear-gradient(135deg, #9a6dff 0%, #c06bf0 100%);
  --hot: #ff4fa3;
  --hot-50: #3a1830;
  --coral: #ff4fa3;
}

/* type: Golos Text — clean, slightly condensed, very readable at small sizes */
body { font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.003em; }
body { background: var(--bg) !important; }                 /* drop the purple ambient glow */
h1, h2, h3, .page-head h1 { letter-spacing: -.015em; }

/* surfaces: flat, crisp, bordered (no floating shadows) */
.card { border: 1px solid var(--line); box-shadow: none; }
.card:hover { box-shadow: none; }
.topbar { background: var(--card) !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(16,24,40,.02); }
.logo-mark { background: var(--brand) !important; border-radius: 10px; }

/* buttons: solid blue, a bit squarer = more "app", less "template" */
.btn { border-radius: 10px; }
.btn-primary { background: var(--brand) !important; box-shadow: none; }
.btn-primary:hover { background: var(--brand-600) !important; filter: none; box-shadow: none; transform: none; }
[data-theme="dark"] .btn-primary { color: #140d22 !important; }
.btn-ghost { background: var(--hover); border-color: transparent; }
.btn-ghost:hover { background: var(--press); }
.chip.on { background: var(--brand) !important; color: #fff; }
[data-theme="dark"] .chip.on { color: #140d22; }
.qp-open { background: var(--brand); border-radius: 10px; }
.qp-open:hover { background: var(--brand-600); transform: none; }

/* navigation */
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--brand); }
.rail-link { border-radius: 9px; }
.rail-link.active { background: var(--brand-50); color: var(--brand); }
.rail-net { background: none !important; }
.rail-cover { background: linear-gradient(120deg, #3a1677 0%, #6327d9 55%, #b02a9a 100%); }

/* posts: VK-style rounded pill actions with counts, left-aligned */
.post-av { background: none !important; padding: 0; }
.post-av .avatar { border: 0; }
.post-actions { gap: 8px; padding: 6px 16px 12px; margin: 0; justify-content: flex-start; flex-wrap: wrap; }
.post-actions > * { flex: 0 0 auto; }
.post-actions .btn-react, .post-actions .btn-comment, .post-actions .btn-repost, .post-actions .btn-share, .post-actions .btn-save {
  width: auto; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--hover); color: var(--muted); font-weight: 600; font-size: .86rem; gap: 6px;
}
.post-actions .btn-react:hover, .post-actions .btn-comment:hover, .post-actions .btn-repost:hover,
.post-actions .btn-share:hover, .post-actions .btn-save:hover { background: var(--press); color: var(--ink-2); }
.post-actions .btn-save { margin-left: auto; }
.post-actions .btn-save.active { color: var(--brand); background: var(--brand-50); }
.post-actions .act-n { color: var(--ink-2); font-weight: 700; margin-left: 0; }
.post-vote { background: var(--hover); border: 0; padding: 2px; height: 34px; }
.pv-btn { width: 30px; height: 30px; }
.pv-btn:hover { background: var(--card); }
.pv-up.on { color: var(--hot); background: var(--hot-50); }
.post-vote:has(.pv-up.on) { background: var(--hot-50); }
@media (max-width: 700px) {
  .post-actions { gap: 6px; padding: 4px 12px 10px; }
  .post-actions .btn-repost span, .post-actions .btn-share span, .post-actions .btn-save span { display: none; }
  .post-actions .btn-react, .post-actions .btn-comment, .post-actions .btn-repost, .post-actions .btn-share, .post-actions .btn-save { padding: 0 11px; }
}
.post-stats { padding: 0 16px 2px; }
.lvl-chip { background: var(--brand-50); color: var(--brand); border-radius: 6px; padding: 0 6px; }

/* comments: soft grey bubbles, blue names on hover */
.comment-bubble { background: var(--hover); border-radius: 14px; }
.comment-head .post-author:hover { color: var(--brand); }
.post-comments-preview { border-top: 1px solid var(--line-2); margin: 0; padding: 10px 16px 6px; }
.pc-more, .pc-prev, .pc-hide { color: var(--brand); }

/* sidebar widgets & small bits */
.side-card h3 { font-size: .98rem; }
.fb-card { background: var(--card); border-color: var(--line); }
.vote-pill { background: var(--brand-50); color: var(--brand); }
.meter i, .gs-card .meter i { background: var(--brand) !important; }
.streak { color: #f0590e; }
/* the magenta "emotional" accent: hearts, likes, counters, badges */
.btn-clike.active, .clike-static, .m-hot { color: var(--hot) !important; }
.bb-badge, .nav-badge, .badge-count, .notif-dot { background: var(--hot) !important; }
.sp-badge { background: var(--hot); }
.logo-mark { background: linear-gradient(135deg, #6327d9 0%, #a62bc4 100%) !important; }
.search-pop .sp-row:hover, .search-pop .sp-row.active { background: var(--brand-50); }
.top-search input { background: var(--hover); border-color: transparent; border-radius: 10px; }
.top-search input:focus { background: var(--card); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }

/* gradient heroes elsewhere: keep them, but in the new blue family */
.net-promo, .qa-ask-card, .jb-cta, .gr-hero, .gd-hero, .sl-choose-duno { background: linear-gradient(160deg, var(--brand-50), var(--card) 70%); }
