/* ===== Metoda AI — Shared Document Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --primary: #4361EE;
  --primary-dark: #7c3aed;
  --primary-light: #eef0ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --amber: #b45309;
  --amber-light: #fff8e6;
  --text: #2d2d2d;
  --text-muted: #555;
  --border: #e5e7eb;
  --bg: #f5f7ff;
  --white: #ffffff;
  --radius: 10px;
}

body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== COVER ===== */
.cover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 52px 40px 44px;
  text-align: center;
}
.cover-logo { height: 90px; width: auto; margin-bottom: 14px; display: block; margin-left: auto; margin-right: auto; filter: brightness(0) invert(1); }
.cover-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cover h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cover-sub { font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.88); margin-bottom: 6px; }
.cover-meta { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ===== CONTENT WRAPPER ===== */
.doc-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ===== SECTION CARD ===== */
.section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* ===== TYPOGRAPHY ===== */
h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
h3 { font-size: 15px; font-weight: 600; color: #333; margin: 16px 0 6px; }
p  { margin-bottom: 10px; color: #444; }
ul, ol { padding-right: 20px; margin-bottom: 12px; }
li { margin-bottom: 6px; color: #444; }
strong { color: var(--text); }

/* ===== STEPS ===== */
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.step-num {
  min-width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-text { font-size: 14.5px; color: #333; line-height: 1.55; }
.step-text strong { color: var(--primary); }

/* ===== BADGES ===== */
.badge         { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-blue    { background: var(--primary-light); color: var(--primary); }
.badge-green   { background: var(--green-light);   color: var(--green); }
.badge-amber   { background: var(--amber-light);   color: var(--amber); }

/* ===== CALLOUT BOXES ===== */
.tip, .note, .info-box {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-top: 12px;
}
.tip      { background: var(--amber-light); border-right: 4px solid #f59e0b; color: #555; }
.tip strong { color: var(--amber); }
.note     { background: var(--green-light);  border-right: 4px solid #22c55e; color: #15803d; }
.note strong { color: #166534; }
.info-box { background: var(--primary-light); border-right: 4px solid var(--primary); color: #333; }
.info-box strong { color: var(--primary); }

/* ===== TABLE ===== */
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th {
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  text-align: right;
  font-weight: 600;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: #444; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg); }

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ===== FOOTER ===== */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 8px; display: block; margin-left: auto; margin-right: auto; }
.footer-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer-links { font-size: 13px; color: var(--text-muted); }
.footer-links a { color: var(--primary); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-sep { margin: 0 8px; color: var(--border); }

/* ===== PRINT ===== */
@media print {
  body { background: white; }
  .cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section { box-shadow: none; border: 1px solid var(--border); }
}
