/* ============================================
   הכנסת News Portal — styles.css v3
   Mako/Walla-inspired RTL Hebrew News Design
   ============================================ */

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

:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --red: #e53935;
  --red-dark: #c62828;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray-100: #fafafa;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --nova: #1a73e8;
  --signal: #e53935;
  --axiom: #7b1fa2;
  --echo: #00796b;
  --vega: #f57c00;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --shadow-hover: 0 12px 36px rgba(0,0,0,.16);
  --radius: 8px;
  --radius-sm: 4px;
  --transition: .2s ease;
  --max-width: 1200px;
  --section-gap: 32px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: 'Heebo', Arial, sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Breaking Ticker ---------- */
.ticker-bar {
  background: var(--red);
  color: var(--white);
  font-size: .82rem;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.ticker-bar .ticker-label {
  background: var(--red-dark);
  padding: 0 16px;
  font-weight: 700;
  letter-spacing: .5px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.ticker-bar .ticker-label::before {
  content: "⚡";
  margin-left: 6px;
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 35s linear infinite;
  padding-right: 20px;
}

.ticker-track span {
  padding: 0 40px 0 40px;
  flex-shrink: 0;
}

.ticker-track span::after {
  content: "•";
  margin-right: 40px;
  opacity: .6;
}

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

/* ---------- Focus Areas Ticker ---------- */
.focus-ticker {
  background: var(--navy-light);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .5px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.focus-ticker span {
  display: inline-block;
  padding: 0 14px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 0;
  position: relative;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group { display: flex; align-items: baseline; gap: 14px; }

.logo {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
}

.logo .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: super;
  font-size: 0;
}

.tagline {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  font-weight: 300;
  letter-spacing: 1px;
}

.header-date {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  font-weight: 300;
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
  transition: background var(--transition);
}
.header-search:hover { background: rgba(255,255,255,.18); }
.header-search input {
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: .85rem;
  width: 160px;
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.4); }
.header-search svg { flex-shrink: 0; opacity: .5; }

/* ---------- Navigation ---------- */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow var(--transition);
}

.main-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
  background: rgba(229,57,53,.04);
}

.nav-links a.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
  background: rgba(229,57,53,.06);
}

.nav-mobile-toggle {
  display: none;
  font-size: 1.5rem;
  padding: 10px;
  color: var(--text-primary);
}

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

/* ---------- New Article Badge ---------- */
.new-article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,26,46,.06);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  margin: 16px auto;
  text-align: center;
  width: fit-content;
}

.new-article-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ---------- Persona Showcase ---------- */
.persona-showcase {
  margin: var(--section-gap) auto;
  max-width: var(--max-width);
  padding: 36px 24px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f2f4ff 50%, #f6f2ff 100%);
  border-radius: 16px;
}

.persona-showcase .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--navy);
}

.persona-showcase .section-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.persona-showcase .section-header .line {
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.persona-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gray-300);
  transition: all .3s cubic-bezier(.25,.8,.25,1);
}

.persona-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.persona-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  line-height: 1;
}

.persona-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.persona-card .persona-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: .5px;
}

.persona-card .persona-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.persona-card .persona-desc {
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Hero Wrapper ---------- */
.hero-wrapper {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  padding: 0 0 36px;
  position: relative;
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(26,115,232,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wrapper .new-article-badge {
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.07);
}

/* ---------- Hero Section ---------- */
.hero {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-900);
  cursor: pointer;
  transition: transform var(--transition);
}

.hero:hover { transform: scale(1.003); }

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  opacity: .7;
  transition: opacity var(--transition);
}

.hero:hover .hero-image { opacity: .55; }

.hero-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 80px 44px 40px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.15) 75%, transparent 100%);
  color: var(--white);
}

.hero-category {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
  letter-spacing: .5px;
}

.hero-title {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
  max-width: 720px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: .85;
  margin-bottom: 16px;
  max-width: 600px;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .85rem;
  opacity: .7;
}

.hero-meta .author-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  opacity: 1;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .82rem;
  letter-spacing: .3px;
}

.hero-meta .author-badge .badge-dot {
  display: none;
}

/* ---------- Main Layout ---------- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin: var(--section-gap) auto;
  max-width: var(--max-width);
  padding: 0 20px;
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
}

.section-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

/* ---------- Article Grid ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---------- Article Card (v3 — enhanced) ---------- */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.25,.8,.25,1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.8,.25,1);
}

.article-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

/* Category tag — prominent pill */
.card-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .3px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(229,57,53,.3);
}

/* Reading time badge */
.card-readtime-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.6);
  color: var(--white);
  font-size: .68rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.article-card:hover .card-title {
  color: var(--red);
}

.card-excerpt {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
  margin-top: auto;
  gap: 8px;
}

/* Persona badge — colored pill with white text */
.card-author {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 4px 10px;
  border-radius: 20px;
  font-size: .73rem;
  letter-spacing: .3px;
  color: var(--white);
  flex-shrink: 0;
  background: var(--gray-500);
}

.card-author .badge-dot {
  display: none; /* replaced by pill bg */
}

.card-time { color: var(--gray-500); flex-shrink: 0; }

/* Card share button */
.card-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  transition: all var(--transition);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  position: relative;
}

.card-share-btn:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* Card share dropdown */
.card-share-dropdown {
  display: none;
  position: absolute;
  bottom: 36px;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  gap: 6px;
  flex-direction: column;
  z-index: 50;
  min-width: 140px;
}

.card-share-dropdown.open {
  display: flex;
}

