/*
Theme Name: DailyTalkz
Theme URI: https://dailytalkz.com
Author: DailyTalkz
Description: Custom Reddit-style theme for DailyTalkz
Version: 4.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Safety net: wpDiscuz plugin still injects its own broken comment widget
   below our custom one on single posts. The real fix is deactivating the
   wpDiscuz plugin in WP Admin — our theme has its own full comment system.
   This just hides any leftover markup in case it's still active. */
#wpdcom, .wpdiscuz-comment-form, #wpdiscuz-comment-form-popup, .wc_before_comment_wrapper, .wc_comment_form_wrapper { display: none !important; }

:root {
  --orange: #ff4500;
  --blue: #ff4500;
  --blue-light: #ffe8dc;
  --bg: #ffffff;
  --white: #ffffff;
  --border: #e7e5df;
  --text: #23272b;
  --muted: #767a72;
  --hover-bg: #f1f0ec;
  --header-h: 80px;
  --sidebar-w: 270px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color .15s ease; }
button { cursor: pointer; font-family: var(--font); transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
img { max-width: 100%; }

/* Gentle fade-in so pages feel like they "arrive" instead of popping in instantly */
@keyframes dtFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.dt-main-wrapper, .single-wrap, .cat-body, .dt-cp-wrap, .dt-cm-wrap, .dt-pr-wrap { animation: dtFadeIn .28s ease; }
.dt-post, .dt-pr-card { animation: dtFadeIn .25s ease both; transition: box-shadow .15s ease, transform .15s ease; }
.dt-pr-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.dt-post-img { transition: opacity .2s ease; }

/* ===== HEADER ===== */
.dt-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  overflow: hidden;
}

/* 1. Logo */
.dt-logo { flex-shrink: 0; min-width: 112px; display: flex; align-items: center; text-decoration: none; }
.dt-logo img { height: 112px; width: 112px; max-height: calc(var(--header-h) - 12px); display: block; object-fit: contain; border-radius: 6px; }
.dt-logo-text { font-size: 18px; font-weight: 900; font-style: italic; letter-spacing: -1px; color: #2b2b2b; }
.dt-logo-text span { color: var(--blue); }

/* 2. Search bar — center mein, proper flex grow */
.dt-search {
  height: 36px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--orange);
  border-radius: 20px;
  padding: 0 6px 0 10px;
  background: var(--white);
  gap: 8px;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  margin: 0 auto;
  justify-self: center;
}
.dt-snoo { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--orange); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dt-snoo svg { width: 20px; height: 20px; }
.dt-search input { flex: 1; border: none; outline: none; font-size: 14px; color: var(--text); background: transparent; min-width: 0; }
.dt-search input::placeholder { color: var(--muted); }
.dt-ask-btn { display: flex; align-items: center; gap: 4px; padding: 0 10px; height: 28px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); color: var(--orange); font-size: 13px; font-weight: 600; flex-shrink: 0; }

