/*
Theme Name: EcoNews ECINT
Theme URI: https://news.economicinsight.id
Author: Economic Insight Indonesia (ECINT)
Author URI: https://economicinsight.id
Description: 1:1 High-Fidelity Clone of ECO News Portugal (econews.pt) with Dark Mode, Mega Highlight, and Horizontal Cards.
Version: 2.0.0
*/

:root {
  --eco-bg: #000a00;
  --eco-card-bg: #0d160d;
  --eco-green: #00a859;
  --eco-green-hover: #00c267;
  --eco-title: hsla(0,0%,100%,0.95);
  --eco-muted: #9ca3af;
  --eco-border: #1a251a;
  --eco-hr: #162016;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.dark-mode {
  background-color: var(--eco-bg);
  color: var(--eco-title);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease-in-out; }
a:hover { color: var(--eco-green); }

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

/* TOP TICKER BAR */
.top-ticker {
  background: #000600;
  border-bottom: 1px solid var(--eco-border);
  padding: 6px 0;
  font-size: 11px;
  color: var(--eco-muted);
}
.top-ticker-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticker-content {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-badge {
  background: var(--eco-green);
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  margin-right: 12px;
  letter-spacing: 0.5px;
}
.ticker-marquee {
  display: inline-block;
  animation: marquee 35s linear infinite;
  font-family: monospace;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* SITE HEADER (MINIMALIST ECO STYLE) */
.site-header {
  border-bottom: 1px solid var(--eco-border);
  background: rgba(0, 10, 0, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--eco-muted);
}
.search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--eco-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-btn:hover { color: #fff; }

.header-center {
  text-align: center;
}
.site-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #fff;
}
.site-logo span { color: var(--eco-green); }

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.edition-tag {
  font-size: 11px;
  color: var(--eco-muted);
  font-family: monospace;
  font-weight: 600;
}
.menu-burger {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

/* SUB HEADER NAVIGATION */
.sub-nav {
  border-bottom: 1px solid var(--eco-border);
  background: var(--eco-bg);
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sub-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-categories {
  display: flex;
  gap: 22px;
}
.nav-categories a {
  color: var(--eco-muted);
  padding-bottom: 2px;
}
.nav-categories a:hover, .nav-categories a.active {
  color: #fff;
  border-bottom: 2px solid var(--eco-green);
}
.nav-live-index {
  font-family: monospace;
  font-size: 11px;
  color: var(--eco-muted);
}
.nav-live-index strong { color: var(--eco-green); }

/* 1. HIGHLIGHT MEGA (FULL-WIDTH HERO AS IN ECO NEWS) */
.highlight--mega {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--eco-border);
  overflow: hidden;
  background-color: #000;
}
.highlight--mega .full-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.highlight--mega:hover .full-bg {
  transform: scale(1.02);
}
.highlight--mega .full-bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,10,0,0.15) 0%, rgba(0,10,0,0.85) 75%, #000a00 100%);
}
.highlight__content--mega {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
  padding-top: 120px;
  max-width: 900px;
}
.badge-eco {
  display: inline-block;
  background: var(--eco-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.highlight__content--mega h1.title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--eco-title);
  margin-bottom: 14px;
}
.highlight__content--mega .highlight__lead {
  font-size: 16px;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 14px;
}
.highlight__content--mega .meta {
  font-size: 12px;
  color: var(--eco-muted);
  font-family: monospace;
}

/* 2. CARD HORIZONTAL FEED (STREAM LIKE ECO NEWS) */
.feed-section {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 20px;
}
.feed-heading {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--eco-border);
  padding-bottom: 10px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-heading span.dot {
  width: 8px;
  height: 8px;
  background: var(--eco-green);
  display: inline-block;
}

.card--horizontal {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 25px;
}
.card__image {
  width: 280px;
  height: 170px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--eco-card-bg);
  transition: opacity 0.2s;
}
.card--horizontal:hover .card__image {
  opacity: 0.9;
}
.card__content-wrapper {
  flex: 1;
}
.card__category {
  font-size: 11px;
  font-weight: 800;
  color: var(--eco-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.card__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--eco-title);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.card--horizontal:hover .card__title {
  color: var(--eco-green);
}
.meta__time {
  font-size: 11px;
  color: var(--eco-muted);
  font-family: monospace;
  margin-bottom: 8px;
}
.card__lead {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

hr.rounded {
  border: 0;
  height: 1px;
  background-color: var(--eco-hr);
  margin: 25px 0;
}

/* OPINION & COLUMNISTS BOX */
.opinion-box {
  background: var(--eco-card-bg);
  border: 1px solid var(--eco-border);
  border-radius: 8px;
  padding: 30px;
  margin: 50px 0;
}
.opinion-header {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--eco-border);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.opinion-item {
  border-left: 3px solid var(--eco-green);
  padding-left: 16px;
}
.opinion-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.5;
  margin-bottom: 12px;
}
.opinion-author-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.opinion-author-title {
  font-size: 11px;
  color: var(--eco-muted);
}

/* NEWSLETTER HOOK */
.newsletter-card {
  background: linear-gradient(135deg, #02200a 0%, #004d1f 100%);
  border: 1px solid #14532d;
  border-radius: 8px;
  padding: 30px;
  margin: 50px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.newsletter-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.newsletter-card p {
  font-size: 13px;
  color: #86efac;
}
.newsletter-input-box {
  display: flex;
  gap: 8px;
}
.newsletter-input-box input {
  background: rgba(0,0,0,0.5);
  border: 1px solid #166534;
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  width: 240px;
}
.newsletter-input-box button {
  background: var(--eco-green);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--eco-border);
  background: #000400;
  padding: 40px 0 20px;
  font-size: 12px;
  color: var(--eco-muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
  font-weight: 600;
  text-transform: uppercase;
}
.footer-copy {
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}

/* SINGLE ARTICLE VIEW */
.single-article-wrap {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px;
}
.single-category {
  font-size: 12px;
  font-weight: 800;
  color: var(--eco-green);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.single-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.single-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 20px;
}
.single-meta {
  border-top: 1px solid var(--eco-border);
  border-bottom: 1px solid var(--eco-border);
  padding: 12px 0;
  font-size: 12px;
  color: var(--eco-muted);
  font-family: monospace;
  margin-bottom: 30px;
}
.single-featured-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 30px;
}
.single-content {
  font-size: 17px;
  line-height: 1.75;
  color: #e5e7eb;
}
.single-content p {
  margin-bottom: 22px;
}
.single-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 35px 0 16px;
}
.single-content blockquote {
  border-left: 3px solid var(--eco-green);
  padding-left: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: #d1d5db;
  margin: 30px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .card--horizontal { flex-direction: column; }
  .card__image { width: 100%; height: 200px; }
  .highlight__content--mega h1.title { font-size: 26px; }
  .newsletter-card { flex-direction: column; align-items: flex-start; }
  .newsletter-input-box { width: 100%; flex-direction: column; }
  .newsletter-input-box input { width: 100%; }
}
