/*
Theme Name: DoktorlarHaber
Theme URI: https://www.doktorlarhaber.com
Author: DoktorlarHaber Ekibi
Author URI: https://www.doktorlarhaber.com
Description: Doktorlar ve sağlık profesyonelleri için modern, hızlı ve responsive haber teması – ensonhaber.com tarzı tasarım.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doktorlarhaber
Tags: news, blog, responsive, dark-mode, custom-menu, featured-images, two-columns, translation-ready
*/

/* =========================================
   CSS VARIABLES – LIGHT & DARK
   ========================================= */
:root {
  --max-w: 1200px;
}
[data-theme="light"] {
  --bg:          #f0f1f3;
  --surface:     #ffffff;
  --surface2:    #f5f6f8;
  --surface3:    #ebedf0;
  --border:      #e2e4e8;
  --border-light:#eef0f2;
  --text:        #1a1a1a;
  --text-sec:    #333333;
  --text-muted:  #6b7280;
  --text-dim:    #9ca3af;
  --accent:      #c8102e;
  --accent-hover:#a50d24;
  --accent-blue: #1a73e8;
  --accent-blue2:#1557b0;
  --nav-bg:      #1a1a2e;
  --nav-bg2:     #16213e;
  --nav-text:    #ffffff;
  --ticker-bg:   #c8102e;
  --ticker-txt:  #ffffff;
  --tag-bg:      #f0f4ff;
  --tag-txt:     #1a73e8;
  --shadow:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 2px 8px rgba(0,0,0,.1);
  --shadow-lg:   0 4px 20px rgba(0,0,0,.12);
  --overlay-gradient: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 40%, transparent 100%);
  --cat-badge:   #c8102e;
}
[data-theme="dark"] {
  --bg:          #0f0f17;
  --surface:     #1a1a28;
  --surface2:    #22223a;
  --surface3:    #2a2a42;
  --border:      #2e2e48;
  --border-light:#252540;
  --text:        #e8e8f0;
  --text-sec:    #c8c8d8;
  --text-muted:  #8888a0;
  --text-dim:    #666680;
  --accent:      #ff4060;
  --accent-hover:#e63050;
  --accent-blue: #5b9bff;
  --accent-blue2:#4080e0;
  --nav-bg:      #12121e;
  --nav-bg2:     #0e0e1a;
  --nav-text:    #d0d0e0;
  --ticker-bg:   #cc1030;
  --ticker-txt:  #ffffff;
  --tag-bg:      #1e2040;
  --tag-txt:     #5b9bff;
  --shadow:      0 1px 3px rgba(0,0,0,.3);
  --shadow-md:   0 2px 8px rgba(0,0,0,.35);
  --shadow-lg:   0 4px 20px rgba(0,0,0,.4);
  --overlay-gradient: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 40%, transparent 100%);
  --cat-badge:   #ff4060;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* =========================================
   TICKER / SON DAKİKA
   ========================================= */
