/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

/* === TOKENS === */
:root {
  --accent: #1a6b3c;
  --accent-dark: #145530;
  --accent-light: #f0faf5;
  --text: #1a1a1a;
  --muted: #555;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --max-w: 1100px;
  --font: 'Cairo', system-ui, -apple-system, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 17px;
  direction: rtl;
  text-align: right;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 36px 0;
  direction: rtl;
}

/* === HEADER === */
.site-header {
  border-bottom: 3px solid var(--accent);
  padding: 14px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}
.logo span { color: #f59e0b; }
nav { display: flex; gap: 4px; direction: rtl; flex-wrap: wrap; }
nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover, nav a.active {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

/* === AD SLOTS === */
.ad-slot {
  background: #f5f5f5;
  border: 2px dashed #ccc;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  border-radius: 6px;
  font-family: var(--font);
}
.ad-top {
  min-height: 90px;
  width: 100%;
  margin-bottom: 0;
}
.ad-mid {
  margin: 32px 0;
  min-height: 250px;
}
.ad-sidebar {
  min-height: 300px;
  margin-top: 0;
}

/* === CONTENT === */
.content article h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #111;
  font-weight: 900;
}
.content .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.content h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
  border-right: 4px solid var(--accent);
  padding-right: 14px;
  color: #111;
  font-weight: 700;
}
.content h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  font-weight: 700;
  color: var(--accent-dark);
}
.content p { margin-bottom: 18px; }
.content ul, .content ol {
  margin: 0 24px 18px 0;
  padding: 0;
}
.content li {
  margin-bottom: 10px;
  padding-right: 4px;
}
.content strong { color: #111; }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.93rem;
  overflow-x: auto;
  display: block;
}
.compare-table th {
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  text-align: right;
  font-weight: 700;
}
.compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: #f9f9f9; }
.compare-table .yes { color: #16a34a; font-weight: 700; }
.compare-table .no { color: #dc2626; }

/* Highlight box */
.highlight-box {
  background: var(--accent-light);
  border-right: 4px solid var(--accent);
  padding: 18px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.highlight-box p { margin: 0; }

/* Tip / warning box */
.tip-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-right: 4px solid #f59e0b;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  font-size: 0.95rem;
}
.tip-box p { margin: 0; }

/* Salary card grid */
.salary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.salary-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
}
.salary-card .skill-name { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.salary-card .range { color: var(--accent); font-weight: 900; font-size: 1.1rem; }
.salary-card .note { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.salary-card .ai-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 10px; background: #f3e8fa; border: 1px solid #d8b4f0; border-radius: 20px; font-size: 0.78rem; font-weight: 700; color: #6c3483; text-decoration: none; }
.salary-card .ai-link:hover { background: #e9d4f7; }

/* Steps list */
.steps-list { list-style: none; margin: 0 0 24px 0; padding: 0; counter-reset: steps; }
.steps-list li {
  counter-increment: steps;
  padding: 14px 60px 14px 16px;
  margin-bottom: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
}
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
}

/* === SIDEBAR === */
.sidebar-section {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.sidebar-section h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}
.sidebar-section ul { list-style: none; margin: 0; padding: 0; }
.sidebar-section li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.sidebar-section li:last-child { border-bottom: none; }
.sidebar-section a {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
  display: block;
}
.sidebar-section a:hover { color: var(--accent); text-decoration: none; }

/* === FOOTER === */
.site-footer {
  border-top: 2px solid var(--border);
  padding: 28px 0;
  margin-top: 56px;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg-light);
  direction: rtl;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }

/* === MOBILE === */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { order: -1; }
  .content article h1 { font-size: 1.55rem; }
  .content h2 { font-size: 1.2rem; margin: 28px 0 10px; }
  .site-header .container { flex-direction: column; gap: 10px; align-items: flex-start; }
  nav { justify-content: flex-start; }
  .site-footer .container { flex-direction: column; gap: 10px; text-align: center; }
  .salary-grid { grid-template-columns: 1fr 1fr; }
  .compare-table th, .compare-table td { padding: 8px 10px; font-size: 0.85rem; }
  .steps-list li { padding: 12px 52px 12px 12px; }
}
@media (max-width: 480px) {
  .salary-grid { grid-template-columns: 1fr; }
}
