/* ===== Tishtush — Shared styles for content pages (blog, about, contact) ===== */

:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --panel-2: #f1f3f8;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-muted: #4b5563;
  --text-soft: #9ca3af;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.08);
  --accent-text: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px -8px rgba(15, 23, 42, 0.15);
  --max-width: 760px;
}

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

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

body {
  font-family: 'Heebo', 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ===== Top bar / navigation ===== */
.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 24px;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand-link img {
  height: 32px;
  width: auto;
}
.brand-link:hover {
  color: var(--text);
  border: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.cta-button {
  background: var(--accent);
  color: #ffffff !important;
  padding: 9px 18px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(99,102,241,0.3);
}
.cta-button:hover {
  background: var(--accent-hover) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px -2px rgba(99,102,241,0.45);
}

/* ===== Page hero ===== */
.hero {
  padding: 56px 24px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, transparent 100%);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}
.hero-meta span:not(:first-child)::before {
  content: '·';
  margin-left: 12px;
  color: var(--text-soft);
}

/* ===== Article body ===== */
.content {
  flex: 1;
  padding: 32px 24px 64px;
}
.article {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--panel);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: var(--shadow);
}
.article h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.article h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}
.article p {
  margin: 14px 0;
  color: var(--text);
}
.article ul, .article ol {
  margin: 16px 0;
  padding-right: 24px;
}
.article li {
  margin: 8px 0;
}
.article strong { font-weight: 700; color: var(--text); }
.article em { font-style: italic; }
.article blockquote {
  border-right: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 22px;
  margin: 24px 0;
  border-radius: 8px;
  color: var(--text-muted);
  font-style: italic;
}

/* Highlight box for warnings or important callouts */
.callout {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-right: 4px solid #f59e0b;
  padding: 16px 22px;
  border-radius: 10px;
  margin: 24px 0;
  color: #78350f;
}
.callout-info {
  background: var(--accent-soft);
  border-right: 4px solid var(--accent);
  padding: 16px 22px;
  border-radius: 10px;
  margin: 24px 0;
  color: var(--text);
}
.callout strong { color: inherit; }

/* CTA box at end of articles */
.cta-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  padding: 32px 28px;
  border-radius: 16px;
  text-align: center;
  margin: 40px 0 24px;
}
.cta-box h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-box p {
  color: rgba(255,255,255,0.92);
  margin-bottom: 20px;
}
.cta-box a {
  display: inline-block;
  background: #ffffff;
  color: var(--accent) !important;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  box-shadow: 0 4px 16px -2px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-box a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(0,0,0,0.25);
  border: none;
}

/* Related articles grid (used in blog index + at end of articles) */
.related {
  max-width: var(--max-width);
  margin: 48px auto 0;
}
.related h2 {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--text);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  text-decoration: none;
}
.card .card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.card .read-more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
a.card { border: 1px solid var(--border); }
a.card:hover { border-color: var(--accent); }

/* Tables in articles */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.article th, .article td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}
.article th {
  background: var(--panel-2);
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border-strong);
}
.article tr:last-child td { border-bottom: none; }

/* Code or keyboard-like inline */
.article code, .article kbd {
  background: var(--panel-2);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: 'SF Mono', 'Cascadia Mono', Monaco, monospace;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ===== Forms (contact page) ===== */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -2px rgba(99,102,241,0.4);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner a {
  color: var(--text-muted);
  border-bottom: none;
}
.footer-inner a:hover {
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hero { padding: 36px 18px 20px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .article { padding: 28px 22px; border-radius: 12px; }
  .article h2 { font-size: 22px; }
  .topbar { padding: 10px 16px; }
  body { font-size: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
