:root {
  --bg-page: #f3f5f8;
  --bg-card: #ffffff;
  --bg-dark: #141923;
  --text-main: #1b2230;
  --text-muted: #5a6475;
  --accent-primary: #e02d3c;
  --accent-primary-hover: #c21e2c;
  --accent-secondary: #15803d;
  --accent-gold: #f59e0b;
  --border-subtle: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Top Utility Bar */
.top-strip {
  background: var(--bg-dark);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 6px 16px;
}

.top-strip-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.3); }
}

/* Main Header */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--accent-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: -0.02em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* 3-Column Portal Grid */
.portal-container {
  max-width: 1380px;
  margin: 22px auto 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr) 265px;
  gap: 20px;
  align-items: start;
}

/* Teaser Sidebars */
.teaser-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  color: #fff;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-label span.tag-ad {
  background: var(--accent-gold);
  color: #111827;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
}

/* Clickbait Teaser Ad Card */
.teaser-card {
  background: var(--bg-card);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.teaser-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.teaser-card--hot {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
}

.teaser-card--urgent {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.teaser-thumb-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

.teaser-thumb-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.teaser-card:hover .teaser-thumb-wrap img {
  transform: scale(1.06);
}

.teaser-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.badge-red { background: #dc2626; }
.badge-orange { background: #ea580c; }
.badge-dark { background: #111827; color: #fde047; }
.badge-green { background: #15803d; }
.badge-purple { background: #9333ea; }
.badge-teal { background: #0f766e; }

.teaser-overlay-sticker {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(250, 204, 21, 0.96);
  color: #111827;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.teaser-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.teaser-headline {
  font-size: 0.89rem;
  font-weight: 800;
  line-height: 1.32;
  color: #111827;
}

.teaser-headline mark {
  background: #fef08a;
  color: #991b1b;
  padding: 0 3px;
  border-radius: 2px;
}

.teaser-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.38;
}

.teaser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.72rem;
}

.teaser-views {
  color: #64748b;
  font-weight: 600;
}

.teaser-cta {
  color: var(--accent-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.teaser-card:hover .teaser-cta {
  text-decoration: underline;
}

/* Main Article Card */
.article-main {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  padding: 28px 34px 38px;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.article-category {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.article-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 900;
  line-height: 1.24;
  color: #0f172a;
  margin-bottom: 14px;
}

.article-lead {
  font-size: 1.1rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 18px;
  border-left: 4px solid var(--accent-primary);
  padding-left: 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 22px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.author-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e02d3c, #f97316);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.meta-stats {
  display: flex;
  gap: 14px;
  font-weight: 600;
}

/* Figures & Photos */
.article-figure {
  margin: 22px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.article-figure img {
  width: 100%;
  max-height: 460px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.article-figure figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  font-style: italic;
}

/* Typography inside article */
.article-content h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.42rem;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f1f5f9;
}

.article-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0 8px;
}

.article-content p {
  margin-bottom: 15px;
  font-size: 1.02rem;
  color: #27303f;
}

.article-content ul,
.article-content ol {
  margin: 12px 0 18px 22px;
}

.article-content li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #27303f;
}

/* Callout Box */
.info-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid var(--accent-secondary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 22px 0;
}

.info-callout-title {
  font-weight: 800;
  color: #166534;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.calorie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.calorie-table th {
  background: #1e293b;
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
}

.calorie-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.calorie-table tr:nth-child(even) {
  background: #f8fafc;
}

.calorie-table tr.highlight-row {
  background: #fef2f2;
  font-weight: 700;
  color: #991b1b;
}

/* Interactive Calorie Calculator */
.calc-widget {
  background: linear-gradient(135deg, #fff5f5 0%, #fffbeb 100%);
  border: 2px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 26px 0;
}

.calc-widget h3 {
  margin-top: 0;
  color: #991b1b;
  font-size: 1.15rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.calc-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 5px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}

.calc-result {
  background: #fff;
  border: 1px dashed #f87171;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-kcal {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-primary);
}

/* Mid-article Promo Strip */
.mid-teaser-strip {
  margin: 26px 0;
  padding: 14px;
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
}

.mid-teaser-heading {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #b45309;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.mid-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Comments Section */
.comments-box {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 2px solid var(--border-subtle);
}

.comment-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
}

.comment-author {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.comment-text {
  font-size: 0.92rem;
  margin-top: 5px;
  color: #334155;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 28px 20px;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer strong {
  color: #f8fafc;
}

/* Modal for Teaser Clicks */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 2000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #fff;
  max-width: 500px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.modal-content {
  padding: 20px 22px 24px;
}

.modal-tag {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.modal-desc {
  font-size: 0.94rem;
  color: #334155;
  margin-bottom: 16px;
}

.modal-close-btn {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--accent-primary-hover);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .portal-container {
    grid-template-columns: 230px minmax(0, 1fr) 230px;
    gap: 14px;
  }
  .article-main {
    padding: 22px 22px 30px;
  }
}

@media (max-width: 920px) {
  .portal-container {
    grid-template-columns: 1fr;
  }
  .teaser-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .sidebar-label {
    grid-column: 1 / -1;
  }
  .mid-teaser-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .teaser-sidebar {
    grid-template-columns: 1fr;
  }
}

