/*
Theme Name: DW Pulse
Theme URI: https://dwpulse.com
Author: DW Pulse
Author URI: https://dwpulse.com
Description: Custom dark news theme for DW Pulse - Global News Hub
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dwpulse
*/

:root {
  --red: #E8192C;
  --dark: #0A0A0A;
  --darker: #050505;
  --card: #141414;
  --border: #222;
  --gold: #D4A017;
  --text: #E8E8E8;
  --muted: #777;
  --white: #fff;
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body {
  background:var(--dark);
  color:var(--text);
  font-family:'Source Sans 3',sans-serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a { text-decoration:none; color:inherit; }
img { display:block; max-width:100%; }

/* TICKER */
.ticker-wrap { background:var(--red); padding:7px 0; overflow:hidden; position:relative; z-index:200; }
.ticker-inner { display:flex; align-items:center; }
.ticker-label { background:var(--dark); color:var(--red); font-family:'Bebas Neue',sans-serif; font-size:12px; padding:3px 12px; letter-spacing:2px; white-space:nowrap; flex-shrink:0; }
.ticker-track { overflow:hidden; flex:1; }
.ticker-scroll { display:flex; animation:ticker 35s linear infinite; white-space:nowrap; }
.ticker-scroll span { font-size:12px; font-weight:600; padding:0 28px; color:#fff; }
.ticker-scroll span::before { content:"● "; opacity:0.6; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* HEADER */
header { background:var(--darker); border-bottom:3px solid var(--red); position:sticky; top:0; z-index:150; }
.header-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; }
.logo-main { font-family:'Bebas Neue',sans-serif; font-size:34px; color:var(--white); letter-spacing:3px; line-height:1; }
.logo-main span { color:var(--red); }
.logo-sub { font-size:9px; letter-spacing:3px; color:var(--muted); text-transform:uppercase; }
.header-right { display:flex; align-items:center; gap:8px; }
.icon-btn { background:none; border:none; color:var(--text); font-size:20px; cursor:pointer; padding:6px; line-height:1; }
.hamburger { display:flex; flex-direction:column; gap:5px; cursor:pointer; padding:6px; background:none; border:none; }
.hamburger span { display:block; width:22px; height:2px; background:var(--text); transition:all 0.3s; border-radius:2px; }
.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* DRAWER */
.menu-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:300; opacity:0; pointer-events:none; transition:opacity 0.3s; }
.menu-overlay.open { opacity:1; pointer-events:all; }
.menu-drawer { position:fixed; top:0; left:0; width:280px; height:100vh; background:var(--darker); z-index:400; transform:translateX(-100%); transition:transform 0.3s ease; overflow-y:auto; border-right:2px solid var(--red); }
.menu-drawer.open { transform:translateX(0); }
.drawer-head { padding:20px 20px 16px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.drawer-logo { font-family:'Bebas Neue',sans-serif; font-size:28px; letter-spacing:3px; }
.drawer-logo span { color:var(--red); }
.drawer-close { background:none; border:none; color:var(--muted); font-size:24px; cursor:pointer; line-height:1; }
.drawer-section { padding:16px 0; border-bottom:1px solid var(--border); }
.drawer-section-title { font-family:'Bebas Neue',sans-serif; font-size:11px; letter-spacing:3px; color:var(--muted); padding:0 20px 10px; }
.drawer-item { display:flex; align-items:center; gap:12px; padding:13px 20px; font-size:15px; font-weight:600; color:var(--text); transition:background 0.2s; border-left:3px solid transparent; }
.drawer-item:hover, .drawer-item.active { background:rgba(232,25,44,0.08); border-left-color:var(--red); color:var(--white); }
.drawer-item .dicon { font-size:18px; width:24px; text-align:center; }
.country-row { display:flex; flex-wrap:wrap; gap:8px; padding:12px 20px; }
.ctag { background:var(--card); border:1px solid var(--border); font-size:12px; font-weight:600; padding:6px 12px; cursor:pointer; transition:all 0.2s; }
.ctag:hover { background:var(--red); border-color:var(--red); color:white; }

/* SEARCH */
.search-bar { background:var(--card); padding:0 16px; max-height:0; overflow:hidden; transition:max-height 0.3s,padding 0.3s; }
.search-bar.open { max-height:60px; padding:10px 16px; }
.search-input { width:100%; background:var(--dark); border:1px solid var(--border); color:var(--text); padding:10px 14px; font-size:14px; outline:none; font-family:inherit; -webkit-appearance:none; }
.search-input:focus { border-color:var(--red); }

/* CAT NAV */
.cat-nav { background:var(--darker); border-top:1px solid var(--border); overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.cat-nav::-webkit-scrollbar { display:none; }
.cat-nav-inner { display:flex; padding:0 8px; min-width:max-content; }
.cat-item { font-family:'Bebas Neue',sans-serif; font-size:14px; letter-spacing:1.5px; color:var(--muted); padding:11px 14px; cursor:pointer; white-space:nowrap; border-bottom:3px solid transparent; transition:all 0.2s; }
.cat-item:hover,.cat-item.active { color:var(--white); border-bottom-color:var(--red); }
.cat-item.active { color:var(--red); }

/* CONTAINER */
.container { max-width:1400px; margin:0 auto; padding:0 14px; }

/* HERO */
.hero { padding:16px 0 12px; animation:fadeUp 0.5s ease both; }
.hero-main { position:relative; overflow:hidden; background:var(--card); margin-bottom:3px; display:block; }
.hero-main img { width:100%; height:220px; object-fit:cover; filter:brightness(0.65); transition:transform 0.4s,filter 0.3s; }
.hero-main:hover img { transform:scale(1.03); filter:brightness(0.8); }
.hero-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent,rgba(0,0,0,0.95)); padding:32px 14px 14px; }
.hero-cat { background:var(--red); color:white; font-size:10px; font-weight:700; letter-spacing:2px; padding:2px 8px; text-transform:uppercase; display:inline-block; margin-bottom:8px; }
.hero-title { font-family:'Playfair Display',serif; font-size:20px; font-weight:900; line-height:1.25; color:white; margin-bottom:7px; }
.hero-meta { font-size:11px; color:rgba(255,255,255,0.55); display:flex; gap:12px; flex-wrap:wrap; }

/* Side cards */
.hero-side-scroll { display:flex; gap:3px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.hero-side-scroll::-webkit-scrollbar { display:none; }
.hero-side-card { position:relative; overflow:hidden; flex-shrink:0; width:200px; height:140px; background:var(--card); display:block; }
.hero-side-card img { width:100%; height:100%; object-fit:cover; filter:brightness(0.6); transition:transform 0.3s,filter 0.3s; }
.hero-side-card:hover img { transform:scale(1.05); filter:brightness(0.8); }
.side-overlay { position:absolute; bottom:0; left:0; right:0; padding:18px 10px 10px; background:linear-gradient(transparent,rgba(0,0,0,0.92)); }
.side-cat { font-size:9px; font-weight:700; letter-spacing:1.5px; color:var(--gold); text-transform:uppercase; margin-bottom:4px; }
.side-title { font-family:'Playfair Display',serif; font-size:13px; font-weight:700; line-height:1.3; color:white; }

/* COUNTRY STRIP */
.country-strip { background:var(--card); border:1px solid var(--border); padding:14px; margin:14px 0; }
.strip-label { font-family:'Bebas Neue',sans-serif; font-size:11px; letter-spacing:3px; color:var(--muted); margin-bottom:12px; }
.country-scroll { display:flex; gap:3px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.country-scroll::-webkit-scrollbar { display:none; }
.country-card { flex-shrink:0; background:var(--dark); border:1px solid var(--border); padding:12px 14px; text-align:center; cursor:pointer; min-width:110px; transition:border-color 0.2s; }
.country-card:hover { border-color:var(--red); }
.c-flag { font-size:28px; margin-bottom:5px; }
.c-name { font-family:'Bebas Neue',sans-serif; font-size:12px; letter-spacing:2px; color:var(--muted); margin-bottom:4px; }
.c-headline { font-size:11px; color:var(--text); line-height:1.35; font-weight:600; }

/* SECTION HEADER */
.section-header { display:flex; align-items:center; justify-content:space-between; margin:24px 0 14px; border-bottom:2px solid var(--border); padding-bottom:10px; }
.section-title { font-family:'Bebas Neue',sans-serif; font-size:22px; letter-spacing:3px; color:var(--white); display:flex; align-items:center; gap:10px; }
.section-title::before { content:""; display:block; width:4px; height:22px; background:var(--red); }
.see-all { font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--red); }

/* NEWS GRID */
.news-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; animation:fadeUp 0.6s ease 0.1s both; }
.news-card { display:block; }
.news-card:active { opacity:0.8; }
.news-card-img { width:100%; height:130px; object-fit:cover; background:var(--card); filter:brightness(0.9); transition:filter 0.3s; }
.news-card:hover .news-card-img { filter:brightness(1); }
.news-card-body { padding:10px 0 12px; border-bottom:1px solid var(--border); }
.news-card-cat { font-size:9px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--red); margin-bottom:5px; }
.news-card-title { font-family:'Playfair Display',serif; font-size:13px; font-weight:700; line-height:1.4; color:var(--white); margin-bottom:7px; }
.news-card-meta { font-size:10px; color:var(--muted); }

/* TRENDING */
.trending-scroll { display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding-bottom:4px; }
.trending-scroll::-webkit-scrollbar { display:none; }
.trend-card { flex-shrink:0; width:160px; background:var(--card); border:1px solid var(--border); padding:14px 12px; display:block; transition:border-color 0.2s; }
.trend-card:hover { border-color:var(--red); }
.trend-num { font-family:'Bebas Neue',sans-serif; font-size:30px; color:var(--border); line-height:1; margin-bottom:6px; }
.trend-card:hover .trend-num { color:var(--red); }
.trend-title { font-size:12px; font-weight:600; line-height:1.4; color:var(--text); margin-bottom:5px; }
.trend-cat { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; }

/* LIST NEWS */
.list-news { display:flex; flex-direction:column; }
.list-item { display:grid; grid-template-columns:90px 1fr; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.list-item:active { opacity:0.8; }
.list-item-img { width:90px; height:65px; object-fit:cover; background:var(--card); }
.list-item-cat { font-size:9px; font-weight:700; letter-spacing:1.5px; color:var(--red); text-transform:uppercase; margin-bottom:4px; }
.list-item-title { font-family:'Playfair Display',serif; font-size:13px; font-weight:700; line-height:1.35; color:var(--white); margin-bottom:5px; }
.list-item-meta { font-size:10px; color:var(--muted); }

/* AD BANNER */
.ad-banner { background:linear-gradient(135deg,#0d0d0d,#1a1a1a); border:1px dashed var(--border); text-align:center; padding:22px 16px; margin:20px 0; color:var(--muted); font-size:11px; letter-spacing:2px; text-transform:uppercase; }
.ad-banner strong { display:block; font-size:18px; color:var(--gold); font-family:'Bebas Neue',sans-serif; letter-spacing:3px; margin-bottom:4px; }

/* NEWSLETTER */
.newsletter-box { background:linear-gradient(135deg,#1a0005,#0a0a0a); border:1px solid var(--red); padding:20px 16px; margin:20px 0; }
.newsletter-box h3 { font-family:'Playfair Display',serif; font-size:20px; margin-bottom:6px; color:white; }
.newsletter-box p { font-size:13px; color:var(--muted); margin-bottom:14px; line-height:1.5; }
.nl-input { width:100%; background:var(--dark); border:1px solid var(--border); color:var(--text); padding:12px 14px; font-size:14px; margin-bottom:10px; outline:none; font-family:inherit; -webkit-appearance:none; }
.nl-input:focus { border-color:var(--red); }
.nl-btn { width:100%; background:var(--red); color:white; border:none; padding:13px; font-weight:700; font-size:13px; letter-spacing:2px; cursor:pointer; text-transform:uppercase; font-family:inherit; }

/* SINGLE POST */
.article-container { max-width:780px; margin:0 auto; padding:0 16px; }
.breadcrumb { padding:14px 0 0; font-size:11px; color:var(--muted); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.breadcrumb a { color:var(--muted); transition:color 0.2s; }
.breadcrumb a:hover { color:var(--red); }
.breadcrumb span { color:var(--border); }
.article-cat-badge { background:var(--red); color:white; font-size:10px; font-weight:700; letter-spacing:2px; padding:3px 10px; text-transform:uppercase; display:inline-block; margin:16px 0 14px; }
.article-title { font-family:'Playfair Display',serif; font-size:26px; font-weight:900; line-height:1.25; color:var(--white); margin-bottom:14px; }
.article-meta-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:14px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin-bottom:18px; }
.author-info { display:flex; align-items:center; gap:10px; }
.author-avatar { width:36px; height:36px; border-radius:50%; background:var(--red); display:flex; align-items:center; justify-content:center; font-family:'Bebas Neue',sans-serif; font-size:16px; color:white; flex-shrink:0; }
.author-name { font-size:13px; font-weight:700; color:var(--white); }
.author-role { font-size:11px; color:var(--muted); }
.meta-divider { width:1px; height:30px; background:var(--border); }
.meta-item { font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:2px; }
.meta-item strong { font-size:11px; color:var(--text); font-weight:700; }
.share-bar { display:flex; align-items:center; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.share-label { font-family:'Bebas Neue',sans-serif; font-size:12px; letter-spacing:2px; color:var(--muted); }
.share-btn { display:flex; align-items:center; gap:6px; padding:7px 14px; border:1px solid var(--border); background:var(--card); font-size:12px; font-weight:700; color:var(--text); cursor:pointer; transition:all 0.2s; }
.share-btn:hover { border-color:var(--red); color:var(--red); }
.article-hero-img { width:100%; aspect-ratio: 16 / 9; max-height: 550px; object-fit:cover; margin-bottom:12px; }
.img-caption { font-size:11px; color:var(--muted); margin-bottom:24px; font-style:italic; }
.article-body { font-size:16px; line-height:1.85; color:#D0D0D0; }
.article-body p { margin-bottom:20px; }
.article-body h2 { font-family:'Playfair Display',serif; font-size:20px; font-weight:700; color:var(--white); margin:30px 0 14px; border-left:4px solid var(--red); padding-left:14px; }
.article-body h3 { font-family:'Playfair Display',serif; font-size:17px; font-weight:700; color:var(--white); margin:24px 0 10px; }
.article-body blockquote { border-left:3px solid var(--red); padding:14px 18px; margin:24px 0; background:var(--card); font-style:italic; font-size:15px; color:var(--text); line-height:1.7; }
.article-body strong { color:var(--white); font-weight:700; }
.tags-row { display:flex; flex-wrap:wrap; gap:8px; margin:28px 0; }
.tag { background:var(--card); border:1px solid var(--border); font-size:11px; font-weight:700; padding:5px 12px; color:var(--muted); transition:all 0.2s; }
.tag:hover { border-color:var(--red); color:var(--red); }
.related-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.related-card { display:block; }
.related-img { width:100%; height:120px; object-fit:cover; background:var(--card); filter:brightness(0.85); transition:filter 0.3s; }
.related-card:hover .related-img { filter:brightness(1); }
.related-body { padding:10px 0; border-bottom:1px solid var(--border); }
.related-cat { font-size:9px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--red); margin-bottom:5px; }
.related-title { font-family:'Playfair Display',serif; font-size:13px; font-weight:700; line-height:1.4; color:var(--white); margin-bottom:5px; }
.related-meta { font-size:10px; color:var(--muted); }

/* FOOTER */
footer { background:var(--darker); border-top:3px solid var(--red); margin-top:40px; padding:32px 0 16px; }
.footer-logo-main { font-family:'Bebas Neue',sans-serif; font-size:28px; letter-spacing:3px; color:var(--white); }
.footer-logo-main span { color:var(--red); }
.footer-logo-sub { font-size:9px; letter-spacing:3px; color:var(--muted); text-transform:uppercase; }
.footer-desc { font-size:13px; color:var(--muted); line-height:1.6; margin:10px 0 16px; }
.social-row { display:flex; gap:10px; margin-bottom:24px; }
.social-btn { background:var(--card); border:1px solid var(--border); color:var(--muted); width:38px; height:38px; display:flex; align-items:center; justify-content:center; font-size:14px; cursor:pointer; transition:all 0.2s; }
.social-btn:hover { background:var(--red); color:white; border-color:var(--red); }
.footer-acc { border-top:1px solid var(--border); }
.acc-item { border-bottom:1px solid var(--border); }
.acc-head { display:flex; justify-content:space-between; align-items:center; padding:14px 0; cursor:pointer; font-family:'Bebas Neue',sans-serif; font-size:15px; letter-spacing:2px; color:var(--white); }
.acc-arrow { font-size:12px; color:var(--muted); transition:transform 0.3s; }
.acc-item.open .acc-arrow { transform:rotate(180deg); color:var(--red); }
.acc-body { max-height:0; overflow:hidden; transition:max-height 0.3s ease; }
.acc-item.open .acc-body { max-height:300px; }
.acc-body ul { list-style:none; padding-bottom:12px; }
.acc-body ul li { font-size:13px; color:var(--muted); padding:6px 0; cursor:pointer; transition:color 0.2s; }
.acc-body ul li:hover { color:var(--red); }
.footer-bottom { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); font-size:11px; color:var(--muted); text-align:center; line-height:1.8; }

/* ANIMATIONS */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* TOAST */
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(60px); background:var(--card); border:1px solid var(--red); color:var(--white); padding:10px 22px; font-size:13px; font-weight:600; z-index:999; transition:transform 0.3s; }
.toast.show { transform:translateX(-50%) translateY(0); }

/* RESPONSIVE */
@media(min-width:600px){
  .news-grid { grid-template-columns:repeat(3,1fr); }
  .news-card-img { height:160px; }
  .hero-main img { height:320px; }
  .hero-title { font-size:26px; }
  .hero-side-card { width:260px; height:180px; }
  .list-item-img { width:110px; height:76px; }
  .article-title { font-size:32px; }
  .related-grid { grid-template-columns:repeat(3,1fr); }
}
@media(min-width:900px){
  .container { padding:0 24px; }
  .header-bar { padding:12px 24px; }
  .logo-main { font-size:42px; }
  .cat-item { font-size:15px; padding:11px 18px; }
  .hero-inner { display:grid; grid-template-columns:1.6fr 1fr; gap:3px; }
  .hero-main { margin-bottom:0; }
  .hero-main img { height:520px; }
  .hero-title { font-size:30px; }
  .hero-side-scroll { flex-direction:column; overflow-x:visible; height:100%; }
  .hero-side-card { width:100%; height:172px; flex:1; }
  .news-grid { grid-template-columns:repeat(4,1fr); gap:20px; }
  .news-card-img { height:180px; }
  .news-card-title { font-size:15px; }
  .main-layout { display:grid; grid-template-columns:1fr 300px; gap:28px; }
  .sidebar-box { display:block !important; }
  .country-scroll { flex-wrap:wrap; overflow:visible; }
  .country-card { min-width:0; flex:1; }
  .list-item-img { width:130px; height:88px; }
  .list-item-title { font-size:15px; }
  .article-title { font-size:38px; }
  .related-grid { grid-template-columns:repeat(4,1fr); }
}
@media(min-width:1200px){
  .news-grid { gap:20px; }
  .hero-title { font-size:34px; }
}

/* WordPress admin bar fix */
.admin-bar header { top:32px; }
@media screen and (max-width:782px){ .admin-bar header { top:46px; } }