.ticker-wrap {
  background: var(--ticker-bg);
  color: var(--ticker-txt);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.ticker-label {
  background: #a00d1f;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
  flex-shrink: 0;
}
.ticker-label::before {
  content: '';
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.3; transform:scale(1.5); }
}
.ticker-track { overflow: hidden; flex: 1; height: 100%; position: relative; }
.ticker-inner {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll-ticker 40s linear infinite;
  height: 100%;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding-left: 16px;
}
.ticker-inner a { color: inherit; opacity: .92; transition: opacity .15s; }
.ticker-inner a:hover { opacity: 1; text-decoration: underline; }
.ticker-sep { color: rgba(255,255,255,.4); font-size: 8px; margin: 0 4px; }
@keyframes scroll-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   TOP BAR
   ========================================= */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  height: 34px;
  font-size: 12px;
  color: var(--text-muted);
  transition: background .25s;
}
.topbar-inner {
  max-width: var(--max-w); margin: auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.topbar-left { display: flex; gap: 18px; align-items: center; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar a { color: var(--text-muted); transition: color .15s; }
.topbar a:hover { color: var(--accent); }

.theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 42px; height: 22px;
  cursor: pointer;
  position: relative;
  transition: background .25s;
  display: flex; align-items: center;
}
.theme-toggle::after {
  content: '☀';
  font-size: 12px;
  position: absolute;
  left: 3px;
  transition: transform .25s;
  line-height: 1;
}
[data-theme="dark"] .theme-toggle::after {
  content: '🌙';
  transform: translateX(18px);
  font-size: 11px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: var(--surface);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.header-inner {
  max-width: var(--max-w); margin: auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.logo-main {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 900; font-size: 28px;
  color: var(--text); letter-spacing: -0.5px;
}
.logo-main span { color: var(--accent); }
.logo-img { max-height: 48px; width: auto; }
.logo-sub {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}
.header-search {
  display: flex; align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  flex: 0 0 300px;
  transition: border-color .2s;
}
.header-search:focus-within {
  border-color: var(--accent);
}
.header-search input {
  border: none; background: transparent; padding: 8px 12px;
  font-size: 13px; color: var(--text); flex: 1; outline: none;
  font-family: inherit;
}
.header-search input::placeholder { color: var(--text-dim); }
.header-search button {
  background: var(--accent); border: none; color: #fff;
  padding: 8px 14px; cursor: pointer; font-size: 15px;
  transition: background .15s;
}
.header-search button:hover { background: var(--accent-hover); }

/* =========================================
   NAVIGATION (ensonhaber style)
   ========================================= */
.main-nav {
  background: var(--nav-bg);
  position: sticky; top: 0; z-index: 100;
  transition: background .25s;
}
.nav-inner {
  max-width: var(--max-w); margin: auto; padding: 0;
  display: flex; align-items: stretch;
}
.nav-inner ul {
  display: flex; align-items: stretch;
  flex: 1;
}
.nav-inner ul li { position: relative; }
.nav-inner ul li a {
  color: var(--nav-text);
  font-size: 13px; font-weight: 600;
  padding: 0 14px;
  height: 44px;
  display: flex; align-items: center;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.nav-inner ul li a:hover,
.nav-inner ul li.current-menu-item > a,
.nav-inner ul li.current-cat > a {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-inner ul li a.nav-breaking {
  color: #ffcc00 !important;
  font-weight: 800;
}

/* Dropdown */
.nav-inner ul ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--nav-bg2); min-width: 220px;
  flex-direction: column; z-index: 200;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  border-radius: 0 0 4px 4px;
}
.nav-inner ul li:hover > ul { display: flex; }
.nav-inner ul ul a {
  padding: 10px 18px;
  font-size: 13px;
  text-transform: none;
  height: auto;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-inner ul ul a:hover { background: rgba(255,255,255,.1); }

.nav-hamburger {
  display: none;
  background: none; border: none; color: var(--nav-text);
  font-size: 22px; cursor: pointer; padding: 0 16px;
  height: 44px; align-items: center;
  margin-left: auto;
}

/* =========================================
   AD BANNER (Header altı)
   ========================================= */
.ad-banner-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transition: background .25s;
}
.ad-banner {
  max-width: var(--max-w); margin: auto; padding: 0 16px;
  display: flex; justify-content: center;
}
.ad-banner-inner {
  width: 100%; max-width: 728px; height: 90px;
  background: var(--surface2);
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer;
  transition: border-color .15s;
}
.ad-banner-inner:hover { border-color: var(--text-muted); }
.ad-label {
  position: absolute; top: 4px; left: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  color: var(--text-dim); text-transform: uppercase;
}
.ad-close {
  position: absolute; top: 4px; right: 8px;
  background: none; border: none; color: var(--text-dim);
  font-size: 14px; cursor: pointer; padding: 2px 5px;
  border-radius: 3px; line-height: 1; transition: color .15s;
}
.ad-close:hover { color: var(--text); }
.ad-content { display: flex; align-items: center; gap: 16px; }
.ad-icon { font-size: 28px; }
.ad-text h4 { font-size: 14px; font-weight: 700; color: var(--text-sec); }
.ad-text p { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* =========================================
   CONTAINER
   ========================================= */
.container { max-width: var(--max-w); margin: auto; padding: 0 16px; }

/* =========================================
   HERO SECTION (ensonhaber manşet grid)
   ========================================= */
.hero-section {
  margin: 12px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 3px;
}
/* Ana büyük haber - sol */
.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.hero-main img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero-main:hover img { transform: scale(1.03); }
.hero-main .hero-overlay {
  position: absolute; inset: 0;
  background: var(--overlay-gradient);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.hero-main .hero-cat {
  background: var(--cat-badge); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 4px 10px;
  display: inline-block; width: fit-content;
  margin-bottom: 10px;
}
.hero-main .hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px; font-weight: 800; color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero-main .hero-meta {
  color: rgba(255,255,255,.65);
  font-size: 12px; margin-top: 8px;
  display: flex; gap: 12px;
}

/* Sağ küçük haberler */
.hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.hero-sub {
  position: relative;
  overflow: hidden;
  min-height: 208px;
}
.hero-sub img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.hero-sub:hover img { transform: scale(1.04); }
.hero-sub .hero-overlay {
  position: absolute; inset: 0;
  background: var(--overlay-gradient);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
}
.hero-sub .hero-cat {
  background: var(--cat-badge); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: 2px 7px;
  display: inline-block; width: fit-content;
  margin-bottom: 6px;
}
.hero-sub .hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 14px; font-weight: 700; color: #fff;
  line-height: 1.35;
}
.hero-sub .hero-meta {
  color: rgba(255,255,255,.6);
  font-size: 11px; margin-top: 5px;
}

/* =========================================
   CONTENT LAYOUT (İçerik + Sidebar)
   ========================================= */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  margin: 20px 0 40px;
}

/* =========================================
   SECTION TITLE (ensonhaber style)
   ========================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px; font-weight: 800;
  color: var(--text);
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  margin-bottom: -1px;
  line-height: 1.4;
}
.section-header .see-all {
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  transition: color .15s;
}
.section-header .see-all:hover { color: var(--accent-hover); text-decoration: underline; }

/* =========================================
   NEWS GRID (3 sütunlu kartlar)
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.news-card {
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
  cursor: pointer;
  border-radius: 0;
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .35s;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 12px 14px 14px; }
.news-card-tag {
  background: var(--tag-bg); color: var(--tag-txt);
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: 2px 7px; border-radius: 2px;
  display: inline-block; margin-bottom: 6px;
}
.news-card h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 14px; font-weight: 700; line-height: 1.4;
  color: var(--text); margin-bottom: 8px;
  transition: color .15s;
}
.news-card:hover h3 { color: var(--accent); }
.news-card-meta {
  font-size: 11px; color: var(--text-muted);
  display: flex; gap: 10px;
}

/* =========================================
   NEWS LIST (Dikey liste)
   ========================================= */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-img {
  flex-shrink: 0; width: 120px; height: 75px;
  overflow: hidden;
}
.news-list-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .3s;
}
.news-list-item:hover .news-list-img img { transform: scale(1.05); }
.news-list-body { flex: 1; min-width: 0; }
.news-list-body h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  color: var(--text); transition: color .15s;
  margin-bottom: 4px;
}
.news-list-item:hover h4 { color: var(--accent); }
.news-list-meta { font-size: 11px; color: var(--text-muted); }

/* Cat section spacing */
.cat-section { margin-bottom: 28px; }

/* =========================================
   BIG CARD (ensonhaber 2-column highlight)
   ========================================= */
.big-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.big-card {
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .2s;
}
.big-card:hover { box-shadow: var(--shadow-md); }
.big-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.big-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .35s;
}
.big-card:hover .big-card-img img { transform: scale(1.04); }
.big-card-body { padding: 14px 16px; }
.big-card h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: var(--text); margin-bottom: 8px;
  transition: color .15s;
}
.big-card:hover h3 { color: var(--accent); }
.big-card p {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.big-card-meta { font-size: 11px; color: var(--text-dim); display: flex; gap: 10px; }

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--surface);
  padding: 0;
  box-shadow: var(--shadow);
  transition: background .25s;
  overflow: hidden;
}
.sidebar-widget-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 13px; font-weight: 800;
  color: #fff;
  background: var(--accent);
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.sidebar-widget-body { padding: 14px; }

