/*
Theme Name: Delima News
Theme URI: https://delima-news.com
Author: Delima Digitals
Description: World News, Unfiltered — Professional editorial news theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: delimanews
*/

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

:root {
  --ink: #0a0a08;
  --paper: #f5f2ec;
  --cream: #ede9e0;
  --accent: #c8102e;
  --accent2: #e8a020;
  --muted: #7a7568;
  --border: rgba(10,10,8,0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.ticker-label {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  padding: 8px 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex; align-items: center;
  z-index: 3;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  padding-left: 120px;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 0 32px;
  color: rgba(245,242,236,0.85);
  border-right: 1px solid rgba(245,242,236,0.2);
}
.ticker-item a { color: rgba(245,242,236,0.85); text-decoration: none; }
.ticker-item a:hover { color: white; }
.ticker-item span { color: var(--accent2); margin-right: 8px; font-weight: 500; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── HEADER ── */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(245,242,236,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
}
.logo-d {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-dot { color: var(--accent); font-size: 32px; line-height: 1; }
.logo-sub {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
  align-self: center;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.btn-subscribe {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-subscribe:hover { background: var(--accent); color: white; }

/* ── NAV ── */
nav {
  border-top: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav-list {
  display: flex;
  gap: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li a {
  display: block;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-list li a:hover, .nav-list li a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ── LAYOUT ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── DATE BAR ── */
.date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 32px;
}
.date-bar-left {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.edition-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 12px;
}

/* ── HERO GRID ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto auto;
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease both;
}
.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: saturate(0.9);
}
.hero-main:hover img { transform: scale(1.02); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,8,0.9) 0%, rgba(10,10,8,0.3) 50%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
}
.hero-cat {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.hero-title a { color: white; text-decoration: none; }
.hero-title a:hover { text-decoration: underline; }
.hero-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
.hero-meta strong { color: rgba(255,255,255,0.85); font-weight: 500; }

.hero-sidebar {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.sidebar-story {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  flex: 1;
  text-decoration: none;
  display: block;
  color: var(--ink);
}
.sidebar-story:hover { background: var(--cream); }
.sidebar-story:last-child { border-bottom: none; }
.sidebar-cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.sidebar-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}
.sidebar-time {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ── SECTION HEADER ── */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.see-all {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.see-all:hover { color: var(--accent); border-color: var(--accent); }

/* ── WORLD GRID ── */
.world-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.world-card { cursor: pointer; text-decoration: none; display: block; color: var(--ink); }
.world-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.3s;
  margin-bottom: 14px;
}
.world-card:hover .world-card-img { filter: saturate(1); }
.world-card-cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.world-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color 0.15s;
}
.world-card:hover .world-card-title { color: var(--accent); }
.world-card-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ── TWO-COL LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.2s both;
}

/* ── LIST STORIES ── */
.list-story {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.list-story:first-child { border-top: 1px solid var(--border); }
.list-story:hover .list-story-title { color: var(--accent); }
.list-story-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.2s;
}
.list-story:hover .list-story-thumb { filter: saturate(1); }
.list-story-cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.list-story-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.15s;
  margin-bottom: 6px;
}
.list-story-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ── SIDEBAR WIDGETS ── */
.widget { margin-bottom: 32px; }
.trending-list { list-style: none; }
.trending-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.trending-item:first-child { border-top: 1px solid var(--border); }
.trending-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  min-width: 28px;
  letter-spacing: -0.03em;
  -webkit-text-stroke: 1px var(--border);
}
.trending-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.15s;
}
.trending-item:hover .trending-title { color: var(--accent); }
.trending-cat {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* ── REGION STRIP ── */
.region-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 48px;
  overflow: hidden;
  animation: fadeUp 0.5s ease 0.15s both;
}
.region-card {
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--ink);
}
.region-card:last-child { border-right: none; }
.region-card:hover { background: var(--ink); color: var(--paper); }
.region-flag { font-size: 24px; display: block; margin-bottom: 6px; }
.region-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.region-count {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.region-card:hover .region-count { color: rgba(245,242,236,0.6); }

/* ── OPINION ── */
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.25s both;
}
.opinion-card {
  border: 1px solid var(--border);
  padding: 28px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  text-decoration: none;
  display: block;
  color: var(--ink);
}
.opinion-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--border);
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
}
.opinion-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.opinion-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  margin-top: 28px;
  color: var(--ink);
}
.opinion-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.opinion-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.opinion-name { font-size: 12px; font-weight: 500; color: var(--ink); }
.opinion-role { font-size: 11px; color: var(--muted); }

/* ── NEWSLETTER ── */
.newsletter-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 32px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.newsletter-text h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.newsletter-text p {
  font-size: 14px;
  color: rgba(245,242,236,0.6);
  max-width: 400px;
}
.newsletter-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.newsletter-input {
  background: rgba(245,242,236,0.08);
  border: 1px solid rgba(245,242,236,0.2);
  border-right: none;
  color: var(--paper);
  padding: 12px 20px;
  font-size: 14px;
  font-family: var(--font-body);
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(245,242,236,0.35); }
.newsletter-input:focus { border-color: rgba(245,242,236,0.5); }
.newsletter-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.2s;
  white-space: nowrap;
}
.newsletter-btn:hover { opacity: 0.88; }

/* ── FOOTER ── */
.site-footer {
  background: #0f0f0c;
  color: rgba(245,242,236,0.7);
  padding: 48px 32px 24px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,242,236,0.1);
  margin-bottom: 24px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--paper);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(245,242,236,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245,242,236,0.4);
}
.footer-ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(245,242,236,0.35);
  letter-spacing: 0.04em;
}
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }

/* ── BREAKING BADGE ── */
.breaking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.breaking-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: white;
  animation: pulse 1s infinite;
}

/* ── SINGLE ARTICLE ── */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 40px 0; }
.article-cat-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.article-headline {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.article-byline strong { color: var(--ink); font-weight: 500; }
.article-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  margin-bottom: 32px;
  filter: saturate(0.9);
}
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}
.article-body p { margin-bottom: 22px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 36px 0 14px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 12px;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── READING PROGRESS ── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.pagination a:hover, .pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid  { grid-template-columns: 1fr; }
  .hero-sidebar { border-left: none; border-top: 1px solid var(--border); flex-direction: row; }
  .sidebar-story { border-right: 1px solid var(--border); border-bottom: none; }
  .two-col    { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .region-strip { grid-template-columns: repeat(3, 1fr); }
  .opinion-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .header-top { padding: 0 16px; }
  nav { padding: 0 16px; }
  .world-grid { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: column; }
  .region-strip { grid-template-columns: repeat(2, 1fr); }
  .opinion-grid { grid-template-columns: 1fr; }
  .newsletter-bar { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-input { width: 100%; border-right: 1px solid rgba(245,242,236,0.2); border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-title { font-size: 24px; }
  .article-headline { font-size: 28px; }
}
