/*
Theme Name: Democratic Bharat Live
Theme URI: https://democraticbharatlive.com/
Author: Democratic Bharat Live
Author URI: https://democraticbharatlive.com/
Description: A modern Hindi news WordPress theme inspired by India TV layout with navy/red/gold branding, animated pulse ticker, live weather, horoscope, and category grids. Built on the Horizons design system.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: democratic-bharat-live
Tags: news, hindi, magazine, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* ==========================================================================
   Democratic Bharat Live — WordPress Theme Styles
   Palette: navy #0B1F3A | red #C4141C | gold #D9A404 | paper #F7F4EC
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #122a4d;
  --red: #c4141c;
  --gold: #d9a404;
  --paper: #f7f4ec;
  --paper-2: #fbf9f4;
  --ink: #1e2430;
  --muted-ink: #5b6472;
  --line: #e4dfd2;
  --reader-font-scale: 1;
}

/* ---------- Dark mode ---------- */
body.dbl-dark {
  --paper: #0f1420;
  --paper-2: #161c2b;
  --ink: #e8e6de;
  --muted-ink: #9aa1af;
  --line: #2a3244;
}
body.dbl-dark .dbl-header,
body.dbl-dark .dbl-footer { background: #060a13; }
body.dbl-dark .dbl-cat-thumb.fallback,
body.dbl-dark img { filter: brightness(0.92); }
body { transition: background 0.25s ease, color 0.25s ease; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans Devanagari", "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
}

.font-display, h1, h2, h3, h4, .entry-title, .section-title {
  font-family: "Tiro Devanagari Hindi", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.font-data, .data-mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.dbl-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.dbl-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.dbl-hamburger {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dbl-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.dbl-logo-badge {
  background: var(--paper);
  border-radius: 10px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(217,164,4,0.35), 0 2px 8px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.dbl-logo-badge img { height: 38px; width: auto; }
.dbl-logo-badge .dbl-logo-text {
  font-family: "Tiro Devanagari Hindi", Georgia, serif;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
}
.dbl-logo-badge .dbl-logo-text small { display: block; font-size: 9px; color: var(--red); font-weight: 600; letter-spacing: 0.5px; }

.dbl-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.dbl-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
}
.dbl-nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.dbl-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 3px; background: var(--red); border-radius: 2px;
}

.dbl-search-btn {
  background: transparent; border: 0; color: #fff; cursor: pointer; padding: 8px;
  display: flex; align-items: center;
}
.dbl-search-panel {
  display: none;
  background: var(--navy-2);
  padding: 16px;
}
.dbl-search-panel.open { display: block; }
.dbl-search-panel form { display: flex; max-width: 600px; margin: 0 auto; gap: 8px; }
.dbl-search-panel input[type="search"] {
  flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: #fff; font-size: 15px;
}
.dbl-search-panel button {
  background: var(--red); color: #fff; border: 0; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer;
}

/* Mobile drawer */
.dbl-drawer {
  position: fixed; inset: 0; z-index: 1100; display: none;
}
.dbl-drawer.open { display: block; }
.dbl-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.dbl-drawer-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 280px; max-width: 80vw;
  background: var(--navy); padding: 20px; overflow-y: auto;
}
.dbl-drawer-panel a {
  display: block; color: #fff; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 16px; font-weight: 600;
}
.dbl-drawer-panel a:hover { color: var(--gold); text-decoration: none; }
.dbl-drawer-close { background: transparent; border: 0; color: #fff; font-size: 24px; float: right; cursor: pointer; }

/* ---------- Pulse Strip (देश की नब्ज़) ---------- */
.dbl-pulse {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 3px solid var(--red);
  overflow: hidden;
}
.dbl-pulse-row { display: flex; align-items: center; height: 44px; }
.dbl-pulse-label {
  background: var(--red); color: #fff; font-weight: 700; font-size: 13px;
  padding: 0 14px; height: 100%; display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.5px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: dbl-blink 1.4s ease-in-out infinite; display: inline-block;
}
.dbl-ticker-viewport { flex: 1; overflow: hidden; position: relative; }
.dbl-ticker-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: dbl-ticker 95s linear infinite; will-change: transform;
}
.dbl-ticker-viewport:hover .dbl-ticker-track { animation-play-state: paused; }
.dbl-ticker-track span { padding: 0 22px; font-size: 14px; font-weight: 500; }
.dbl-ticker-track .sep { color: var(--gold); }

@keyframes dbl-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dbl-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Sections ---------- */
.dbl-section { padding: 28px 0; }
.dbl-section-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  border-bottom: 2px solid var(--line); padding-bottom: 8px;
}
.dbl-section-head h2 {
  margin: 0; font-size: 22px; color: var(--navy); position: relative; padding-left: 14px;
}
.dbl-section-head h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  background: var(--red); border-radius: 3px;
}
.dbl-section-head .more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--red); }