/* Popular list */
.popular-list { display: flex; flex-direction: column; gap: 0; }
.popular-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.popular-list li:first-child { padding-top: 0; }
.popular-list li:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 20px; font-weight: 900;
  color: var(--accent); opacity: .3;
  flex-shrink: 0; width: 24px; line-height: 1;
}
.popular-list h4 {
  font-size: 12px; font-weight: 600; line-height: 1.45;
  color: var(--text); transition: color .15s;
}
.popular-list li:hover h4 { color: var(--accent); }
.popular-list small { font-size: 10px; color: var(--text-dim); margin-top: 2px; display: block; }

/* Category tags */
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tag {
  background: var(--surface2); color: var(--text-sec);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; padding: 5px 10px;
  transition: all .15s; cursor: pointer;
}
.cat-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Newsletter */
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  border: 1px solid var(--border);
  padding: 8px 10px; font-size: 13px;
  background: var(--surface2); color: var(--text);
  font-family: inherit; outline: none;
  transition: border-color .15s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent); color: #fff; border: none;
  padding: 9px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.newsletter-form button:hover { background: var(--accent-hover); }
.newsletter-form p { font-size: 11px; color: var(--text-muted); }

/* Sponsored */
.sponsored-ads { display: flex; flex-direction: column; gap: 8px; }
.sponsored-ad-item {
  position: relative; overflow: hidden;
  cursor: pointer; border: 1px dashed var(--border);
  transition: border-color .15s;
}
.sponsored-ad-item:hover { border-color: var(--text-muted); }
.sponsored-ad-item img { width: 100%; display: block; }
.sponsored-ad-label {
  position: absolute; bottom: 4px; right: 6px;
  background: rgba(0,0,0,.5); color: rgba(255,255,255,.7);
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 1px 6px; border-radius: 2px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--nav-bg); color: rgba(255,255,255,.85);
  margin-top: 40px; padding-top: 36px;
  transition: background .25s;
}
.footer-grid {
  max-width: var(--max-w); margin: auto; padding: 0 16px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px;
}
.footer-brand .logo-main { font-size: 20px; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; padding: 14px;
  font-size: 11px; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* =========================================
   SINGLE POST
   ========================================= */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.bc-inner {
  max-width: var(--max-w); margin: auto; padding: 0 16px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.bc-inner a { color: var(--accent-blue); }
.bc-inner a:hover { text-decoration: underline; }
.bc-sep { color: var(--text-dim); padding: 0 3px; }
.bc-current {
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 400px;
}

.single-wrap {
  max-width: var(--max-w); margin: 20px auto 0; padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.single-article {
  background: var(--surface);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: background .25s;
  min-width: 0;
}
.post-category-badge {
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 4px 10px;
  display: inline-block; margin-bottom: 12px;
  transition: background .15s;
}
.post-category-badge:hover { background: var(--accent-hover); }
.post-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 26px; font-weight: 900; line-height: 1.35;
  color: var(--text); margin-bottom: 14px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--text-muted);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.post-meta a { color: var(--accent-blue); }
.post-featured-img {
  width: 100%; margin-bottom: 20px;
  aspect-ratio: 16/9; object-fit: cover; display: block;
}
.post-body { font-size: 16px; line-height: 1.85; color: var(--text-sec); }
.post-body p { margin-bottom: 16px; }
.post-body h2 { font-family: 'Merriweather', Georgia, serif; font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.post-body h3 { font-family: 'Merriweather', Georgia, serif; font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--text); }
.post-body img { margin: 16px 0; width: 100%; }
.post-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--surface2); padding: 14px 18px;
  margin: 18px 0;
  font-style: italic; color: var(--text-muted);
}
.post-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.post-tag {
  background: var(--surface2); color: var(--text-sec);
  font-size: 12px; padding: 4px 10px;
  border: 1px solid var(--border);
  transition: all .15s;
}
.post-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Share */
.post-share {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.post-share > span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.share-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 700; border: none;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
  text-decoration: none;
}
.share-btn:hover { opacity: .85; }
.share-btn.tw { background: #1da1f2; color: #fff; }
.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.wa { background: #25d366; color: #fff; }
.share-btn.cp { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }

/* Comments */
.comments-section { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--border); }
.comments-section > h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 18px;
}
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--surface2); color: var(--text);
  font-family: inherit; font-size: 14px; outline: none; margin-bottom: 12px;
  transition: border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form input[type="submit"] {
  background: var(--accent); color: #fff; border: none;
  padding: 10px 24px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.comment-form input[type="submit"]:hover { background: var(--accent-hover); }
.comment-list { list-style: none; padding: 0; }
.comment-list li.comment { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.comment-list li.comment:last-child { border-bottom: none; }

/* Single sidebar */
.single-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 56px; }
.adsense-box {
  background: var(--surface);
  padding: 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
}
.adsense-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim);
}
.adsense-slot {
  min-height: 250px;
  background: var(--surface2);
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  color: var(--text-dim); font-size: 12px;
  text-align: center; padding: 12px;
}
.sidebar-cat-widget {
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-cat-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 13px; font-weight: 800;
  color: #fff; background: var(--accent);
  padding: 8px 14px;
  text-transform: uppercase;
}
.sidebar-cat-list { display: flex; flex-direction: column; padding: 10px 14px; }
.sidebar-cat-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.sidebar-cat-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-cat-thumb {
  flex-shrink: 0; width: 68px; height: 50px;
  overflow: hidden;
}
.sidebar-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sidebar-cat-item:hover .sidebar-cat-thumb img { transform: scale(1.06); }
.sidebar-cat-item h5 {
  font-size: 12px; font-weight: 700; line-height: 1.4;
  color: var(--text); transition: color .15s;
}
.sidebar-cat-item:hover h5 { color: var(--accent); }
.sidebar-cat-item small { font-size: 10px; color: var(--text-dim); margin-top: 2px; display: block; }

