/* =====================================================================
   FreeInfo — app.css
   Design north star: soft blue hero, pink accent, white floating cards,
   dark category pill badges, Poppins headings.
   ===================================================================== */

:root {
  --bg-hero: linear-gradient(135deg, #dceeff 0%, #eaf4ff 40%, #f0f4ff 100%);
  --bg-page: #f4f7fb;
  --bg-white: #ffffff;
  --bg-dark: #1a1a2e;

  --accent-pink: #e84393;
  --accent-pink-hover: #c73280;
  --accent-blue: #29b6f6;
  --accent-cyan: #00bcd4;

  --text-primary: #1a1a2e;
  --text-body: #444455;
  --text-muted: #888899;
  --text-link: #e84393;

  --border-color: #e8edf5;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  /* Soft pastel "orbs" bleeding in from the corners over a light base —
     a gentle all-over gradient canvas (Gicon-style) for the white cards. */
  background:
    radial-gradient(58vw 52vh at 0% 0%,    rgba(232, 67, 147, 0.10), transparent 60%),
    radial-gradient(55vw 55vh at 100% 2%,  rgba(41, 182, 246, 0.13), transparent 60%),
    radial-gradient(50vw 55vh at 100% 100%, rgba(124, 77, 255, 0.09), transparent 58%),
    radial-gradient(52vw 50vh at 0% 100%,  rgba(0, 188, 212, 0.09), transparent 58%),
    var(--bg-page);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .brand-name, .hero-title, .card-title, .single-title {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  line-height: 1.25;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--accent-pink-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Prevent long unbroken strings (URLs, long Hebrew words) from forcing
   horizontal scroll on small screens. */
body { overflow-x: hidden; }
.card-title, .single-title, .hero-title, .article-body, .card-excerpt,
.result-body, .page-content, .legal, .source-title { overflow-wrap: break-word; }
.article-body img { border-radius: var(--radius-sm); margin: 10px 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.page-wrap { padding-bottom: 60px; }

/* ---------- Buttons ---------- */
.btn-pink {
  background: var(--accent-pink); color: #fff; border: none;
  border-radius: 999px; padding: 11px 22px; font-weight: 600;
  font-family: 'Poppins', sans-serif; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; transition: background .2s, transform .2s;
  font-size: 14px;
}
.btn-pink:hover { background: var(--accent-pink-hover); color: #fff; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 800; font-size: 22px; color: var(--text-primary); letter-spacing: -.5px; }
.brand-mark {
  display: grid; grid-template-columns: 1fr 1fr; grid-gap: 3px;
  width: 26px; height: 26px;
}
.brand-mark .dot { border-radius: 50%; width: 100%; height: 100%; display: block; }
.brand-mark .d1 { background: var(--accent-pink); }
.brand-mark .d2 { background: var(--accent-blue); }
.brand-mark .d3 { background: var(--accent-cyan); }
.brand-mark .d4 { background: #ffa726; }

.main-nav { display: flex; gap: 26px; position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
.main-nav a { color: var(--text-primary); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--accent-pink); }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn {
  background: #f3f6fb; border: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--accent-blue); transition: background .2s;
}
.icon-btn:hover { background: #e6eefb; }
.btn-subscribe {
  background: var(--accent-pink); color: #fff; border: none; cursor: pointer; border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-family: 'Poppins', sans-serif;
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
  transition: background .2s, transform .2s;
}
.btn-subscribe:hover { background: var(--accent-pink-hover); color: #fff; transform: translateY(-1px); }
.hamburger { display: none; }

/* ---------- Hero ---------- */
/* Hero shares the page's gradient canvas; a faint wash adds depth without a hard band. */
.hero { background: linear-gradient(180deg, rgba(220,238,255,0.45) 0%, rgba(240,244,255,0.10) 100%); min-height: 300px; display: flex; align-items: center; }
.hero--page { min-height: 220px; }
.hero-inner { text-align: center; padding: 40px 20px; width: 100%; }
.hero-sub { color: var(--accent-pink); font-weight: 600; margin: 0 0 14px; font-size: 16px; }
.hero-title { font-size: 52px; font-weight: 800; margin: 0 0 30px; letter-spacing: -1px; }
.hero-search {
  max-width: 580px; margin: 0 auto; background: #fff; border-radius: 999px;
  display: flex; align-items: center; padding: 7px 7px 7px 24px;
  box-shadow: 0 10px 40px rgba(40,80,160,.12);
}
.hero-search input {
  flex: 1; border: none; outline: none; font-size: 16px; font-family: 'Inter', sans-serif;
  background: transparent; color: var(--text-primary);
}
.hero-search button {
  border: none; cursor: pointer; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.hero-search button:hover { transform: scale(1.05); }

/* ---------- Layout grid ---------- */
.layout-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 36px;
  margin-top: 26px;
}
.main-col { min-width: 0; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }

.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

.card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .card-thumb { transform: scale(1.05); }
.thumb-fallback {
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85);
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 56px;
}

.cat-pill {
  position: absolute; top: 14px; right: 14px; background: var(--bg-dark);
  color: #fff; font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; font-family: 'Poppins', sans-serif;
}
.cat-pill .cat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-pink); display: inline-block; }
.featured-flag {
  position: absolute; top: 14px; left: 14px; background: var(--accent-pink); color: #fff;
  font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; font-family: 'Poppins', sans-serif;
}

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.card-title { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.35; }
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--accent-pink); }
.card-excerpt { margin: 0; color: var(--text-body); font-size: 14.5px; }

.card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--text-muted); font-size: 13px; }
.meta-author { font-weight: 600; color: var(--text-primary); }
.meta-sep { color: var(--text-muted); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  color: #fff; font-weight: 700; font-family: 'Poppins', sans-serif; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; flex: none;
}
.avatar-lg { width: 56px; height: 56px; font-size: 24px; }

/* Featured card spans full width with bigger image */
.post-card--featured .card-media { aspect-ratio: 16/8; }
.post-card--featured .card-title { font-size: 28px; }
.post-card--featured .card-excerpt { font-size: 16px; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); }
.widget-title {
  font-size: 17px; font-weight: 700; margin: 0 0 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color); position: relative;
}
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--accent-pink); }