/* 3. Sign Up + Log In — right corner mein */
.dt-nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; justify-self: end; }
.dt-btn-outline { height: 32px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--blue); background: transparent; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dt-logout-icon { display: none; }
.dt-btn-outline:hover { background: var(--blue-light); }
.dt-btn-solid { height: 32px; padding: 0 14px; border-radius: 20px; border: none; background: var(--orange); font-size: 13px; font-weight: 700; color: white; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.dt-btn-solid:hover { background: #cc3700; }
.dt-create-btn { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 20px; border: 1.5px solid var(--border); background: transparent; font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; }
.dt-user-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.dt-user-avatar { width: 26px; height: 26px; border-radius: 50%; }
.dt-dots-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dt-post-dots-wrap { position: relative; margin-left: auto; }
.dt-post-menu {
  display: none; position: absolute; top: 26px; right: 0; z-index: 500;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15); min-width: 190px; padding: 6px; overflow: hidden;
}
.dt-post-menu.show { display: block; }
.dt-post-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--text); background: none; border: none; text-align: left;
}
.dt-post-menu button:hover { background: var(--hover-bg); }
.dt-post-menu button svg { flex-shrink: 0; color: var(--muted); }
.dt-post-menu button.is-on svg { color: var(--orange); }
.dt-post-menu button.is-on .dt-post-menu-label { color: var(--orange); }
.post-content p { margin-bottom: 10px; line-height: 1.6; }
.post-content ul { margin: 10px 0 10px 22px; }
.post-content li { margin-bottom: 4px; line-height: 1.5; }
.post-content blockquote { border-left: 3px solid var(--border); padding: 2px 0 2px 14px; margin: 10px 0; color: var(--muted); }
.post-content strong { font-weight: 800; color: var(--text); }
.post-content em { font-style: italic; }
.post-content del { text-decoration: line-through; }
.post-content a { color: var(--orange); text-decoration: underline; }
.dt-dots-wrap { position: relative; }
.dt-dots-menu {
  display: none; position: absolute; top: 42px; right: 0; z-index: 10001;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15); min-width: 220px; padding: 6px; overflow: hidden;
}
.dt-dots-menu.show { display: block; }
.dt-dots-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.dt-dots-item:hover { background: var(--hover-bg); }
.dt-dots-item svg { flex-shrink: 0; color: var(--muted); }
.dt-dots-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* ===== BODY ===== */
/* 4. Header aur neeche ka gap zero */
.dt-body {
  margin-top: var(--header-h);
  display: flex;
  position: relative;
  min-height: calc(100vh - var(--header-h));
  width: 100%;
  overflow-x: hidden;
}

/* ===== HAMBURGER ===== */
.dt-ham { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: none; align-items: center; justify-content: center; position: absolute; left: calc(var(--sidebar-w) - 17px); top: 10px; z-index: 10; }

/* ===== LEFT SIDEBAR ===== */
.dt-sidebar-left { width: var(--sidebar-w); flex-shrink: 0; background: var(--white); border-right: 1px solid var(--border); padding: 8px 0; overflow-y: auto; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); }
.dt-sidebar-left::-webkit-scrollbar { width: 4px; }
.dt-sidebar-left::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.dt-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text); border-radius: 4px; margin: 1px 8px; text-decoration: none; }
.dt-nav-item:hover, .dt-nav-item.active { background: var(--hover-bg); }
.dt-nav-item svg { flex-shrink: 0; }
.dt-nav-sm { font-size: 13px; color: var(--muted); }
.dt-sb-section { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 10px 16px 4px; letter-spacing: 0.5px; display: flex; justify-content: space-between; align-items: center; }
.dt-sb-hr { height: 1px; background: var(--border); margin: 6px 0; }
.dt-cat-av { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: white; }
.dt-star-icon { margin-left: auto; opacity: 0; }
.dt-comm-item:hover .dt-star-icon { opacity: 1; }

/* ===== MAIN WRAPPER ===== */
/* 5. Post aur sidebars ka gap kam */
.dt-main-wrapper { flex: 1; display: flex; min-width: 0; padding-left: 20px; }
.dt-feed { flex: 1; min-width: 0; max-width: 740px; padding: 10px 8px; }

/* ===== SORT BAR ===== */
.dt-sort-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }

