/* ============================================================
   Malaysia Corporate — style.css
   "Driven by insight"
   Premium Dark News Portal 2026
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Colors */
  --primary:         #0A1628;
  --primary-light:   #0f2040;
  --accent:          #C8A84B;
  --accent-light:    #e2c070;
  --accent-dim:      rgba(200,168,75,0.15);
  --surface:         #111827;
  --surface-2:       #1a2332;
  --surface-3:       #1F2937;
  --text-primary:    #F9FAFB;
  --text-secondary:  #9CA3AF;
  --text-muted:      #6B7280;
  --text-accent:     #C8A84B;
  --red-breaking:    #EF4444;
  --green-live:      #10B981;
  --border:          #1F2937;
  --border-accent:   rgba(200,168,75,0.3);
  --glass:           rgba(15,32,64,0.7);
  --glass-border:    rgba(200,168,75,0.2);

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* Spacing */
  --container:   1280px;
  --gutter:      clamp(1rem, 4vw, 2rem);

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur:         0.25s;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px rgba(200,168,75,0.15);
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

ul, ol { list-style: none; }

/* ─── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── BREAKING NEWS TICKER ───────────────────────────────────── */
.breaking-bar {
  background: var(--red-breaking);
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.breaking-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.breaking-bar__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
  color: #fff;
  flex-shrink: 0;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.ticker {
  display: flex;
  gap: 3rem;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker:hover { animation-play-state: paused; }

.ticker__item {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

.ticker__item:hover { color: rgba(255,255,255,0.8); }
.ticker__sep { color: rgba(255,255,255,0.4); flex-shrink: 0; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── TOP NAV ─────────────────────────────────────────────────── */
.topnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.topnav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topnav__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.topnav__links {
  display: flex;
  gap: 1.25rem;
}

.topnav__links a {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.topnav__links a:hover { color: var(--accent); }

/* ─── HEADER ──────────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  border-bottom: 2px solid var(--border-accent);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
}

.site-logo__name {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-logo__name span {
  color: var(--accent);
}

.site-logo__tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Search bar in header */
.header-search {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 2.5rem 0.5rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.header-search__icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ─── MAIN NAVIGATION ─────────────────────────────────────────── */
.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.main-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-nav__inner::-webkit-scrollbar { display: none; }

.main-nav__item {
  display: block;
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
}

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

.main-nav__item--hot::after {
  content: 'BARU';
  font-family: var(--font-mono);
  font-size: 0.55rem;
  background: var(--red-breaking);
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.main-nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ─── HERO SECTION ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(400px, 60vh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #162040 40%, #1a2a4a 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A84B' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.6) 50%, rgba(10,22,40,0.1) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  max-width: 800px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

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

.hero__excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero__meta .author { color: var(--accent); font-weight: 500; }

.hero__cats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* ─── BADGES / CATEGORY TAGS ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  transition: all var(--dur) var(--ease);
}

.badge--utama      { background: rgba(200,168,75,0.15); color: var(--accent); border: 1px solid rgba(200,168,75,0.3); }
.badge--korporat   { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge--kewangan   { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge--politik    { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge--terkini    { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.badge--kes        { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
.badge--global     { background: rgba(20,184,166,0.15); color: #2dd4bf; border: 1px solid rgba(20,184,166,0.3); }
.badge--editorial  { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }
.badge--ekonomi    { background: rgba(16,185,129,0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.badge--laporan    { background: rgba(236,72,153,0.15); color: #f472b6; border: 1px solid rgba(236,72,153,0.3); }
.badge--breaking   { background: var(--red-breaking); color: #fff; border: 1px solid var(--red-breaking); animation: pulse-badge 2s ease infinite; }

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

/* ─── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent);
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-header__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--dur) var(--ease);
}

.section-header__link:hover { gap: 0.7rem; }

/* ─── MAIN LAYOUT ─────────────────────────────────────────────── */
.main-wrapper {
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

/* ─── ARTICLE GRID (featured) ────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.featured-grid .article-card:first-child {
  grid-row: span 2;
}

/* ─── ARTICLE CARD ───────────────────────────────────────────── */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.article-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-2);
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.05);
}

.article-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

.article-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-card__cats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__title a:hover { color: var(--accent-light); }

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-card__author { color: var(--accent); font-weight: 500; }
.article-card__dot    { opacity: 0.3; }

/* Article card sizes */
.article-card--large .article-card__title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  -webkit-line-clamp: 4;
}

.article-card--small .article-card__body { padding: 0.875rem; gap: 0.5rem; }
.article-card--small .article-card__title { font-size: 0.95rem; }

/* ─── LIST ARTICLE (compact) ─────────────────────────────────── */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-list-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}

.article-list-item:last-child { border-bottom: none; }

.article-list-item:hover { background: rgba(200,168,75,0.03); }

.article-list-item__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--border);
  flex-shrink: 0;
  width: 2rem;
  line-height: 1;
  padding-top: 0.15rem;
}

.article-list-item__body { flex: 1; }

.article-list-item__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list-item__title a:hover { color: var(--accent-light); }

.article-list-item__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.article-list-item__thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}

.article-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── CATEGORY STRIP ─────────────────────────────────────────── */
.cat-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.cat-strip__articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 120px;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.widget__header {
  padding: 0.875rem 1.25rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget__header h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.widget__body { padding: 1rem 1.25rem; }

/* Category widget */
.cat-list { display: flex; flex-direction: column; gap: 0.25rem; }

.cat-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--dur) var(--ease);
}

.cat-list__item:hover {
  background: var(--accent-dim);
  color: var(--accent);
  padding-left: 0.875rem;
}

.cat-list__count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

/* Recent posts widget */
.recent-list { display: flex; flex-direction: column; gap: 0; }

.recent-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.recent-item:last-child { border-bottom: none; }

.recent-item__thumb {
  width: 64px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}

.recent-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.recent-item__title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-item__title:hover { color: var(--accent-light); }

.recent-item__date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Archive widget */
.archive-list { display: flex; flex-direction: column; gap: 0; }

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}

.archive-item:last-child { border-bottom: none; }
.archive-item:hover { color: var(--accent); }
.archive-item__count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.pagination__item:hover,
.pagination__item.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.pagination__ellipsis {
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0 0.25rem;
}

/* ─── ARTICLE SINGLE PAGE ────────────────────────────────────── */
.single-wrapper {
  padding: 3rem 0;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-header { margin-bottom: 2rem; }

.article-header__cats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.article-header__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--surface-2);
}

.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article body content */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body p { margin-bottom: 1.5rem; }

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--accent-dim);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-light); }

/* ─── RELATED ARTICLES ───────────────────────────────────────── */
.related-articles {
  padding-top: 2.5rem;
  border-top: 2px solid var(--border);
  margin-top: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 1rem 0;
  flex-wrap: wrap;
}

.breadcrumb__sep { opacity: 0.4; }
.breadcrumb a { color: var(--text-muted); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__current { color: var(--text-secondary); }

/* ─── CATEGORY PAGE ───────────────────────────────────────────── */
.category-header {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-bottom: 2px solid var(--border-accent);
  padding: 2.5rem 0;
  margin-bottom: 3rem;
}

.category-header__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.category-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.category-header__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ─── WRITER / AUTHOR PAGE ───────────────────────────────────── */
.author-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--surface-2));
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.author-info__name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-info__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.author-info__bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 500px;
}

/* ─── NEWSLETTER CTA ─────────────────────────────────────────── */
.newsletter {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--primary-light) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,168,75,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.newsletter__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur) var(--ease);
}