.card-share-dropdown a,
.card-share-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.card-share-dropdown a:hover,
.card-share-dropdown button:hover {
  background: var(--gray-100);
}

.card-share-dropdown .share-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-share-dropdown .share-icon.wa { background: #25d366; }
.card-share-dropdown .share-icon.tw { background: #1a1a1a; }

/* ---------- Empty State ---------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.empty-state .empty-persona {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  color: var(--white);
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: .92rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 70px; align-self: start; }

.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.sidebar-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header svg { flex-shrink: 0; }

.most-read-list { padding: 0; }

.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background var(--transition);
}

.most-read-item:last-child { border-bottom: none; }
.most-read-item:hover { background: var(--gray-100); }

.most-read-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.most-read-title {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}

.most-read-meta {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sidebar ad placeholder */
.sidebar-ad {
  background: var(--gray-200);
  border-radius: var(--radius);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: .8rem;
  font-weight: 500;
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--gray-200);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-card .skeleton-img {
  height: 200px;
}

.skeleton-card .skeleton-body { padding: 16px 18px; }
.skeleton-card .skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.skeleton-card .skeleton-line.w80 { width: 80%; }
.skeleton-card .skeleton-line.w60 { width: 60%; }
.skeleton-card .skeleton-line.w40 { width: 40%; }

.skeleton-hero {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  margin: 24px auto;
  max-width: var(--max-width);
}

/* ---------- Article Back Bar ---------- */
.article-back-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.back-btn:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.back-btn svg {
  flex-shrink: 0;
}

/* ---------- Article Loading State ---------- */
.article-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 20px;
}

.article-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .88rem;
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spinner-rotate .8s linear infinite;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  margin-top: 60px;
  padding: 40px 0 24px;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand .footer-desc {
  font-size: .82rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links-group { display: flex; gap: 60px; }

.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: .82rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer-social a:hover { background: rgba(255,255,255,.25); }

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: .78rem;
}

/* ---------- Article Page ---------- */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-hero-img {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-header {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 28px;
}

.article-header .article-category {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .5px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.article-header .article-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  font-weight: 300;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta-bar .author-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  color: var(--white);
  font-size: .82rem;
  letter-spacing: .3px;
}

.article-meta-bar .author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.article-meta-bar .author-badge .badge-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.article-meta-bar .separator {
  width: 4px;
  height: 4px;
  background: var(--gray-400);
  border-radius: 50%;
}

/* Article Body — optimized Hebrew long-form reading */
.article-body {
  font-size: 19px;
  line-height: 1.9;
  color: var(--text-primary);
  max-width: 720px;
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 26px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 42px 0 18px;
  color: var(--text-primary);
  padding-right: 16px;
  border-right: 4px solid var(--red);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-primary);
}

.article-body blockquote {
  border-right: 4px solid var(--red);
  padding: 16px 24px 16px 0;
  margin: 28px 0;
  background: var(--gray-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body strong { font-weight: 700; }
.article-body a { color: var(--nova); text-decoration: underline; }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 32px;
}

.article-tags .tag {
  background: var(--gray-200);
  color: var(--text-secondary);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--transition);
  font-weight: 500;
}

.article-tags .tag:hover {
  background: var(--navy);
  color: var(--white);
}

/* Related Articles */
.related-section {
  margin: 50px 0;
  padding: 30px 0;
  border-top: 3px solid var(--red);
}

.related-section h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Share bar (article page) — prominent */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 28px;
}

.share-bar span.share-label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s cubic-bezier(.25,.8,.25,1);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.twitter { background: #1a1a1a; color: #fff; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.copy { background: var(--gray-200); color: var(--gray-700); }
.share-btn:hover { opacity: .85; transform: scale(1.12); }
.share-btn.copied { background: #4caf50; color: #fff; }

/* ---------- Error State ---------- */
.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-state h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.error-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 900;
  font-size: 1.2rem;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover { background: var(--red); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.2rem; }
  .hero-wrapper { padding: 0 0 28px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .header-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .header-search { display: none; }
  .header-date { display: none; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 998;
  }
  .nav-links.open a { padding: 14px 24px; border-bottom: 1px solid var(--gray-200); }
  .nav-mobile-toggle { display: block; }

  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: .95rem; }
  .hero-overlay { padding: 40px 20px 28px; }
  .hero-image { aspect-ratio: 16 / 9; }
  .hero-wrapper { padding: 0 0 20px; }

  .articles-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .card-image-wrap { height: 180px; }

  .article-header h1 { font-size: 1.6rem; }
  .article-header .article-subtitle { font-size: 1rem; }
  .article-body { font-size: 17px; line-height: 1.85; }
  .article-hero-img { max-height: 280px; }

  .footer-top { flex-direction: column; }
  .footer-links-group { gap: 30px; }

  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-ticker { font-size: .8rem; padding: 6px 12px; }
}

@media (max-width: 480px) {
  .logo { font-size: 2.1rem; }
  .tagline { font-size: .75rem; }
  .hero-title { font-size: 1.3rem; }
  .card-title { font-size: 1rem; }
  .card-image-wrap { height: 160px; }
  .footer-links-group { flex-direction: column; gap: 20px; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .focus-ticker span { padding: 0 8px; font-size: .76rem; }
}

/* ---------- Print ---------- */
@media print {
  .ticker-bar, .main-nav, .site-footer, .share-bar,
  .back-to-top, .sidebar, .focus-ticker, .persona-showcase,
  .new-article-badge, .article-back-bar { display: none !important; }
  body { background: #fff; }
  .article-page { max-width: 100%; }
}
