/* =====================================================
   GLOBAL
===================================================== */
html {
  scroll-behavior: smooth;
}

/* =====================================================
   TOOL ARTICLE – HERO / CLEAN MODERN
===================================================== */
.tool-article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 80px 20px;
  margin-bottom: 40px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #f1f5f9;
}

.tool-article .intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}

.tool-article .intro-image {
  flex: 0 0 300px;
}

.tool-article .intro-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transition: transform 0.4s ease, box-shadow 0.25s ease;
}

.tool-article .intro-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 65px rgba(0,0,0,0.55);
}

.tool-article .intro-text {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool-article .intro-text h1 {
  font-size: 42px;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #00ffc3, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-article .intro-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.tool-article .tool-start-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 40px;
  background: linear-gradient(135deg, #00ffc3, #00bfff);
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tool-article .tool-start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,255,195,0.4);
}

/* =====================================================
   GLOBAL TOOL START BUTTON
===================================================== */
.tool-start-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--accent, #6366f1), #2563eb);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* =====================================================
   FAQ / TOOL TIPS / PRO TIPS - Base Container
===================================================== */
.tool-tips,
.pro-tips {
  margin: 50px auto;
  padding: 35px;
  border-radius: 16px;
  max-width: 1000px;
  background: var(--box, #ffffff);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.tool-tips h3,
.pro-tips h3 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text, #111);
}

/* =====================================================
   List Reset
===================================================== */
.tool-tips ul,
.pro-tips ul,
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* =====================================================
   FAQ ITEM – MODERN GLASS CARD
===================================================== */
.tool-tips li,
.pro-tips li,
.faq-list li {
  position: relative;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;

  background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  backdrop-filter: blur(10px);

  border: 1px solid rgba(0,0,0,0.05);

  transition: all 0.3s ease;
}

.tool-tips li:hover,
.pro-tips li:hover,
.faq-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.tool-tips strong,
.pro-tips strong {
  color: var(--accent, #4f46e5);
}

/* =====================================================
   QUESTION (BUTTON)
===================================================== */
.faq-question,
.tip-question {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 🔥 במקום space-between */
  gap: 10px;                   /* רווח בין המספר לטקסט */
  text-align: left;

  width: 100%;
  padding: 16px 20px;

  font-size: 1.05rem;
  font-weight: 600;

  background: transparent;
  border: none;
  cursor: pointer;

  color: #111;
  transition: all 0.25s ease;
}

.faq-question:hover,
.tip-question:hover {
  background: rgba(0,0,0,0.03);
}

/* =====================================================
   ICON (ARROW STYLE)
===================================================== */
.faq-question::after,
.tip-question::after {
  content: "";
  width: 10px;
  height: 10px;

  border-right: 2px solid #007acc;
  border-bottom: 2px solid #007acc;

  transform: rotate(45deg);
  transition: all 0.3s ease;

  margin-left: 12px;
  flex-shrink: 0;
}

/* OPEN STATE */
.faq-question.active::after,
.tip-question.active::after {
  transform: rotate(225deg);
  border-color: #22c55e;
}

.tip-question::after {
  margin-left: auto; /* 🔥 דוחף את האייקון ימינה */
}





.tip-question {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 🔥 הופך את הטקסט לבלוק */
.tip-question {
  white-space: normal;
}

.tip-question span.tip-number {
  min-width: 40px;
}

.tip-question {
  justify-content: flex-start !important;
}


/* =====================================================
   ANSWER – SMOOTH EXPAND (PRO LEVEL)
===================================================== */
.faq-answer,
.tip-answer {
  max-height: 0;
  overflow: hidden;

  padding: 0 20px;

  opacity: 0;
  transform: translateY(-6px);

  background: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(0,0,0,0.05);

  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 0.3s ease,
    padding 0.3s ease;
}

/* ACTIVE STATE */
.faq-answer.open,
.tip-answer.open {
  opacity: 1;
  transform: translateY(0);
  padding: 14px 20px 18px;
}

/* TEXT */
.faq-answer p,
.tip-answer p {
  margin: 10px 0;
  line-height: 1.7;
  color: #333;
}

/* =====================================================
   FAQ BLOCK (OPTIONAL STYLE)
===================================================== */
.faq-block .faq-item {
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 14px;

  background: #f9f9f9;

  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.faq-block .faq-item:hover {
  background: #e6f7ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.faq-block h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #22c55e;
  font-weight: 600;
}






.tool-tips {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* 🔥 חשוב מאוד - שליטה מלאה ברשימה החדשה */
.tips-accordion {
  width: 100%;
  max-width: 1000px;
  margin: 0;          /* מבטל מרכוז */
  padding: 0;
}

/* 🔥 מבטל כל השפעה ישנה */
.tips-accordion li {
  width: 100%;
}

/* 🔥 מאחד התנהגות כפתורים */
.tip-question,
.faq-question {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}
/* =====================================================
   DARK MODE – PREMIUM
===================================================== */
body.dark .tool-tips,
body.dark .pro-tips {
  background: #121212;
  color: #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body.dark .tool-tips h3,
body.dark .pro-tips h3 {
  color: #fff;
}

/* GLASS DARK */
body.dark .tool-tips li,
body.dark .pro-tips li,
body.dark .faq-list li {
  background: linear-gradient(145deg, rgba(30,30,30,0.7), rgba(20,20,20,0.6));
  border: 1px solid rgba(255,255,255,0.05);
}

/* QUESTION */
body.dark .faq-question,
body.dark .tip-question {
  color: #eee;
}

body.dark .faq-question:hover,
body.dark .tip-question:hover {
  background: rgba(255,255,255,0.05);
}

/* ICON */
body.dark .faq-question::after,
body.dark .tip-question::after {
  border-color: #4fc3f7;
}

/* ANSWER */
body.dark .faq-answer,
body.dark .tip-answer {
  background: rgba(20,20,20,0.9);
  color: #ddd;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* TEXT */
body.dark .faq-answer p,
body.dark .tip-answer p {
  color: #ccc;
}




/* =====================================================
   INTERNAL LINKS BLOCK
===================================================== */
.internal-links {
  background: var(--card-light);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: 0.35s ease;
}

.internal-links h3 {
  text-align: center;
  margin-bottom: 1.8rem;
  font-size: 1.6rem;
  color: var(--accent);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.link-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s ease;
  color: var(--text-light);
}

.link-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.link-content {
  padding: 14px;
}

.link-content h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.link-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-light);
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

/* =====================================================
   SMART CTA SECTION
===================================================== */
.tool-cta {
  margin: 80px auto;
  max-width: 1100px;
  padding: 60px 40px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tool-cta h3 {
  font-size: 28px;
  margin-bottom: 18px;
  font-weight: 700;
}

.tool-cta p {
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-primary,
.cta-secondary {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s ease;
  display: inline-block;
}

.cta-primary {
  background: #ffffff;
  color: #4f46e5;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cta-secondary {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}

.cta-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

/* =====================================================
   AUTHORITY SECTION & CTA
===================================================== */
.dark-mode-authority {
  padding: 100px 20px;
  background: #0b1220;
  color: #e2e8f0;
}

.authority-block {
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.authority-block h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #00ffc3;
}

.authority-block p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.authority-list {
  margin: 25px 0;
  padding-left: 20px;
}

.authority-list li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
  position: relative;
}

.authority-list li::marker {
  color: #00ffc3;
}

.authority-cta {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #00ffc3 0%, #0ea5e9 100%);
  border-radius: 24px;
  max-width: 1000px;
  margin: auto;
  color: #0f172a;
}

.authority-cta h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

.authority-cta p {
  font-size: 18px;
  margin-bottom: 25px;
}

/* =====================================================
   AI HERO – NEXT LEVEL
===================================================== */
.ai-hero {
  position: relative;
  padding: 160px 20px 130px 20px;
  text-align: center;
  overflow: hidden;
  background: #0b1220;
  color: white;
}

.ai-hero-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,255,195,0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(56,189,248,0.35), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(99,102,241,0.25), transparent 60%);
  filter: blur(80px);
  animation: floatGlow 18s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% { transform: translateY(-20px) translateX(-20px) scale(1); }
  50% { transform: translateY(20px) translateX(30px) scale(1.05); }
  100% { transform: translateY(-10px) translateX(-10px) scale(1.1); }
}

.ai-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  z-index: 1;
}

.ai-hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: auto;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.ai-title {
  font-size: 68px;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.05;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #00ffc3, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-title span {
  -webkit-text-fill-color: white;
}

.ai-subtitle {
  font-size: 22px;
  line-height: 1.8;
  color: #cbd5e1;
  margin: 0 auto 50px auto;
  max-width: 700px;
}

.ai-hero-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.ai-btn-primary {
  padding: 18px 40px;
  border-radius: 60px;
  background: linear-gradient(135deg, #00ffc3, #0ea5e9);
  color: #0b1220;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(0,255,195,0.6);
}

.ai-btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 50px rgba(0,255,195,0.9);
}

.ai-btn-secondary {
  padding: 18px 40px;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ai-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-5px);
}

/* =====================================================
   STATUS – DATE & TIME
===================================================== */
#status {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
  background: #f0f4ff;
  color: #1f2937;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#status:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* =====================================================
   DIAGRAM AREA
===================================================== */
#full-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* =====================================================
   DARK MODE
===================================================== */
body.dark {
  background: transparent;
  color: var(--text-dark);
}

body.dark .wrap,
body.dark .card,
body.dark .tool-container,
body.dark .panel,
body.dark .container {
  background: var(--card-dark);
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

body.dark input,
body.dark select,
body.dark textarea {
  background: #020617;
  color: #f9fafb;
  border: 1px solid var(--border-dark);
}

body.dark input::placeholder,
body.dark textarea::placeholder {
  color: #64748b;
}

body.dark .btn,
body.dark button {
  background: linear-gradient(135deg,#6366f1,#22c55e);
  color: #fff;
}

body.dark .btn.secondary,
body.dark button.secondary {
  background: #020617;
  border: 1px solid var(--border-dark);
  color: #e5e7eb;
}

body.dark .btn:hover,
body.dark button:hover {
  filter: brightness(1.1);
}

body.dark .result,
body.dark .result-box,
body.dark .results,
body.dark .export-area {
  background: #020617;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}

/* Tool tips and FAQ dark mode overrides */
body.dark .tool-tips,
body.dark .pro-tips {
  background: #0f172a;
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

body.dark .tool-tips li,
body.dark .pro-tips li {
  background: rgba(255,255,255,0.05);
}

body.dark .tool-tips li:hover,
body.dark .pro-tips li:hover {
  background: rgba(255,255,255,0.08);
}

body.dark .tool-tips h3,
body.dark .pro-tips h3 {
  color: #e5e7eb;
}

body.dark .tool-tips strong,
body.dark .pro-tips strong {
  color: #a5b4fc;
}

/* Internal links dark mode */
body.dark .internal-links {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
}

body.dark .link-card {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  color: var(--text-dark);
}

body.dark .link-content p {
  color: var(--muted-dark);
}

body.dark .link-card:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

/* Tool CTA dark mode */
body.dark .tool-cta {
  background: linear-gradient(135deg, #312e81, #5b21b6);
}

/* FAQ dark mode */
body.dark .faq-question,
body.dark .tip-question {
  background: #1e293b;
  color: #e5e7eb;
}

body.dark .faq-question:hover,
body.dark .tip-question:hover {
  background: #334155;
}

body.dark .faq-answer,
body.dark .tip-answer {
  background: #0f172a;
  color: #e5e7eb;
  border-bottom: 1px solid #334155;
}

body.dark .faq-list li {
  border-bottom: 1px solid #334155;
}

body.dark .faq-block .faq-item {
  background: #1e1e1e;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

body.dark .faq-block .faq-item:hover {
  background: #0f2a3a;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

body.dark .faq-block h3 {
  color: #00ff99;
}

/* =====================================================
   LIGHT MODE SUPPORT
===================================================== */
body:not(.dark) .tool-article {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #0f172a;
}

body:not(.dark) .intro-text p {
  color: #334155;
}

body:not(.dark) .dark-mode-authority {
  background: #ffffff;
  color: #1e293b;
}

body:not(.dark) .authority-block p {
  color: #334155;
}

body:not(.dark) .faq-block .faq-item {
  background: #f8fafc;
}

body:not(.dark) .authority-cta {
  color: white;
}

body:not(.dark) .ai-hero {
  background: #f8fafc;
  color: #0f172a;
}

body:not(.dark) .ai-subtitle {
  color: #475569;
}

body:not(.dark) .ai-btn-secondary {
  border: 1px solid rgba(0,0,0,0.2);
  color: #0f172a;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-text h1 {
    font-size: 32px;
  }

  .authority-block h2,
  .authority-cta h2 {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .ai-title {
    font-size: 42px;
  }

  .ai-subtitle {
    font-size: 18px;
  }
}



















/* ================= TOOL LEGAL (LIGHT MODE) ================= */

.tool-legal{
text-align:center;
font-size:13px;
opacity:0.8;
margin-top:25px;
max-width:700px;
margin-left:auto;
margin-right:auto;
line-height:1.6;
color:#6b7280;
}


/* ================= TOOL LEGAL (DARK MODE) ================= */

.dark .tool-legal{
color:#cbd5e1;
opacity:0.85;
}
