/* ═══════════════════════════════════════
   TOOL PAGES — shared stylesheet
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  direction: rtl;
  text-align: right;
  line-height: 1.75;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.nav-logo {
  font-size: 1.15rem; font-weight: 800; color: #1e40af;
  text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
}
.nav-logo span.accent { color: #3b82f6; }

/* ── Logo letter animation ── */
.logo-word { display: inline-flex; gap: 0; }
.nav-logo .logo-char {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.25s;
}
.nav-logo:hover .logo-char,
.nav-logo:focus-visible .logo-char { transform: translateY(-3px); color: #1d4ed8; }
.nav-logo:hover .logo-word:nth-child(1) .logo-char:nth-child(1) { transition-delay: 0.00s; }
.nav-logo:hover .logo-word:nth-child(1) .logo-char:nth-child(2) { transition-delay: 0.03s; }
.nav-logo:hover .logo-word:nth-child(1) .logo-char:nth-child(3) { transition-delay: 0.06s; }
.nav-logo:hover .logo-word:nth-child(1) .logo-char:nth-child(4) { transition-delay: 0.09s; }
.nav-logo:hover .logo-word:nth-child(1) .logo-char:nth-child(5) { transition-delay: 0.12s; }
.nav-logo:hover .logo-word:nth-child(1) .logo-char:nth-child(6) { transition-delay: 0.15s; }
.nav-logo:hover .logo-word:nth-child(1) .logo-char:nth-child(7) { transition-delay: 0.18s; }
.nav-logo:hover .logo-word:nth-child(2) .logo-char:nth-child(1) { transition-delay: 0.22s; }
.nav-logo:hover .logo-word:nth-child(2) .logo-char:nth-child(2) { transition-delay: 0.25s; }
.nav-logo:hover .logo-word:nth-child(2) .logo-char:nth-child(3) { transition-delay: 0.28s; }
.nav-logo:hover .logo-word:nth-child(2) .logo-char:nth-child(4) { transition-delay: 0.31s; }
.nav-logo:hover .logo-word:nth-child(2) .logo-char:nth-child(5) { transition-delay: 0.34s; }
.nav-logo:hover .logo-word:nth-child(2) .logo-char:nth-child(6) { transition-delay: 0.37s; }
@keyframes logo-press {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.92); }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.nav-logo.pressed { animation: logo-press 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.nav-home {
  display: flex; align-items: center; gap: 0.5rem;
  color: #475569; text-decoration: none; font-size: 0.9rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.nav-home:hover { background: #f1f5f9; color: #1e40af; }

/* ── BREADCRUMB ── */
.breadcrumb {
  margin-top: 70px; padding: 0.75rem 2rem;
  background: #fff; border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem; color: #64748b;
}
.breadcrumb a { color: #1e40af; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; color: #cbd5e1; }

/* ── TOOL HERO ── */
.tool-hero {
  padding: 4rem 2rem 3.5rem;
  position: relative; overflow: hidden;
}
.tool-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
}
.tool-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; margin-bottom: 1rem;
  background: rgba(255,255,255,0.2); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.tool-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 0.5rem; line-height: 1.2; }
.tool-hero-en  { font-size: 1rem; color: rgba(255,255,255,0.65); font-weight: 400; margin-bottom: 1rem; }
.tool-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 620px; }
.tool-hero-icon-big { font-size: 6rem; opacity: 0.25; }

/* ── MAIN CONTENT ── */
.tool-content { max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem 5rem; }

/* ── CONTENT SECTIONS ── */
.content-section { margin-bottom: 4rem; }
.content-section h2 {
  font-size: 1.5rem; font-weight: 900; color: #0f172a;
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--tool-color, #1e40af);
  display: inline-block;
}
.content-section p { font-size: 1rem; color: #374151; margin-bottom: 1rem; }
.content-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.content-section li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 0.97rem; color: #374151;
}
.content-section li::before {
  content: '✓'; font-weight: 900; color: var(--tool-color, #1e40af);
  flex-shrink: 0; margin-top: 2px;
}

/* ── VISUAL DIAGRAM BOX ── */
.diagram-box {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 2rem;
  margin: 2rem 0; overflow-x: auto;
}
.diagram-box h3 { font-size: 0.85rem; font-weight: 700; color: #64748b; margin-bottom: 1.5rem; letter-spacing: 0.5px; }
.diagram-box svg { display: block; max-width: 100%; }

/* ── EXAMPLE BOX ── */
.example-box {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; overflow: hidden; margin: 2rem 0;
}
.example-header {
  padding: 1rem 1.5rem;
  background: var(--tool-color, #1e40af);
  color: #fff; font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.6rem;
}
.example-body { padding: 1.5rem; }
.example-step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.85rem 0; border-bottom: 1px solid #f1f5f9;
}
.example-step:last-child { border-bottom: none; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tool-color, #1e40af); color: #fff;
  font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-label { font-size: 0.82rem; font-weight: 700; color: #64748b; margin-bottom: 0.2rem; }
.step-text  { font-size: 0.95rem; color: #1e293b; }

/* ── BENEFITS GRID ── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem;
}
.benefit-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 1.25rem;
  transition: all 0.3s;
}
.benefit-card:hover { border-color: var(--tool-color, #1e40af); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.07); }
.benefit-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.benefit-title { font-size: 0.93rem; font-weight: 800; color: #0f172a; margin-bottom: 0.4rem; }
.benefit-desc  { font-size: 0.82rem; color: #64748b; }

/* ── OTHER TOOLS NAV ── */
.other-tools { background: #fff; border-top: 1px solid #e2e8f0; padding: 2.5rem 2rem; }
.other-tools-inner { max-width: 1200px; margin: 0 auto; }
.other-tools h3 { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 1.25rem; }
.other-tools-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tool-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: 10px;
  border: 1px solid #e2e8f0; text-decoration: none;
  color: #475569; font-size: 0.88rem; font-weight: 600;
  transition: all 0.2s; background: #f8fafc;
}
.tool-link:hover { border-color: var(--tool-color,#1e40af); color: var(--tool-color,#1e40af); background: #fff; }
.tool-link.active { background: var(--tool-color,#1e40af); color: #fff; border-color: transparent; }

/* ── FOOTER ── */
footer {
  background: #0f172a; color: #475569;
  padding: 1.5rem 2rem; text-align: center; font-size: 0.82rem;
}
footer a { color: #94a3b8; text-decoration: none; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tool-hero-inner { grid-template-columns: 1fr; }
  .tool-hero-icon-big { display: none; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .tool-content { padding: 2rem 1.25rem 3rem; }
}
