@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Lexend:wght@400;500;600;700&display=swap');

/* =============================================
   GLOBAL LAYOUT + POLISH
   ============================================= */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: color 0.2s ease; }

/* === STICKY NAVBAR === */
.navbar-hebrew.fixed-top,
.navbar.fixed-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1050;
}

/* === CATEGORY BAR STICKY BELOW NAV === */
.cat-bar {
  position: sticky;
  top: 52px;
  z-index: 100;
}
.cat-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }

/* === READING PROGRESS === */
.progress-bar-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
}

/* === POST GRID LAYOUT === */
.article-body-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
  gap: 32px;
  align-items: start;
}

/* === ARTICLE HEADER === */
.article-header {
  padding: 32px 0 24px;
}
.article-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 12px;
}

/* === ARTICLE MAIN COLUMN === */
.article-main {
  overflow: hidden;
}
.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.article-content {
  padding: 32px 36px;
}
.article-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.article-subtitle {
  font-size: 1.12rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  margin-top: 12px;
}

/* === CONTENT TYPOGRAPHY === */
.content-area {
  font-size: 1.05rem;
  line-height: 1.8;
}
.content-area h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  font-size: 1.4rem;
}
.content-area h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}
.content-area p {
  margin-bottom: 1.4rem;
}
.content-area img {
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.content-area ul, .content-area ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}
.content-area li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.content-area pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* === POST NAVIGATION === */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding: 0 36px 32px;
}
.post-nav a {
  display: block;
  padding: 16px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}
.nav-title {
  font-size: 0.92rem;
  display: block;
  line-height: 1.35;
}