.dt-story-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.dt-story-row::-webkit-scrollbar { display: none; }
.dt-story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; width: 60px; text-decoration: none; }
.dt-story-ring { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border); padding: 2px; box-sizing: border-box; display: flex; position: relative; }
.dt-story-ring.joined { border-color: #ff4500; }
.dt-story-av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }
.dt-story-label { font-size: 11px; color: #767a72; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
.dt-sort-dd { display: flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; background: var(--white); }
.dt-sort-dd:hover { background: var(--hover-bg); }

/* ===== POST CARD ===== */
.dt-post { background: var(--white); border: none; border-bottom: 1px solid var(--border); border-radius: 8px; margin-bottom: 4px; padding: 16px 12px; transition: background .15s ease; }
.dt-post:hover { background: #f6f7f5; cursor: pointer; }
.dt-post-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; position: relative; }
.dt-post-av { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: white; }
.dt-post-sub { font-weight: 700; color: var(--text); font-size: 13px; }
.dt-post-sub:hover { text-decoration: underline; }
.dt-post-join { height: 26px; padding: 0 14px; border-radius: 20px; border: none; background: var(--blue); color: white; font-size: 12px; font-weight: 700; margin-left: auto; cursor: pointer; }
.dt-post-join.joined { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); }
.dt-post-join.joined:hover { background: var(--blue-light); }
.dt-post-dots { background: transparent; border: none; color: var(--muted); padding: 0 2px; margin-left: 4px; }
.dt-post-title { font-size: 18px; font-weight: 500; color: var(--text); line-height: 1.3; margin-bottom: 8px; display: block; }
.dt-flair { display: inline-block; background: var(--blue-light); color: var(--orange); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin-bottom: 6px; }
.dt-post-excerpt { display: block; font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 10px; }
.dt-post-img { width: 100%; max-height: 512px; object-fit: contain; background: #f0f0f0; border-radius: 8px; margin-bottom: 8px; display: block; }
.dt-gallery { position: relative; margin-bottom: 8px; }
.dt-gallery .dt-post-img { margin-bottom: 0; }
.dt-gallery-prev, .dt-gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
}
.dt-gallery-prev:hover, .dt-gallery-next:hover { background: rgba(0,0,0,.7); }
.dt-gallery-prev { left: 10px; }
.dt-gallery-next { right: 10px; }
.dt-gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 5; }
.dt-gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.dt-gallery-dot.active { background: #fff; }



/* ===== ACTION BAR ===== */
.dt-post-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 6. Vote pill — upvote/downvote functional */
.dt-vote-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  background: #f0f2f5; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--text);
}
.dt-vote-pill .up, .dt-vote-pill .dn {
  color: var(--muted); display: flex; align-items: center;
  background: none; border: none; cursor: pointer; padding: 0;
}
.dt-vote-pill .up:hover { color: var(--orange); }
.dt-vote-pill .dn:hover { color: #6e6e6e; }
.dt-vote-pill .vcount { min-width: 20px; text-align: center; font-size: 13px; font-weight: 700; }
.dt-act-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 20px; background: #f0f2f5; border: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.dt-act-btn:hover { background: #e2e4e8; color: var(--text); }
.dt-whatsapp-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #e9f9ef; border: none; cursor: pointer; color: #1fa855; }
.dt-whatsapp-btn:hover { background: #d5f2e0; }

/* ===== RIGHT SIDEBAR ===== */
.dt-sidebar-right { width: 300px; flex-shrink: 0; padding: 10px 10px 10px 0; }
.dt-widget { background: var(--white); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
.dt-widget-hdr { padding: 10px 12px; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.dt-widget-hdr-row { padding: 10px 12px; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.dt-widget-clear { font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: none; text-transform: none; letter-spacing: 0; }
.dt-recent-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.dt-recent-row:last-child { border-bottom: none; }
.dt-recent-row:hover { background: #f8f9fa; }
.dt-recent-left { flex: 1; min-width: 0; }
.dt-recent-meta { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.dt-recent-av { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 700; color: #fff; flex-shrink: 0; }
.dt-recent-sub { font-weight: 700; color: var(--text); font-size: 11px; }
.dt-recent-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.dt-recent-stats { font-size: 12px; color: var(--muted); }
.dt-recent-thumb { width: 70px; height: 70px; border-radius: 4px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--border); }
.dt-comm-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
.dt-comm-row:last-of-type { border-bottom: none; }
.dt-comm-row:hover { background: #f8f9fa; }
.dt-comm-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.dt-comm-info { display: flex; flex-direction: column; gap: 2px; }
.dt-comm-name { font-size: 14px; font-weight: 500; color: var(--text); }
.dt-comm-mem { font-size: 12px; color: var(--muted); }
.dt-see-more { display: block; width: 100%; text-align: left; padding: 10px 12px; font-size: 14px; color: var(--blue); font-weight: 700; text-decoration: none; background: none; border: none; cursor: pointer; font-family: var(--font); }
.dt-see-more:hover { background: #f8f9fa; }
.dt-sb-footer-links { padding: 8px 4px; font-size: 12px; color: var(--muted); line-height: 2.2; }
.dt-sb-footer-links a { color: var(--muted); text-decoration: none; margin-right: 8px; }
.dt-sb-footer-links a:hover { text-decoration: underline; }
.dt-sb-footer-links p { margin-top: 4px; font-size: 11px; }

/* ===== PAGINATION ===== */
.dt-pagination { display: flex; justify-content: center; gap: 6px; padding: 20px 0; flex-wrap: wrap; }
.dt-pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; background: var(--white); }
.dt-pagination .page-numbers:hover { background: var(--hover-bg); }
.dt-pagination .page-numbers.current { background: var(--orange); color: white; border-color: var(--orange); }
.dt-pagination .page-numbers.prev, .dt-pagination .page-numbers.next { width: auto; padding: 0 14px; border-radius: 20px; }

/* ===== FOOTER ===== */
.dt-footer { background: var(--orange); padding: 32px 20px 24px; margin-top: 20px; }
.dt-footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.dt-footer-brand { font-size: 20px; font-weight: 900; font-style: italic; color: #fff; margin-bottom: 16px; }
.dt-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 16px; }
.dt-footer-links a { color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; opacity: .92; }
.dt-footer-links a:hover { text-decoration: underline; opacity: 1; }
.dt-footer-copy { color: rgba(255,255,255,.85); font-size: 12px; margin: 0; }

/* ===== LOGIN / REGISTER FORMS (Theme My Login) ===== */
.login, #loginform, #registerform { max-width: 380px; margin: 0 auto; }
.dt-post p { margin-bottom: 16px; }
.dt-post label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.dt-post input[type="text"],
.dt-post input[type="email"],
.dt-post input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #f6f7f8;
  transition: border-color .15s ease;
}
.dt-post input[type="text"]:focus,
.dt-post input[type="email"]:focus,
.dt-post input[type="password"]:focus {
  border-color: var(--orange);
  background: var(--white);
}
.dt-post p.forgetmenot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dt-post p.forgetmenot label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.dt-post p.forgetmenot input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--orange); }
.dt-post input[type="submit"],
.dt-post #wp-submit,
.dt-post #wp-submit-register {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.dt-post input[type="submit"]:hover { background: #cc3700; }
.dt-post ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dt-post ul li { font-size: 13px; }
.dt-post ul li a { color: var(--orange); font-weight: 600; }
.dt-post ul li a:hover { text-decoration: underline; }
.dt-post p[style*="hint"], .dt-post p:has(+ p.submit) { font-size: 12px; color: var(--muted); }

/* ===== SMOOTH TRANSITIONS / POLISH ===== */
.dt-nav-item, .dt-btn-outline, .dt-btn-solid, .dt-create-btn, .dt-user-btn,
.dt-act-btn, .dt-vote-pill, .dt-sort-dd, .dt-post, .dt-post-join,
.dt-comm-row, .dt-recent-row, .dt-see-more, .dt-pagination .page-numbers,
.dt-ham, .login-btn {
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.dt-vote-pill .up, .dt-vote-pill .dn { transition: color .12s ease, transform .1s ease; }
.dt-vote-pill .up:active, .dt-vote-pill .dn:active { transform: scale(1.25); }
.dt-btn-solid:active, .dt-btn-outline:active, .dt-act-btn:active { transform: scale(.97); }

/* ===== MOBILE OVERLAY (sidebar drawer) ===== */
.dt-overlay {
  position: fixed; inset: var(--header-h) 0 0 0; background: rgba(0,0,0,.45);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.dt-overlay.show { opacity: 1; visibility: visible; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) { .dt-sidebar-right { display: none; } }

@media (max-width: 900px) {
  /* Header: shrink search, hide Ask text, compact buttons */
  .dt-header { padding: 0 10px; gap: 8px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .dt-logo { min-width: 0; }
  .dt-logo img { height: 92px; width: 92px; max-height: 92px; }
  .dt-logo-text { font-size: 15px; }
  .dt-search { max-width: none; height: 36px; padding: 0 4px 0 8px; min-width: 0; }
  .dt-ask-btn span, .dt-ask-btn { display: none; }
  .dt-search input { font-size: 13px; min-width: 0; }
  .dt-create-btn span, .dt-user-btn span { display: none; }
  .dt-create-btn, .dt-user-btn { padding: 0 8px; }
  .dt-btn-outline, .dt-btn-solid { padding: 0 10px; font-size: 12px; flex-shrink: 0; }
  .dt-nav-right { gap: 4px; flex-shrink: 0; }
  .dt-signup-btn, .dt-dots-wrap { display: none !important; }
}

@media (max-width: 768px) {
  .dt-main-wrapper { padding-left: 0; }

  .dt-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Sidebar becomes a slide-in drawer */
  .dt-sidebar-left {
    display: block !important;
    position: fixed; top: var(--header-h); left: 0; bottom: 0;
    width: 80%; max-width: 300px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 9999;
    box-shadow: 2px 0 10px rgba(0,0,0,.1);
  }
  .dt-sidebar-left.open { transform: translateX(0); }

  /* Hamburger: visible, fixed inside header */
  .dt-ham {
    display: flex !important;
    position: fixed; left: 8px; top: 23px;
    width: 34px; height: 34px;
    z-index: 10000;
  }
  /* shift header content so logo doesn't collide with hamburger */
  .dt-header { padding-left: 50px; }

  .dt-feed { padding: 8px 6px; max-width: 100%; }
}

@media (max-width: 480px) {
  :root { --header-h: 86px; }
  .dt-logo-text { font-size: 13px; }
  .dt-search input::placeholder { font-size: 12px; }
  .dt-post-title { font-size: 16px; }
  .dt-header { gap: 6px; padding: 0 6px 0 46px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .dt-logo { min-width: 0; }
  .dt-logo img { height: 60px; width: 60px; max-height: 60px; }

  .dt-search { max-width: 120px; height: 34px; padding: 0 6px; }
  .dt-search input { font-size: 12px; }
  .dt-ask-btn { display: none; }

  .dt-create-btn { padding: 0; width: 28px; height: 28px; justify-content: center; border-radius: 50%; }
  .dt-create-btn span { display: none; }
  .dt-user-btn { padding: 0; border: none; }
  .dt-user-btn span { display: none; }
  .dt-user-avatar { width: 28px; height: 28px; }
  .dt-btn-outline, .dt-btn-solid { padding: 0 8px; font-size: 11px; }
  .dt-nav-right { gap: 3px; }
  .dt-ham { top: 21px; }
}

/* ===== VOTE BUTTON ACTIVE STATES (Reddit style) ===== */
.dt-vote-pill .up.voted { color: #ff4500 !important; }
.dt-vote-pill .dn.voted { color: #7193ff !important; }
.dt-vote-pill.upvoted { background: #fff0eb !important; }
.dt-vote-pill.downvoted { background: #eef0ff !important; }
.dt-body { margin-top: var(--header-h) !important; padding-top: 0 !important; }
.dt-main-wrapper { padding-top: 0 !important; }
.dt-feed { padding-top: 10px !important; }

/* Sort bar row jo header ke neeche grey mein dikh raha hai */
.dt-sort-row {
  background: var(--bg);
  padding: 8px 0 0 0;
  margin: 0;
}

/* Koi bhi element jo header ke baad extra space add kar raha ho */
.dt-body > * { margin-top: 0 !important; }

/* ===== THREE COLUMN FIXED SCROLL (DESKTOP ONLY — mobile drawer needs position:fixed, see @media 768px above) ===== */
@media (min-width: 769px) {
  html { height: 100%; }
  body { height: 100%; overflow: hidden; margin: 0; }
  .dt-body { height: calc(100vh - var(--header-h)); overflow: hidden; margin-top: var(--header-h); }
  .dt-sidebar-left { overflow-y: auto; height: 100%; position: relative; top: 0; }
  .dt-main-wrapper { overflow: hidden; height: 100%; display: flex; }
  .dt-feed { overflow-y: auto; height: 100%; flex: 1; min-width: 0; scrollbar-width: none; }
  .dt-feed::-webkit-scrollbar { display: none; }
  .dt-sidebar-right { overflow-y: auto; height: 100%; position: relative; top: 0; scrollbar-width: none; }
  .dt-sidebar-right::-webkit-scrollbar { width: 6px; background: transparent; }
  .dt-sidebar-right::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
  .dt-sidebar-right:hover { scrollbar-width: thin; }
  .dt-sidebar-right:hover::-webkit-scrollbar-thumb { background: #d1d1d1; }
}
/* ===== MOBILE FIX V4.1 ===== */
@media (max-width: 768px){

html,
body{
    height:auto !important;
    overflow:auto !important;
}

.dt-body{
    height:auto !important;
    min-height:calc(100vh - var(--header-h));
    overflow:visible !important;
}

.dt-main-wrapper{
    height:auto !important;
    overflow:visible !important;
    display:block !important;
}

.dt-feed{
    height:auto !important;
    overflow:visible !important;
}

.dt-sidebar-right{
    display:none !important;
}

}
/* ===== MOBILE HOTFIX V4.1 ===== */
@media (max-width:768px){

body{
    overflow:auto !important;
    height:auto !important;
}

.dt-body{
    display:block !important;
    height:auto !important;
    overflow:visible !important;
}

.dt-main-wrapper{
    display:block !important;
    height:auto !important;
    overflow:visible !important;
}

.dt-feed{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    overflow:visible !important;
}

.dt-sidebar-right{
    display:none !important;
}

}

/* ===== BLOG (Newsroom-style) ===== */
.dt-blog-hero {
  background: var(--orange);
  border-radius: 12px;
  width: 100%;
  padding: 72px 40px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}
.dt-blog-hero h1 {
  color: #1a1a1a;
  font-size: 48px;
  font-weight: 900;
  margin: 0;
}
.dt-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.dt-blog-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.dt-blog-pill:hover { border-color: var(--orange); }
.dt-blog-pill.active { background: var(--text); border-color: var(--text); color: #fff; }
.dt-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}
.dt-blog-card { text-decoration: none; color: inherit; display: block; }
.dt-blog-card-img {
  position: relative;
  border-radius: 12px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.dt-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dt-blog-card-mark { font-size: 48px; font-weight: 900; color: rgba(255,255,255,.5); }
.dt-blog-card-tag {
  position: absolute; left: 12px; bottom: 12px;
  background: #fff; color: var(--text);
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 14px;
}
.dt-blog-card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.35; }
.dt-blog-card-date { font-size: 13px; color: var(--muted); }

@media (max-width: 700px) {
  .dt-blog-hero { padding: 32px 20px; }
  .dt-blog-hero h1 { font-size: 28px; }
  .dt-blog-grid { grid-template-columns: 1fr; }
}

/* ===== BLOG PAGES: full-width editorial layout, no community sidebars ===== */
body.dt-blog-page .dt-sidebar-left,
body.dt-blog-page .dt-ham,
body.dt-blog-page .dt-overlay {
  display: none !important;
}
body.dt-blog-page .dt-main-wrapper {
  padding-left: 0 !important;
}
body.dt-blog-page .dt-feed,
body.dt-blog-page .dt-blog-feed {
  max-width: 1100px !important;
  margin: 0 auto !important;
  float: none !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
}
body.dt-blog-page .dt-body {
  display: block !important;
}

/* ===== BLOG ARTICLE (single post) ===== */
.dt-blog-article-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 30px 60px; }
.dt-blog-article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-decoration: none; margin-bottom: 20px;
}
.dt-blog-article-back:hover { color: var(--orange); }

.dt-blog-article-hero {
  width: 100%;
  aspect-ratio: 15/4;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--hover-bg);
}
.dt-blog-article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dt-blog-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }

.dt-blog-article-tag {
  display: inline-block; background: var(--blue-light); color: var(--orange);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 14px;
  margin-bottom: 14px;
}
.dt-blog-article h1 {
  font-size: 34px; font-weight: 900; line-height: 1.25; margin-bottom: 10px;
}
.dt-blog-article-meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.dt-blog-article-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.dt-blog-article-body p { margin-bottom: 1.3em; }
.dt-blog-article-body h2 { font-size: 23px; font-weight: 800; margin: 1.7em 0 .6em; }
.dt-blog-article-body h3 { font-size: 19px; font-weight: 700; margin: 1.5em 0 .5em; }
.dt-blog-article-body a { color: var(--orange); font-weight: 600; text-decoration: underline; }
.dt-blog-article-body img { max-width: 100%; border-radius: 8px; }
.dt-blog-article-body ul, .dt-blog-article-body ol { margin: 0 0 1.3em 1.5em; }
.dt-blog-article-body li { margin-bottom: .5em; }

.dt-blog-related {
  border-top: 3px solid var(--orange);
  padding-top: 16px;
  position: sticky;
  top: 20px;
}
.dt-blog-related-hdr { font-size: 16px; font-weight: 800; color: var(--orange); margin-bottom: 14px; }
.dt-blog-related-item {
  display: block; font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: none; line-height: 1.4; margin-bottom: 18px;
}
.dt-blog-related-item:hover { color: var(--orange); }
.dt-blog-related-item.is-current { color: var(--muted); font-weight: 700; pointer-events: none; }

@media (max-width: 800px) {
  .dt-blog-article-grid { grid-template-columns: 1fr; }
  .dt-blog-related { border-top: 1px solid var(--border); position: static; margin-top: 20px; }
  .dt-blog-article-hero { aspect-ratio: 16/10; }
  .dt-blog-article h1 { font-size: 24px; }
  .dt-blog-article-wrap { padding: 20px 16px 40px; }
}

/* ===== BLOG PAGES: normal document scroll, not the fixed 3-column app shell ===== */
body.dt-blog-page,
body.dt-blog-page html {
  height: auto !important;
  overflow: visible !important;
}
body.dt-blog-page .dt-body {
  height: auto !important;
  overflow: visible !important;
}
body.dt-blog-page .dt-main-wrapper {
  overflow: visible !important;
  height: auto !important;
  display: block !important;
}
body.dt-blog-page .dt-feed,
body.dt-blog-page .dt-blog-article-wrap {
  overflow: visible !important;
  height: auto !important;
}

/* ===== Feed-card video preview (homepage/category/profile) ===== */
.dt-post-video-wrap {
  position: relative; display: block; width: 100%;
  max-height: 400px; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 6px; margin-bottom: 8px; background: #000;
}
.dt-post-video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-post-video-placeholder { background: linear-gradient(135deg, #23272b, #444); }
.dt-post-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; padding-left: 3px;
}

/* ===== Custom Login/Auth page ===== */
body.dt-auth-page .dt-sidebar-left, body.dt-auth-page .dt-ham, body.dt-auth-page .dt-overlay { display: none !important; }
body.dt-auth-page .dt-main-wrapper { padding-left: 0 !important; }
body.dt-auth-page,
body.dt-auth-page html { height: auto !important; overflow: visible !important; }
body.dt-auth-page .dt-body,
body.dt-auth-page .dt-main-wrapper,
body.dt-auth-page .dt-feed { height: auto !important; overflow: visible !important; display: block !important; }

.dt-auth-wrap { display: flex; justify-content: center; padding: 60px 20px; }
.dt-auth-card {
  width: 100%; max-width: 400px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px 28px;
}
.dt-auth-card h1 { font-size: 26px; font-weight: 900; margin-bottom: 20px; }
.dt-auth-error {
  background: #fdecea; color: #a83227; border: 1px solid #f3c6c1;
  border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
.dt-auth-card label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.dt-auth-card input[type="text"], .dt-auth-card input[type="password"] {
  width: 100%; height: 42px; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0 12px; font-size: 14px; box-sizing: border-box;
}
.dt-auth-card input[type="text"]:focus, .dt-auth-card input[type="password"]:focus {
  outline: none; border-color: var(--orange);
}
.dt-auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; margin: 14px 0; }
.dt-auth-remember input { width: auto; height: auto; }
.dt-auth-btn {
  width: 100%; height: 44px; border: none; border-radius: 22px;
  background: var(--orange); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 6px;
}
.dt-auth-btn:hover { background: #e03d00; }
.dt-auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; }
.dt-auth-links a { color: var(--orange); font-weight: 600; text-decoration: none; }
.dt-auth-links a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .dt-auth-wrap { padding: 30px 16px; }
  .dt-auth-card { padding: 24px 20px; }
}