.newsletter__input:focus { border-color: var(--accent); }
.newsletter__input::placeholder { color: var(--text-muted); }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--gold {
  background: var(--accent);
  color: var(--primary);
}

.btn--gold:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,168,75,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.btn--outline:hover {
  background: var(--accent-dim);
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.footer-brand__logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-brand__logo span { color: var(--accent); }

.footer-brand__tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-brand__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social__link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--dur) var(--ease);
}

.footer-social__link:hover {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
  padding: 0.15rem 0;
}

.footer-links a:hover { color: var(--accent); padding-left: 0.25rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom__links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom__links a {
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

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

/* ─── MOBILE NAV DRAWER ───────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.mobile-nav__drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-nav.open { pointer-events: all; }
.mobile-nav.open .mobile-nav__overlay { opacity: 1; }
.mobile-nav.open .mobile-nav__drawer { transform: translateX(0); }

.mobile-nav__close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav__links a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all var(--dur) var(--ease);
}

.mobile-nav__links a:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 1.25rem;
}

/* ─── UTILITIES ───────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-muted); }
.text-serif    { font-family: var(--font-serif); }
.text-mono     { font-family: var(--font-mono); }

.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 1rem; }
.mt-4  { margin-top: 1.5rem; }
.mt-6  { margin-top: 2.5rem; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
}

.tag-cloud a {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}

.tag-cloud a:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}

/* ─── LOADING SKELETON ───────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ─── SCROLL TO TOP ───────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(200,168,75,0.35);
  opacity: 0;
  transform: translateY(1rem);
  transition: all var(--dur) var(--ease);
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ─── DARK ACCENT DIVIDER ────────────────────────────────────── */
.accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
  margin: 0.5rem 0 1.5rem;
  width: 60px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-grid       { grid-template-columns: 1fr; }
  .sidebar            { position: static; }
  .featured-grid      { grid-template-columns: 1fr; }
  .featured-grid .article-card:first-child { grid-row: span 1; }
  .cat-strip__articles { grid-template-columns: repeat(2, 1fr); }
  .footer-top         { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .single-layout      { grid-template-columns: 1fr; }
  .related-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav__hamburger { display: block; }
  .site-header__inner { gap: 1rem; }
  .header-search { display: none; }
  .hero__content { padding: 2rem 0; }
  .cat-strip__articles { grid-template-columns: 1fr; }
  .newsletter { padding: 2rem 1.25rem; }
  .newsletter__form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .author-header { flex-direction: column; text-align: center; }
  .topnav { display: none; }
  .breaking-bar__label { display: none; }
}

@media (max-width: 480px) {
  .featured-grid { gap: 0.875rem; }
  .article-card__body { padding: 1rem; }
  .pagination__item { width: 36px; height: 36px; }
  .newsletter__title { font-size: 1.3rem; }
}

/* ─── PRINT STYLES ────────────────────────────────────────────── */
@media print {
  .breaking-bar, .topnav, .site-header, .main-nav,
  .sidebar, .newsletter, .site-footer, .scroll-top { display: none !important; }
  body { background: #fff; color: #000; }
  .article-body { font-size: 12pt; line-height: 1.6; }
  .article-header__title { font-size: 20pt; color: #000; }
}

/* ─── FOCUS ACCESSIBILITY ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── SELECTION ───────────────────────────────────────────────── */
::selection {
  background: var(--accent-dim);
  color: var(--accent-light);
}