/* ---------- Category grid (ghamasan style text list) ---------- */
.dbl-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dbl-cat-col { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dbl-cat-col-head {
  background: var(--navy); color: #fff; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between;
}
.dbl-cat-col-head h3 { margin: 0; font-size: 17px; color: #fff; }
.dbl-cat-col-head a { color: var(--gold); font-size: 12px; font-weight: 600; }
.dbl-cat-list { list-style: none; margin: 0; padding: 0; }
.dbl-cat-list li {
  display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.dbl-cat-list li:last-child { border-bottom: 0; }
.dbl-cat-list li:hover { background: var(--paper-2); }
.dbl-cat-thumb {
  width: 90px; height: 64px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--navy);
}
.dbl-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dbl-cat-thumb.fallback { background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; font-size: 11px; }

/* Most Read column (8th grid slot) */
.dbl-cat-col-mostread .dbl-cat-col-head { background: var(--red); }
.dbl-mostread-rank-thumb { position: relative; }
.dbl-mostread-rank {
  position: absolute; top: 3px; left: 3px; background: var(--gold); color: var(--navy);
  font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 11px; line-height: 1;
  width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
}
.dbl-cat-body { flex: 1; min-width: 0; }
.dbl-cat-body h4 { margin: 0 0 4px; font-size: 15px; line-height: 1.35; color: var(--ink); font-family: "Noto Sans Devanagari", sans-serif; font-weight: 600; }
.dbl-cat-body h4 a { color: var(--ink); }
.dbl-cat-body h4 a:hover { color: var(--red); text-decoration: none; }
.dbl-cat-meta { font-size: 11px; color: var(--muted-ink); }

/* ---------- Generic loading / empty state ---------- */
.dbl-empty-state { text-align: center; color: var(--muted-ink); padding: 30px; font-size: 14px; }

/* ---------- Article summary (auto-generated) ---------- */
.dbl-summary {
  background: var(--paper-2); border-left: 4px solid var(--gold); border-radius: 6px;
  padding: 14px 18px; margin: 18px 0; max-width: 820px; margin-left: auto; margin-right: auto;
}
.dbl-summary h3 { margin: 0 0 6px; font-size: 14px; color: var(--navy); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dbl-summary h3::before { content: "📌"; font-size: 13px; }
.dbl-summary p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }

/* ---------- Author box (on single post) ---------- */
.dbl-author-box {
  display: flex; gap: 14px; align-items: flex-start; max-width: 820px; margin: 30px auto 0;
  padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.dbl-author-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dbl-author-label { font-size: 11px; text-transform: uppercase; color: var(--muted-ink); letter-spacing: 0.5px; }
.dbl-author-name { display: block; font-size: 16px; font-weight: 700; color: var(--navy); margin: 2px 0 6px; }
.dbl-author-name:hover { color: var(--red); }
.dbl-author-bio { margin: 0; font-size: 13px; color: var(--muted-ink); line-height: 1.5; }

/* ---------- Author archive header ---------- */
.dbl-author-header {
  display: flex; gap: 20px; align-items: center; padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.dbl-author-header .dbl-author-photo { width: 110px; height: 110px; }
.dbl-author-header-info h1 { margin: 0 0 8px; font-size: 24px; color: var(--navy); }
.dbl-author-header-bio { margin: 0 0 8px; font-size: 14px; color: var(--ink); line-height: 1.6; max-width: 640px; }
.dbl-author-header-count { font-size: 12px; color: var(--red); font-weight: 600; }

/* ---------- Horoscope ---------- */
.dbl-rashi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.dbl-rashi-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px; text-align: center;
}
.dbl-rashi-card .symbol { font-size: 26px; color: var(--gold); }
.dbl-rashi-card .name { font-size: 13px; font-weight: 700; color: var(--navy); margin: 4px 0; }
.dbl-rashi-card .pred { font-size: 11px; color: var(--muted-ink); line-height: 1.4; }

/* ---------- Featured / hero ---------- */
.dbl-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.dbl-hero-main { position: relative; border-radius: 12px; overflow: hidden; background: var(--navy); }
.dbl-hero-main img { width: 100%; height: 420px; object-fit: cover; }
.dbl-hero-main .dbl-hero-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px;
  background: linear-gradient(transparent, rgba(11,31,58,0.95)); color: #fff;
}
.dbl-hero-main .dbl-hero-cap h2 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.dbl-hero-main .dbl-hero-cap a { color: #fff; }
.dbl-hero-side { display: flex; flex-direction: column; gap: 12px; }
.dbl-hero-side-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.dbl-hero-side-item img { width: 100px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.dbl-hero-side-item h4 { margin: 0; font-size: 14px; line-height: 1.35; }
.dbl-hero-side-item h4 a { color: var(--ink); }

/* ---------- Article / single ---------- */
.dbl-article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; max-width: 820px; margin: 0 auto; box-shadow: 0 1px 3px rgba(11,31,58,0.06); }
.dbl-article .entry-title { font-size: 30px; color: var(--navy); margin: 0 0 12px; line-height: 1.25; }
.dbl-article .entry-meta { font-size: 13px; color: var(--muted-ink); margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.dbl-article .entry-thumb { border-radius: 10px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(11,31,58,0.12); }
.dbl-article .entry-thumb img { width: 100%; max-height: 460px; object-fit: cover; }
.dbl-article .entry-content { font-size: 16px; line-height: 1.8; }
.dbl-article .entry-content p { margin: 0 0 18px; }
.dbl-article .entry-content h2, .dbl-article .entry-content h3 { color: var(--navy); margin: 24px 0 12px; }
.dbl-article .entry-content img { border-radius: 8px; margin: 16px 0; }
.dbl-article .entry-content blockquote { border-left: 4px solid var(--red); margin: 18px 0; padding: 8px 18px; color: var(--muted-ink); font-style: italic; }

.dbl-cat-badge { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; margin-bottom: 10px; text-transform: uppercase; }

/* ---------- Archive / category page ---------- */
.dbl-archive-head { background: var(--navy); color: #fff; padding: 24px 0; margin-bottom: 20px; }
.dbl-archive-head h1 { color: #fff; margin: 0; font-size: 28px; }
.dbl-archive-head .crumb { font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.dbl-archive-list { display: flex; flex-direction: column; gap: 16px; }
.dbl-archive-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.dbl-archive-item img { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.dbl-archive-item .body { flex: 1; }
.dbl-archive-item h3 { margin: 0 0 6px; font-size: 18px; }
.dbl-archive-item h3 a { color: var(--navy); }
.dbl-archive-item .excerpt { font-size: 14px; color: var(--muted-ink); margin: 6px 0; }
.dbl-archive-item .meta { font-size: 12px; color: var(--muted-ink); }

/* ---------- Pagination ---------- */
.dbl-pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.dbl-pagination a, .dbl-pagination span {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; font-weight: 600; color: var(--navy);
}
.dbl-pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Search results ---------- */
.dbl-search-head { padding: 24px 0; }
.dbl-search-head h1 { font-size: 24px; color: var(--navy); margin: 0; }

/* ---------- Footer ---------- */
.dbl-footer { background: var(--navy); color: rgba(255,255,255,0.75); margin-top: 40px; }
.dbl-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dbl-footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; font-family: "Tiro Devanagari Hindi", serif; }
.dbl-footer a { color: rgba(255,255,255,0.75); font-size: 14px; display: block; padding: 4px 0; }
.dbl-footer a:hover { color: var(--gold); text-decoration: none; }
.dbl-footer .dbl-foot-brand { font-family: "Tiro Devanagari Hindi", serif; color: #fff; font-size: 20px; margin-bottom: 8px; }
.dbl-footer .tagline { color: var(--gold); font-size: 13px; margin-bottom: 12px; }
.dbl-footer .contact-line { font-size: 13px; margin: 4px 0; }
.dbl-social { display: flex; gap: 10px; margin-top: 12px; }
.dbl-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.dbl-social a:hover { background: var(--red); }
.dbl-social svg { width: 18px; height: 18px; fill: #fff; }
.dbl-footer-bottom { padding: 16px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---------- Page (static) ---------- */
.dbl-page { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; max-width: 820px; margin: 24px auto; }
.dbl-page h1 { color: var(--navy); font-size: 28px; margin: 0 0 18px; }
.dbl-page h2 { color: var(--navy); font-size: 20px; margin: 24px 0 10px; }
.dbl-page p, .dbl-page li { font-size: 15px; line-height: 1.7; }
.dbl-page ul { padding-left: 22px; }

/* ---------- Contact ---------- */
.dbl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1000px; margin: 24px auto; }
.dbl-contact-info { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.dbl-contact-info h3 { color: var(--navy); margin: 0 0 12px; }
.dbl-contact-info p { margin: 8px 0; font-size: 15px; }
.dbl-contact-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.dbl-contact-form label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; color: var(--navy); }
.dbl-contact-form input, .dbl-contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit;
}
.dbl-contact-form button {
  margin-top: 16px; background: var(--red); color: #fff; border: 0; padding: 12px 28px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 15px;
}
.dbl-contact-form button:hover { background: var(--navy); }

/* ---------- Sitemap ---------- */
.dbl-sitemap { max-width: 900px; margin: 24px auto; }
.dbl-sitemap-section { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.dbl-sitemap-section h3 { color: var(--navy); margin: 0 0 10px; font-size: 18px; }
.dbl-sitemap-section ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.dbl-sitemap-section li { padding: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dbl-nav { display: none; }
  .dbl-cat-grid { grid-template-columns: 1fr; }
  .dbl-hero { grid-template-columns: 1fr; }
  .dbl-hero-main img { height: 260px; }
  .dbl-rashi-grid { grid-template-columns: repeat(3, 1fr); }
  .dbl-footer-top { grid-template-columns: 1fr 1fr; }
  .dbl-contact-grid { grid-template-columns: 1fr; }
  .dbl-archive-item { flex-direction: column; }
  .dbl-archive-item img { width: 100%; height: 180px; }
}
@media (max-width: 560px) {
  .dbl-rashi-grid { grid-template-columns: repeat(2, 1fr); }
  .dbl-footer-top { grid-template-columns: 1fr; }
  .dbl-article { padding: 18px; }
  .dbl-article .entry-title { font-size: 22px; }
  .dbl-cat-thumb { width: 70px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .dbl-ticker-track, .live-dot { animation: none !important; }
}

/* ---------- Header icon buttons (dark mode / saved) ---------- */
.dbl-icon-btn {
  position: relative; background: transparent; border: 0; cursor: pointer;
  color: var(--ink); padding: 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: background 0.15s ease;
}
.dbl-icon-btn:hover { background: var(--paper-2); }
.dbl-saved-count {
  position: absolute; top: 2px; right: 2px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ---------- Saved articles drawer ---------- */
.dbl-saved-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.dbl-saved-drawer.open { visibility: visible; }
.dbl-saved-drawer .dbl-drawer-overlay { position: absolute; inset: 0; background: rgba(11,31,58,0.5); opacity: 0; transition: opacity 0.2s ease; }
.dbl-saved-drawer.open .dbl-drawer-overlay { opacity: 1; }
.dbl-saved-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 340px; max-width: 88vw;
  background: var(--paper); padding: 24px; overflow-y: auto; transform: translateX(100%);
  transition: transform 0.25s ease;
}
.dbl-saved-drawer.open .dbl-saved-panel { transform: translateX(0); }
.dbl-saved-panel h3 { color: var(--navy); margin: 10px 0 16px; }
.dbl-saved-empty { color: var(--muted-ink); font-size: 14px; }
.dbl-saved-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.dbl-saved-item a { color: var(--ink); font-size: 14px; font-weight: 600; flex: 1; }
.dbl-saved-item a:hover { color: var(--red); }
.dbl-saved-remove { background: none; border: 0; color: var(--muted-ink); cursor: pointer; font-size: 16px; line-height: 1; }
.dbl-saved-remove:hover { color: var(--red); }

/* ---------- Reading progress bar ---------- */
.dbl-progress-track { position: sticky; top: 0; z-index: 150; height: 3px; background: var(--line); }
.dbl-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 0.1s linear; }

/* ---------- Unified reading toolbar (font size + share + bookmark) ---------- */
.dbl-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 0 22px; padding: 10px 14px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap;
  position: sticky; top: 67px; z-index: 140;
}
body.dbl-dark .dbl-toolbar { background: #161c2b; }
.dbl-font-size-control { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-ink); }
.dbl-font-size-control button {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 700; font-size: 12px; color: var(--navy);
}
.dbl-font-size-control button:hover { background: var(--navy); color: #fff; }
.dbl-bookmark-btn {
  display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--navy); font-weight: 600;
  flex-shrink: 0;
}
.dbl-bookmark-btn:hover { border-color: var(--gold); }
.dbl-bookmark-btn.saved { background: var(--gold); color: var(--navy); border-color: var(--gold); }

#dbl-entry-content { font-size: calc(1em * var(--reader-font-scale)); }

/* ---------- Trending Now ---------- */
.dbl-trending-list { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dbl-trending-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.dbl-trending-item:last-child { border-bottom: 0; }
.dbl-trending-item:hover { background: var(--paper-2); }
.dbl-trending-rank {
  font-family: "IBM Plex Mono", monospace; font-size: 20px; font-weight: 700; color: var(--gold);
  min-width: 34px;
}
.dbl-trending-title { flex: 1; font-weight: 600; font-size: 14px; }
.dbl-trending-item:hover .dbl-trending-title { color: var(--red); }
.dbl-trending-views { font-size: 12px; color: var(--muted-ink); font-family: "IBM Plex Mono", monospace; }

.dbl-reading-time, .dbl-view-count { color: var(--muted-ink); }

/* ---------- Share icons (inside unified toolbar) ---------- */
.dbl-share-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dbl-share-label { font-size: 12px; color: var(--muted-ink); font-weight: 600; margin-right: 2px; }
.dbl-share-btn {
  display: inline-flex; align-items: center; gap: 6px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  justify-content: center; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none; position: relative;
}
.dbl-share-btn:hover { transform: translateY(-2px); text-decoration: none; }
.dbl-share-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.dbl-share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.dbl-share-twitter:hover { background: #000; color: #fff; border-color: #000; }
.dbl-share-copy.copied { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.dbl-share-copy::after {
  content: "लिंक कॉपी हो गया ✓"; position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px); background: var(--navy); color: #fff; font-size: 11px;
  font-weight: 600; white-space: nowrap; padding: 5px 10px; border-radius: 6px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none;
}
.dbl-share-copy.copied::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- Breadcrumbs ---------- */
.dbl-breadcrumbs { padding: 12px 0; font-size: 12.5px; }
.dbl-breadcrumbs .container { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dbl-breadcrumbs a { color: var(--muted-ink); font-weight: 500; }
.dbl-breadcrumbs a:hover { color: var(--red); text-decoration: none; }
.dbl-breadcrumbs .sep { color: var(--line); }
.dbl-breadcrumbs .current { color: var(--navy); font-weight: 600; max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dbl-dark .dbl-breadcrumbs .current { color: var(--ink); }

/* ---------- Back to top ---------- */
.dbl-back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 2px solid var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 900;
}
.dbl-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.dbl-back-to-top:hover { background: var(--red); }
@media (max-width: 640px) {
  .dbl-back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

/* ---------- Single post two-column layout ---------- */
.dbl-single-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start;
  padding: 30px 16px;
}
.dbl-single-main { min-width: 0; }
.dbl-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 76px; }
@media (max-width: 960px) {
  .dbl-single-layout { grid-template-columns: 1fr; }
  .dbl-sidebar { position: static; }
}

.dbl-side-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dbl-side-card-head { background: var(--navy); color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.dbl-side-card-head h3 { margin: 0; font-size: 15px; color: #fff; display: flex; align-items: center; gap: 6px; }

.dbl-side-mostread { list-style: none; margin: 0; padding: 8px 0; }
.dbl-side-mostread li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.dbl-side-mostread li:last-child { border-bottom: 0; }
.dbl-side-rank { font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 15px; color: var(--gold); flex-shrink: 0; }
.dbl-side-mostread a { color: var(--ink); font-size: 13.5px; line-height: 1.45; font-weight: 500; }
.dbl-side-mostread a:hover { color: var(--red); text-decoration: none; }

.dbl-side-mini-weather { padding: 12px 16px; font-size: 13px; color: var(--muted-ink); font-family: "IBM Plex Mono", monospace; }
.dbl-side-mini-pulse .tradingview-widget-container { min-height: 44px; }

.dbl-side-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.dbl-side-cat-chips a {
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--navy); background: var(--paper-2);
}
.dbl-side-cat-chips a:hover { background: var(--navy); color: #fff; text-decoration: none; border-color: var(--navy); }

.dbl-side-follow { padding-bottom: 16px; }
.dbl-side-follow p { padding: 12px 16px 4px; margin: 0; font-size: 13px; color: var(--muted-ink); }
.dbl-side-follow .dbl-social { padding: 4px 16px 16px; margin-top: 0; }
.dbl-side-follow .dbl-social a { background: var(--paper-2); border: 1px solid var(--line); }
.dbl-side-follow .dbl-social a:hover { background: var(--red); border-color: var(--red); }
.dbl-side-follow .dbl-social svg { fill: var(--navy); }
.dbl-side-follow .dbl-social a:hover svg { fill: #fff; }