.latest-list, .cat-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.latest-list li:last-child { border-bottom: none; }
.latest-thumb { width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.latest-img { width: 100%; height: 100%; object-fit: cover; }
.latest-img.thumb-fallback { font-size: 26px; }
.latest-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--text-primary); line-height: 1.35; display: block; }
.latest-title:hover { color: var(--accent-pink); }
.latest-meta { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.cat-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-color); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 500; }
.cat-list a:hover { color: var(--accent-pink); }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-pink); display: inline-block; }
.cat-count { background: #f3f6fb; color: var(--text-muted); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-pill {
  background: #f3f6fb; color: var(--text-body); padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; transition: background .2s, color .2s;
}
.tag-pill:hover { background: var(--accent-pink); color: #fff; }

.widget-search-form, .footer-news-form { display: flex; gap: 8px; }
.widget-search-form input, .newsletter-form input {
  flex: 1; border: 1px solid var(--border-color); border-radius: 999px; padding: 10px 16px;
  outline: none; font-family: 'Inter', sans-serif; font-size: 14px;
}
.widget-search-form input:focus, .newsletter-form input:focus { border-color: var(--accent-pink); }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.widget-newsletter p { font-size: 14px; margin: 0; }

.ad-slot {
  border: 2px dashed var(--border-color); border-radius: var(--radius-sm);
  height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; text-align: center;
}
.ad-slot span { font-family: 'JetBrains Mono', monospace; font-size: 16px; margin-top: 4px; }
.widget-empty { color: var(--text-muted); font-size: 14px; }

/* ---------- Pagination ---------- */
.pagination-wrap { margin: 40px 0 10px; }
.pagination { display: flex; gap: 8px; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination .page-item .page-link {
  border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 9px 15px;
  color: var(--text-primary); background: #fff; font-weight: 600; font-family: 'Poppins', sans-serif;
}
.pagination .page-item.active .page-link, .pagination .page-link:hover { background: var(--accent-pink); color: #fff; border-color: var(--accent-pink); }

/* ---------- Breadcrumb / archive heads ---------- */
.article-top { margin-top: 26px; }
.breadcrumb-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-muted); }
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--accent-pink); }
.bc-current { color: var(--text-primary); font-weight: 600; }
.page-breadcrumb { margin-top: 26px; }
.archive-head { margin-top: 18px; padding-bottom: 6px; border-bottom: 3px solid var(--cat-color, var(--accent-pink)); display: inline-block; }
.archive-head h1 { font-size: 38px; font-weight: 800; margin: 0 0 6px; }
.archive-head p { margin: 0 0 8px; color: var(--text-body); }
.archive-count { font-size: 13px; color: var(--text-muted); }