/* === RELATED === */
.related-section {
  padding: 28px 36px 36px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.related-section h4 {
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.related-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.related-row:hover {
  background: rgba(0,0,0,0.02);
}
.related-row img {
  width: 100px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.related-info h6 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  line-height: 1.3;
}
.related-excerpt {
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === SIDEBAR (POST PAGE) === */
.article-sidebar {
  position: relative;
}
.sidebar-sticky {
  position: sticky;
  top: 95px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.article-sidebar .sidebar-widget {
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar-widget-title {
  font-size: 0.82rem;
  padding: 14px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin: 0;
}
.sidebar-toc a {
  display: block;
  padding: 9px 16px;
  font-size: 0.86rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  line-height: 1.3;
}
.sidebar-recent a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-recent a:hover {
  background: rgba(0,0,0,0.02);
}
.sidebar-recent .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-recent .recent-title {
  font-size: 0.88rem;
  line-height: 1.3;
}
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-cats a:hover {
  background: rgba(0,0,0,0.02);
}
.sidebar-cats .cat-count {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* === FLOATING SHARE === */
.floating-share {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.floating-share a, .floating-share span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.floating-share a:hover, .floating-share span:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* === HEADER SHARE === */
.header-share {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.header-share a, .header-share span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
  cursor: pointer;
}

/* === BLOG INDEX LAYOUT === */
.featured-section {
  overflow: hidden;
  margin-bottom: 28px;
}
.article-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* === MOBILE === */
@media (max-width: 992px) {
  .article-body-wrap {
    grid-template-columns: 1fr !important;
    padding: 16px 12px;
    gap: 20px;
  }
  .article-sidebar { display: none; }
  .article-content { padding: 20px 16px; }
  .article-title { font-size: 1.65rem !important; }
  .post-nav { padding: 0 16px 24px; grid-template-columns: 1fr; }
  .related-section { padding: 20px 16px; }
  .article-header { padding: 20px 0 16px; }
  .floating-share { display: none !important; }
  .featured-main { min-height: 280px !important; }
  .navbar, .navbar-hebrew { padding: 0 12px !important; }
}
@media (max-width: 576px) {
  .article-title { font-size: 1.4rem !important; }
  .article-content { padding: 16px 12px; }
  .content-area { font-size: 0.98rem; }
}


:root {
  --brand-font: 'Lexend', sans-serif; --heading-font: 'Outfit', sans-serif;
  --code-font: 'JetBrains Mono', monospace; --body-font: 'Inter', sans-serif;
  --primary: #00695c; --primary-dark: #004d40; --neon: #00e676;
  --neon-dim: rgba(0,230,118,0.08); --surface: #ffffff; --bg: #f4f9f8;
  --text: #1a2a2a; --text-muted: #6b8080; --border: #dcecea; --dark: #0a1f1c;
}
body { font-family: var(--body-font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 0.95rem; }
h1,h2,h3,h4,h5 { font-family: var(--heading-font); font-weight: 700; color: var(--primary-dark); }

.navbar, .navbar-hebrew { background: var(--dark) !important; border-bottom: 1px solid rgba(0,230,118,0.15); padding: 0 24px !important; min-height: 52px; }
.navbar .navbar-brand { font-family: var(--brand-font) !important; font-size: 1.15rem !important; font-weight: 700 !important; color: var(--neon) !important; }
.navbar .navbar-brand::before { content: '> '; font-family: var(--code-font); color: rgba(0,230,118,0.4); font-size: 0.9rem; }
.navbar a.nav-link, .navbar .nav-item a { font-family: var(--code-font) !important; font-size: 0.78rem !important; color: #6b9b95 !important; letter-spacing: 0.3px; }
.navbar a:hover { color: var(--neon) !important; }

.cat-bar, .categories-nav, .category-bar { background: #122a27; border-bottom: 1px solid rgba(0,230,118,0.06); }
.cat-bar a, .cat-bar-link, .category-bar a, .categories-nav a { font-family: var(--code-font); font-size: 0.72rem; color: #5a8a84; padding: 10px 14px; border-radius: 6px; transition: all 0.2s; }
.cat-bar a:hover, .cat-bar-link:hover, .cat-bar-link.active, .category-bar a:hover { color: var(--neon); background: var(--neon-dim); }

.featured-section { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,105,92,0.04); }
.featured-main { min-height: 400px; background: linear-gradient(135deg, #0a1f1c 0%, #004d40 40%, #00695c 70%, #004d40 100%) !important; position: relative; }
.featured-main::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2300e676' fill-opacity='0.04'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E"); }
.featured-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,31,28,0.7), rgba(0,77,64,0.4)); }
.featured-main .featured-title { font-family: var(--heading-font) !important; font-size: 1.75rem !important; font-weight: 700; color: #fff; }
.featured-main .featured-category { background: var(--neon); color: var(--dark); font-family: var(--code-font); font-weight: 600; font-size: 0.65rem; padding: 3px 12px; border-radius: 4px; }

.article-row, .post-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; padding: 18px; transition: all 0.2s; }
.article-row:hover, .post-card:hover { border-color: var(--primary); box-shadow: 0 4px 18px rgba(0,105,92,0.06); }
.article-row h3, .post-card h3 { font-family: var(--heading-font); font-size: 1.02rem; font-weight: 600; }
.article-row h3 a { color: var(--primary-dark); }
.article-row h3 a:hover { color: var(--primary); }
.article-row .text-muted { font-family: var(--code-font); font-size: 0.72rem; color: var(--text-muted); }

.sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.sidebar-widget h4, .sidebar-widget h3, .sidebar-widget .sidebar-widget-title { font-family: var(--code-font) !important; color: var(--neon) !important; background: var(--dark) !important; font-size: 0.78rem !important; padding: 12px 16px; margin: 0 !important; letter-spacing: 0.5px; }
.sidebar-widget a { color: #445; font-size: 0.88rem; }
.sidebar-widget a:hover { color: var(--primary); }
.sidebar-widget li { border-bottom: 1px solid #eef5f4; padding: 10px 16px; }
.sidebar-widget .badge { background: var(--primary); font-family: var(--code-font); font-size: 0.65rem; }

footer, .site-footer, .footer-hebrew { background: var(--dark) !important; color: #5a8a84; }
.footer-accent-bar { background: linear-gradient(90deg, var(--primary), var(--neon), var(--primary)) !important; height: 2px !important; }
footer h5, footer h4 { font-family: var(--code-font) !important; color: var(--neon) !important; font-size: 0.78rem !important; }
footer .footer-brand { font-family: var(--brand-font) !important; font-size: 1.1rem !important; color: var(--neon) !important; }
footer a { color: #4db6ac; }
footer a:hover { color: var(--neon); }

.btn-primary { background: var(--primary); border-color: var(--primary); font-family: var(--code-font); font-size: 0.82rem; border-radius: 8px; }
.btn-primary:hover { background: var(--neon); border-color: var(--neon); color: var(--dark); }
.badge, .category-badge { background: #e0f2f1; color: var(--primary); font-family: var(--code-font); font-size: 0.65rem; border-radius: 4px; }
code, pre { font-family: var(--code-font); background: #e0f2f1; border-radius: 4px; padding: 2px 6px; font-size: 0.85rem; }

/* === WEBHOOKAGENT — SINGLE POST (dev docs) === */
.article-header { background: #f4f9f8; border-bottom: 1px solid #dcecea; }
.article-title { font-family: 'Outfit', sans-serif !important; color: #004d40 !important; }
.article-subtitle { font-family: 'Inter', sans-serif; color: #6b8080; }
.cat-tag { background: #00e676 !important; color: #0a1f1c !important; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.65rem !important; border-radius: 4px !important; }
.article-meta { font-family: 'JetBrains Mono', monospace !important; font-size: 0.78rem; color: #6b8080; }
.article-main { border-radius: 12px !important; border: 1px solid #dcecea !important; }
.content-area { font-family: 'Inter', sans-serif !important; }
.content-area h2 { font-family: 'Outfit', sans-serif !important; color: #004d40 !important; border-bottom: 2px solid #dcecea !important; }
.content-area h2::before { content: '## '; color: rgba(0,230,118,0.4); font-family: 'JetBrains Mono', monospace; font-weight: 400; }
.content-area h3 { font-family: 'Outfit', sans-serif !important; color: #00695c !important; }
.content-area h3::before { content: '### '; color: rgba(0,230,118,0.3); font-family: 'JetBrains Mono', monospace; font-size: 0.85em; font-weight: 400; }
.content-area pre { background: #0a1f1c !important; color: #00e676 !important; border: 1px solid rgba(0,230,118,0.15) !important; border-radius: 10px !important; padding: 22px !important; font-family: 'JetBrains Mono', monospace !important; font-size: 0.86rem; line-height: 1.6; }
.content-area code { font-family: 'JetBrains Mono', monospace !important; background: #e0f2f1 !important; color: #00695c !important; padding: 2px 8px; border-radius: 4px; font-size: 0.88rem; }
.content-area blockquote { border-left: 3px solid #00e676 !important; background: rgba(0,230,118,0.04) !important; }
.content-area a { color: #00695c; font-weight: 500; }
.content-area a:hover { color: #00e676; }
.content-area ul li::marker { color: #00e676; }
.progress-bar-top .bar { background: #00e676 !important; }
.article-sidebar .sidebar-widget { border-radius: 10px !important; }
.article-sidebar .sidebar-widget-title { background: #0a1f1c !important; color: #00e676 !important; font-family: 'JetBrains Mono', monospace !important; }
.sidebar-toc a { font-family: 'JetBrains Mono', monospace !important; font-size: 0.82rem; }
.sidebar-toc a.active { border-left-color: #00e676 !important; color: #004d40 !important; }
.sidebar-recent .num { background: #00695c !important; }
.post-nav a { background: #f4f9f8; border: 1px solid #dcecea; }
.post-nav a:hover { border-color: #00695c; }
.nav-label { font-family: 'JetBrains Mono', monospace !important; color: #00695c; }
.related-section h4 { font-family: 'Outfit', sans-serif !important; color: #004d40 !important; }
.floating-share a, .floating-share span { background: #0a1f1c; color: #5a8a84; border: 1px solid rgba(0,230,118,0.1); }
.floating-share a:hover, .floating-share span:hover { color: #00e676 !important; border-color: rgba(0,230,118,0.3); }
