:root {
  --news-red: #c00;
  --news-blue: #003366;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --fg: #212529;
  --fg-light: #6c757d;
  --border: #dee2e6;
  --header-top: #1a1a1a;
  --accent: var(--news-red);
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-alt: #1e1e1e;
    --fg: #e9ecef;
    --fg-light: #adb5bd;
    --border: #343a40;
    --header-top: #000000;
  }
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.top-bar {
  background: var(--header-top);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header {
  padding: 30px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--fg);
}

.logo span {
  color: var(--news-red);
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 3px solid var(--news-red);
  box-shadow: var(--shadow);
}

.nav-bar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 30px;
}

.nav-bar a {
  display: block;
  padding: 15px 0;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-donate {
  background: var(--news-red) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  margin-top: 7px;
  border-radius: 4px;
  height: fit-content;
}

.btn-donate:hover {
  background: #a00 !important;
}

/* --- GRID SYSTEM --- */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 32px;
  }

  .nav-bar ul {
    gap: 8px 15px;
    padding: 10px 0;
  }

  .nav-bar a {
    padding: 6px 0;
    font-size: 13px;
  }

  .btn-donate {
    margin-top: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .main-header {
    padding: 20px 0;
  }
}

@media (max-width: 360px) {
  .nav-bar ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .nav-bar a {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .nav-bar li:last-child a {
    border-bottom: none;
  }
}

/* --- COMPONENTS --- */
.breaking-bar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 4px;
}

.breaking-label {
  background: var(--news-red);
  color: #fff;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 2px;
}

.card {
  margin-bottom: 30px;
}

.card-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--news-red);
  margin-bottom: 10px;
  display: block;
}

.card-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.card-excerpt {
  color: var(--fg-light);
  font-size: 15px;
  margin-bottom: 15px;
}

.card-meta {
  font-size: 12px;
  color: var(--fg-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card.compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.card.compact .card-title {
  font-size: 18px;
}

/* --- SECTIONS --- */
.section-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 5px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-title a {
  font-size: 12px;
  color: var(--accent);
}

/* --- SIDEBAR --- */
.sidebar-box {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

.sidebar-box h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.donate-notice {
  background: var(--header-top);
  color: #fff;
  padding: 40px;
  border-radius: 8px;
  margin: 40px 0;
  text-align: center;
}

.donate-notice h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
}

.donate-notice p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 25px;
  opacity: 0.9;
}

/* --- ADS --- */
.ad-slot {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 30px;
  position: relative;
  color: #999;
  font-size: 11px;
  font-weight: 700;
}

.ad-slot::before {
  content: "SPONSORED ADVERTISEMENT";
  position: absolute;
  top: 5px;
  left: 5px;
}

/* --- FOOTER --- */
footer {
  background: var(--header-top);
  color: #ccc;
  padding: 60px 0;
  margin-top: 60px;
}

footer h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}

footer p {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* --- POST PAGE --- */
.post-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 30px;
}

.post-header .category {
  color: var(--news-red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.post-header h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.dark .post-content {
  color: #ddd;
}

.post-content p {
  margin-bottom: 25px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.tag-cloud a {
  background: var(--bg-alt);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
}