/* ---------- Topics index (gradient bubbles) ---------- */
.topic-bubbles {
  display: flex; flex-wrap: wrap; gap: 16px 18px; justify-content: flex-start;
  align-items: center; margin: 44px 0 64px;
}
.tbubble {
  --g1: #e84393; --g2: #ff6fae;
  display: inline-flex; align-items: center; gap: 9px;
  padding: .8em 1.45em; border-radius: 999px; line-height: 1;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.14);
  box-shadow: 0 5px 14px -7px var(--g1), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  animation: bubbleIn .55s cubic-bezier(.34,1.56,.64,1) backwards,
             bubbleFloat 6s ease-in-out infinite;
  will-change: transform;
}
/* Pause the idle float on hover; spring up instead. */
.tbubble:hover {
  color: #fff; transform: translateY(-7px) scale(1.08) rotate(-2deg);
  box-shadow: 0 10px 22px -8px var(--g1), inset 0 1px 0 rgba(255,255,255,.4);
  animation-play-state: paused, paused;
}
.tbubble .tb-hash { opacity: .65; font-weight: 800; }
.tbubble .tb-count {
  background: rgba(255,255,255,.28); border-radius: 999px;
  padding: 2px 9px; font-size: .72em; font-weight: 800; min-width: 1.4em; text-align: center;
}