/* Related */
.related-section { max-width: var(--max-w); margin: 28px auto 40px; padding: 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.related-card {
  background: var(--surface);
  overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; display: block;
  transition: box-shadow .2s;
}
.related-card:hover { box-shadow: var(--shadow-md); }
.related-card-img { aspect-ratio: 16/9; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-body { padding: 10px 12px; }
.related-card-body .news-card-tag { margin-bottom: 5px; }
.related-card-body h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  color: var(--text); transition: color .15s;
}
.related-card:hover h4 { color: var(--accent); }
.related-card-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* =========================================
   ARCHIVE
   ========================================= */
.archive-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky; top: 44px; z-index: 90;
  box-shadow: var(--shadow);
}
.archive-header-inner {
  max-width: var(--max-w); margin: auto; padding: 0 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.archive-title-text {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px; font-weight: 900; color: var(--text);
  flex-shrink: 0; margin-right: 8px;
}
.filter-tabs { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.filter-tab {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  cursor: pointer; transition: all .15s; font-family: inherit;
  white-space: nowrap;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.filter-sort { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.filter-sort label { font-size: 12px; color: var(--text-muted); }
.filter-sort select {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; padding: 4px 8px;
  cursor: pointer; font-family: inherit; outline: none;
}
.archive-result-info {
  max-width: var(--max-w); margin: 14px auto 0; padding: 0 16px;
  font-size: 13px; color: var(--text-muted);
}
.filter-grid {
  max-width: var(--max-w); margin: 14px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  min-height: 200px; transition: opacity .2s;
}
.filter-grid.loading { opacity: .4; pointer-events: none; }
.filter-card {
  background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none;
  display: block; transition: box-shadow .2s;
}
.filter-card:hover { box-shadow: var(--shadow-md); }
.filter-card-img { aspect-ratio: 16/9; overflow: hidden; }
.filter-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.filter-card:hover .filter-card-img img { transform: scale(1.05); }
.filter-card-body { padding: 10px 12px; }
.filter-card-body .news-card-tag { display: inline-block; margin-bottom: 5px; }
.filter-card-body h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  color: var(--text); transition: color .15s;
}
.filter-card:hover h3 { color: var(--accent); }
.filter-card-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.filter-empty {
  grid-column: 1/-1; text-align: center;
  padding: 40px; color: var(--text-muted); font-size: 14px;
}
.filter-spinner { display: none; grid-column: 1/-1; justify-content: center; padding: 40px; }
.filter-spinner.show { display: flex; }
.spinner-ring {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.filter-pagination {
  max-width: var(--max-w); margin: 20px auto 40px; padding: 0 16px;
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.page-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 600;
  padding: 6px 12px; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.page-btn:hover, .page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* =========================================
   POLL
   ========================================= */
.dh-poll {
  background: var(--surface);
  border: 2px solid var(--accent);
  padding: 18px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.dh-poll-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 15px; font-weight: 800;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.dh-poll-options { display: flex; flex-direction: column; gap: 8px; }
.dh-poll-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  text-align: left; transition: all .15s;
}
.dh-poll-btn:hover {
  background: var(--accent); color: #fff;
  border-color: var(--accent); transform: translateX(3px);
}
.dh-poll-results { display: flex; flex-direction: column; gap: 10px; }
.dh-poll-result-row { display: flex; align-items: center; gap: 8px; }
.dh-poll-result-label { font-size: 13px; font-weight: 600; color: var(--text); min-width: 100px; flex-shrink: 0; }
.dh-poll-bar-wrap { flex: 1; height: 8px; background: var(--surface2); overflow: hidden; }
.dh-poll-bar { height: 100%; background: var(--accent); transition: width .6s cubic-bezier(.4,0,.2,1); }
.dh-poll-pct { font-size: 12px; font-weight: 700; color: var(--accent); min-width: 32px; text-align: right; }
.dh-poll-total { font-size: 11px; color: var(--text-dim); text-align: right; margin-top: 4px; }

/* Breaking badge */
.breaking-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 3px 9px;
  margin-bottom: 8px;
}
.breaking-badge::before {
  content: '';
  width: 6px; height: 6px; background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}

/* Reading time badge */
.reading-time-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--tag-bg); color: var(--tag-txt);
  font-size: 11px; font-weight: 600;
  padding: 2px 7px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: auto; min-height: 300px; }
  .hero-sub-grid { grid-template-columns: 1fr 1fr; }
  .content-layout, .single-wrap { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-sub-grid { grid-template-columns: 1fr; }
  .hero-sub { min-height: 180px; }
  .news-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .big-cards-grid { grid-template-columns: 1fr; }
  .nav-inner > ul > li:not(:first-child) { display: none; }
  .nav-hamburger { display: flex; }
  .header-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 240px; }
  .hero-main .hero-title { font-size: 18px; }
  .logo-main { font-size: 22px; }
  .post-title { font-size: 20px; }
  .filter-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* Mobile nav open */
@media (max-width: 768px) {
  #mainNav.open { flex-direction: column; background: var(--nav-bg); }
  #mainNav.open > ul { flex-direction: column; width: 100%; }
  #mainNav.open > ul > li { display: block !important; }
  #mainNav.open > ul > li > a { display: flex !important; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
}
