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

/* === TOKENS === */
:root {
  --accent: #6c3483;
  --accent-dark: #5b2c6f;
  --accent-light: #f5eef8;
  --accent-2: #1a6b3c;
  --text: #1a1a1a;
  --muted: #555;
  --bg: #ffffff;
  --bg-light: #f9f7fb;
  --border: #e5d9f0;
  --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(108,52,131,0.1);
}
.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; }
.logo .ai-tag {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  vertical-align: middle;
  margin-right: 6px;
}
nav { display: flex; gap: 4px; direction: rtl; flex-wrap: wrap; }
nav a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 5px 9px;
  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: #f5f0fa;
  border: 2px dashed #c39bd3;
  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.1rem;
  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; }

/* === AI TOOL CARDS === */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.tool-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px;
  position: relative;
}
.tool-card .tool-name { font-weight: 900; font-size: 1.05rem; margin-bottom: 6px; }
.tool-card .tool-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.tool-card .tool-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.tool-card .free-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #16a34a;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* === PROMPT BOX === */
.prompt-box {
  background: #1e1e2e;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 20px 0;
  direction: ltr;
  text-align: left;
}
.prompt-box .prompt-label {
  color: #a78bfa;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  direction: rtl;
  text-align: right;
}
.prompt-box code {
  color: #e2e8f0;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
  display: block;
}

/* === 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: #faf5ff; }
.compare-table .yes { color: #16a34a; font-weight: 700; }
.compare-table .no { color: #dc2626; }
.compare-table .partial { color: #d97706; }

/* === HIGHLIGHT / TIP BOXES === */
.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-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; }

/* Sister site promo box */
.sister-box {
  background: #f0faf5;
  border: 1px solid #a7d7b5;
  border-right: 4px solid var(--accent-2);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.sister-box p { margin: 0; }
.sister-box a { color: var(--accent-2); font-weight: 700; }

/* === EARN / FIVERR GIG CARDS === */
.gig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.gig-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg-light);
}
.gig-card .gig-title { font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.gig-card .gig-price { color: var(--accent); font-weight: 900; font-size: 1rem; }
.gig-card .gig-note { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.gig-card .fl-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 10px; background: #e8f5ee; border: 1px solid #a7d4b5; border-radius: 20px; font-size: 0.78rem; font-weight: 700; color: #1a6b3c; text-decoration: none; }
.gig-card .fl-link:hover { background: #d1ead9; }
.fl-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: #e8f5ee; border: 1px solid #a7d4b5; border-radius: 20px; font-size: 0.78rem; font-weight: 700; color: #1a6b3c; text-decoration: none; margin-top: 8px; }
.fl-link:hover { background: #d1ead9; }

/* 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.92rem;
  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; }
.sidebar-section.sister h3 { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.sidebar-section.sister a { color: var(--accent-2); }

/* === 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;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer .sister-link { color: var(--accent-2); font-weight: 700; }

/* === 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; text-align: center; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .gig-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 8px 10px; font-size: 0.85rem; }
  .steps-list li { padding: 12px 52px 12px 12px; }
  .prompt-box { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr; }
}