/* 8 cycling gradient variants */
.tbubble--1 { --g1:#f06ba8; --g2:#ff9ac8; }
.tbubble--2 { --g1:#56bdf6; --g2:#86d4fb; }
.tbubble--3 { --g1:#9b7bff; --g2:#c0a8ff; }
.tbubble--4 { --g1:#2bcbdd; --g2:#6bdce8; }
.tbubble--5 { --g1:#ffa94d; --g2:#ffc985; }
.tbubble--6 { --g1:#69c06d; --g2:#9bd79e; }
.tbubble--7 { --g1:#f06f99; --g2:#f8a6c2; }
.tbubble--8 { --g1:#7e8ad6; --g2:#a7b0e3; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(14px) scale(.7); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .tbubble { animation: none; }
}

/* ---------- Categories index (tiles) ---------- */
.cat-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px; margin: 30px 0 56px;
}
.cat-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: 32px 20px; border-radius: var(--radius);
  background: #fff;
  background: color-mix(in srgb, var(--c) 9%, #fff);
  border: 1px solid var(--border-color);
  border-color: color-mix(in srgb, var(--c) 22%, var(--border-color));
  box-shadow: var(--card-shadow); color: var(--text-primary);
  transition: transform .25s, box-shadow .25s;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); color: var(--text-primary); }
.cat-tile-icon {
  width: 62px; height: 62px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 45%, transparent);
}
.cat-tile-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; }
.cat-tile-count { font-size: 13px; color: var(--text-muted); }

/* ---------- Single article ---------- */
.single-head { margin-bottom: 22px; }
.single-cat-pill { display: inline-block; background: var(--accent-pink); color: #fff; font-weight: 600; font-size: 13px; padding: 6px 16px; border-radius: 999px; font-family: 'Poppins', sans-serif; }
.single-title { font-size: 40px; font-weight: 800; margin: 16px 0 16px; letter-spacing: -.5px; }
.single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--text-muted); font-size: 14px; }
.single-hero-img { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.single-hero-img img { width: 100%; }

.single-share { display: flex; gap: 10px; margin-bottom: 26px; align-items: center; }
.single-share a, .single-share button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer;
  color: var(--text-primary); font-family: 'Poppins', sans-serif; transition: all .2s; font-size: 14px;
}
.single-share a:hover, .single-share button:hover { background: var(--accent-pink); color: #fff; border-color: var(--accent-pink); }
.share-copy { width: auto !important; border-radius: 999px !important; padding: 0 18px; }

.article-body { font-size: 17px; color: var(--text-body); line-height: 1.8; }
.article-body h2 { font-size: 27px; font-weight: 700; margin: 36px 0 14px; }
.article-body h3 { font-size: 21px; font-weight: 700; margin: 28px 0 12px; }
.article-body h4 { font-size: 18px; font-weight: 600; margin: 22px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin-bottom: 9px; }
.article-body a { color: var(--accent-pink); text-decoration: underline; }

.article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0; }

/* Sources block — trust centerpiece */
.sources-block { margin: 40px 0; padding: 26px; background: #fbfcfe; border: 1px solid var(--border-color); border-radius: var(--radius); }
.sources-heading { font-size: 20px; font-weight: 700; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.sources-heading::after { content: ''; flex: 1; height: 2px; background: var(--border-color); }
.sources-list { display: flex; flex-direction: column; gap: 10px; }
.source-row {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 12px 16px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.source-row:hover { border-color: var(--accent-pink); box-shadow: var(--card-shadow); transform: translateX(3px); }
.source-favicon { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.source-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.source-title { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--text-primary); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-domain { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-muted); }
.source-ext { color: var(--text-muted); flex: none; }
.source-row:hover .source-ext { color: var(--accent-pink); }

.author-bio { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); margin: 30px 0; }
.author-bio h4 { margin: 0 0 6px; font-size: 18px; }
.author-bio p { margin: 0; font-size: 14.5px; }

.section-heading { font-size: 26px; font-weight: 700; margin: 40px 0 4px; }
.related { margin-top: 20px; }
.comments-placeholder { margin-top: 30px; }
.comments-box { background: #fff; border-radius: var(--radius); padding: 30px; text-align: center; color: var(--text-muted); box-shadow: var(--card-shadow); }

/* ---------- Search page ---------- */
.search-page { margin-top: 40px; }
.search-page-bar {
  max-width: 640px; margin: 0 auto 26px; background: #fff; border-radius: 999px;
  display: flex; align-items: center; padding: 6px 6px 6px 22px; box-shadow: var(--card-shadow);
}
.search-page-bar input { flex: 1; border: none; outline: none; font-size: 16px; background: transparent; }
.search-page-bar button { border: none; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-pink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.search-count { text-align: center; color: var(--text-muted); margin-bottom: 26px; }
.search-results { display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin: 0 auto; }
.result-row { display: flex; gap: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.result-thumb { width: 200px; flex: none; }
.result-img { width: 100%; height: 100%; object-fit: cover; min-height: 130px; }
.result-img.thumb-fallback { font-size: 40px; }
.result-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.result-body h3 { margin: 0; font-size: 20px; }
.result-body h3 a { color: var(--text-primary); }
.result-body h3 a:hover { color: var(--accent-pink); }
.result-body p { margin: 0; font-size: 14.5px; }

/* ---------- Pages / forms ---------- */
.page-content { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--card-shadow); }
.page-content .lead { font-size: 19px; color: var(--text-primary); }
.page-content h2 { font-size: 24px; margin: 28px 0 12px; }
/* Legal pages (privacy / terms) */
.legal-page { max-width: 880px; margin: 40px auto 0; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--text-body); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.empty-state { background: #fff; border-radius: var(--radius); padding: 60px 30px; text-align: center; box-shadow: var(--card-shadow); margin-top: 26px; }
.empty-state h2 { margin: 0 0 8px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--text-primary); font-size: 14px; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px 15px;
  font-family: 'Inter', sans-serif; font-size: 15px; outline: none; font-weight: 400; color: var(--text-body);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.alert-success { background: #e7f9ef; color: #1c7a47; }
.alert-error { background: #fdeaf1; color: #c0306a; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #c9cbe0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; padding: 56px 20px 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #c9cbe0; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent-pink); }
.brand--footer .brand-name { color: #fff; }
.footer-tagline { margin: 16px 0 0; font-size: 14px; color: #9a9cb8; max-width: 280px; }
.footer-news-blurb { font-size: 14px; margin: 0 0 14px; }
.footer-news-form { gap: 8px; }
.footer-news-form input { flex: 1; border: none; border-radius: 999px; padding: 10px 16px; outline: none; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; font-size: 13px; color: #9a9cb8; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: #9a9cb8; }
.footer-bottom a:hover { color: var(--accent-pink); }

/* ---------- Search lightbox ---------- */
.search-lightbox {
  position: fixed; inset: 0; background: rgba(26,26,46,.94); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.search-lightbox.open { display: flex; }
.search-lightbox-form { width: 100%; max-width: 640px; background: #fff; border-radius: 999px; display: flex; align-items: center; padding: 8px 8px 8px 26px; }
.search-lightbox-form input { flex: 1; border: none; outline: none; font-size: 18px; background: transparent; }
.search-lightbox-form button { border: none; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue)); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.search-lightbox-close { position: absolute; top: 28px; right: 36px; background: none; border: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; }

/* =====================================================================
   RTL + Hebrew
   ===================================================================== */
html[lang="he"] body,
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] h4, html[lang="he"] h5,
html[lang="he"] .brand-name, html[lang="he"] .hero-title, html[lang="he"] .card-title, html[lang="he"] .single-title,
html[lang="he"] .btn-pink, html[lang="he"] .btn-subscribe, html[lang="he"] .btn-sm {
  font-family: 'Heebo', 'Inter', system-ui, sans-serif;
}

[dir="rtl"] body { text-align: right; }
[dir="rtl"] .cat-pill { right: auto; left: 14px; }
[dir="rtl"] .featured-flag { left: auto; right: 14px; }
[dir="rtl"] .widget-title::after { left: auto; right: 0; }
[dir="rtl"] .article-body { text-align: right; }
[dir="rtl"] .article-body ul, [dir="rtl"] .article-body ol { padding-right: 24px; padding-left: 0; }
[dir="rtl"] .single-share { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .source-info { text-align: right; }
[dir="rtl"] .hero-search { padding: 7px 24px 7px 7px; }
[dir="rtl"] .search-page-bar { padding: 6px 22px 6px 6px; }
[dir="rtl"] .widget-search-form input, [dir="rtl"] .newsletter-form input { text-align: right; }
[dir="rtl"] .breadcrumb-nav { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .contact-form label, [dir="rtl"] .page-content, [dir="rtl"] .legal { text-align: right; }
[dir="rtl"] .footer-col ul { padding: 0; }
[dir="rtl"] .pagination { direction: ltr; justify-content: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .layout-grid { grid-template-columns: 1fr; }
  .post-grid--3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 40px; }
}
@media (max-width: 768px) {
  /* Background gradients: use scroll (fixed attachment is janky on mobile). */
  body { background-attachment: scroll; }

  .main-nav {
    position: fixed; top: 74px; left: 0; right: 0; transform: none; background: #fff; flex-direction: column;
    gap: 0; padding: 10px 20px; border-bottom: 1px solid var(--border-color); display: none;
    box-shadow: var(--card-shadow); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
  .hamburger { display: inline-flex; }
  .header-inner { gap: 12px; }
  .btn-subscribe { font-size: 13px; padding: 9px 15px; }

  .hero { min-height: 220px; }
  .hero--page { min-height: 170px; }
  .hero-inner { padding: 34px 20px; }
  .hero-title { font-size: 32px; margin-bottom: 22px; }
  .hero-sub { font-size: 14px; }

  .post-grid, .post-grid--3 { grid-template-columns: 1fr; }
  .post-card--featured .card-title { font-size: 22px; }
  .post-card--featured .card-media { aspect-ratio: 16/10; }

  .single-title { font-size: 28px; }
  .article-body { font-size: 16px; line-height: 1.75; }
  .article-body h2 { font-size: 23px; }
  .article-body h3 { font-size: 19px; }
  .section-heading { font-size: 22px; }

  .result-row { flex-direction: column; }
  .result-thumb { width: 100%; height: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom nav { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 16px 32px; }
  .hero-title { font-size: 26px; }
  .brand-name { font-size: 19px; }
  /* On the tightest screens, collapse the Search button to just its icon. */
  .btn-subscribe { font-size: 0; gap: 0; padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 50%; }
  .btn-subscribe svg { width: 18px; height: 18px; }
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-tile { padding: 24px 14px; }
  .widget, .page-content { padding: 20px; }
  .single-hero-img { border-radius: var(--radius-sm); }
}
