/* ════════════════════════════════════════════════════════════════════
   UPNIXTOOLS — ARTICLE MIGRATION STYLESHEET  (migrate-articles.css)
   Sirf articles/ pages ke liye. site.css ko bilkul edit nahi kiya gaya.

   RULES (task se):
   - Saari nayi classes YAHI file mein hain, `.artx-` prefix ke saath.
   - Koi inline <style> nahi, koi Google Fonts link nahi, kahin Syne nahi.
   - Dark theme: koi hard-coded dark text nahi — sirf theme tokens
     (--ink, --ink-soft, --muted, --accent, --surface*, --line*).
   - Har article page is file ko header ke baad link karta hai:
     <link rel="stylesheet" href="/assets/css/migrate-articles.css?v=1">
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. ARTICLE PROSE WRAPPER ───────────────────────────────
   Live article content (headings, paragraphs, lists — bilkul
   identical text) is wrapper ke andar rakha jata hai.
   Ye classes SIRF presentation hain: typography, spacing, color. */
.artx-prose {
  max-width: 100%;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.artx-prose h2 {
  font-size: 1.4rem;
  margin: 44px 0 14px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.artx-prose h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--spectrum);
  border-radius: 2px;
  margin-bottom: 12px;
}
.artx-prose h3 {
  font-size: 1.15rem;
  margin: 32px 0 10px;
  color: var(--ink);
}
.artx-prose p { margin: 0 0 16px; }
.artx-prose ul,
.artx-prose ol { margin: 0 0 16px; padding-left: 22px; }
.artx-prose li { margin-bottom: 8px; }
.artx-prose li::marker { color: var(--accent); }
.artx-prose strong { color: var(--ink); }
.artx-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.artx-prose a:hover { color: var(--accent-2); }

/* ── 2. TABLES (guide comparisons, specs) ─────────────────── */
.artx-table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.artx-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.artx-table th,
.artx-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.artx-table thead th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.artx-table tbody tr:last-child th,
.artx-table tbody tr:last-child td { border-bottom: 0; }
.artx-table tbody tr:nth-child(even) td { background: rgba(13, 18, 23, .5); }

/* ── 3. TABLE OF CONTENTS BOX ─────────────────────────────── */
.artx-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.artx-toc h2,
.artx-toc h3,
.artx-toc .artx-toc-title {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.artx-toc h2::before,
.artx-toc h3::before { display: none; }
.artx-toc ul { margin: 0; padding-left: 18px; }
.artx-toc li { margin-bottom: 6px; }
.artx-toc a { color: var(--accent); text-decoration: none; }
.artx-toc a:hover { text-decoration: underline; }

/* ── 4. NOTE / TIP / WARNING BOXES ──────────────────────────
   Live page ke info/warning boxes isi style par aayenge. */
.artx-note,
.artx-tip,
.artx-warn {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.artx-note p,
.artx-tip p,
.artx-warn p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.artx-note p + p,
.artx-tip p + p,
.artx-warn p + p { margin-top: 10px; }
.artx-tip  { border-left-color: var(--success); }
.artx-warn  { border-left-color: var(--warning); }

/* ── 5. FIGURES / IMAGES ──────────────────────────────────── */
.artx-figure { margin: 24px 0; }
.artx-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: block;
}
.artx-figure figcaption {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* ── 6. INLINE CODE & CODE BLOCKS ─────────────────────────── */
.artx-prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--ink);
}
.artx-prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 20px 0 28px;
  line-height: 1.7;
}
.artx-prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: .85rem;
}

/* ── 7. BLOCKQUOTES ───────────────────────────────────────── */
.artx-prose blockquote {
  margin: 20px 0;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}
.artx-prose blockquote p { margin: 0; }

/* ── 8. ARTICLE META ROW (reading time / updated date) ───────
   Sirf tab use karo jab live page mein ye info HO. */
.artx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: .88rem;
  color: var(--muted);
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

/* ── 9. KEY TAKEAWAYS BOX ─────────────────────────────────── */
.artx-takeaways {
  background: linear-gradient(135deg, rgba(49, 206, 255, .07), rgba(155, 124, 255, .07));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin: 32px 0;
}
.artx-takeaways h2,
.artx-takeaways h3 { margin-top: 0; }
.artx-takeaways ul { margin-bottom: 0; }

/* ── 10. STEPS (numbered how-to blocks) ──────────────────────
   Live steps ko agar plain ol tha to yeh class OPTIONAL hai —
   markup tab hi badlo jab design requirement ho, text identical rakho. */
.artx-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: artx-step;
}
.artx-steps > li {
  counter-increment: artx-step;
  position: relative;
  padding-left: 56px;
  margin-bottom: 24px;
}
.artx-steps > li::before {
  content: counter(artx-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

/* ── 11. HR divider ───────────────────────────────────────── */
.artx-prose hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 36px 0;
}

/* ── 12. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 640px) {
  .artx-prose { font-size: .96rem; }
  .artx-steps > li { padding-left: 48px; }
  .artx-table th,
  .artx-table td { padding: 10px 12px; font-size: .88rem; }
}

/* ── 13. CTA BOX (tool promo, top + bottom) ──────────────────
   Live .ut-cta block — text bilkul identical, sirf classes nayi. */
.artx-cta {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.artx-cta-title { font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.artx-cta-sub { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.artx-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-size: .95rem;
  white-space: nowrap;
  box-shadow: 0 0 24px var(--accent-glow);
}
.artx-btn:hover { filter: brightness(1.12); }

/* ── 14. FAQ ACCORDION ──────────────────────────────────────
   Live <details>/<summary> markup — structure identical. */
.artx-faq { margin-top: 52px; }
.artx-faq h2::before {
  content: ""; display: block; width: 40px; height: 3px;
  background: var(--spectrum); border-radius: 2px; margin-bottom: 12px;
}
.artx-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.artx-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.artx-faq summary::-webkit-details-marker { display: none; }
.artx-faq summary::after {
  content: "+"; float: right; color: var(--accent); font-size: 1.25rem;
}
.artx-faq details[open] summary::after { content: "\2212"; }
.artx-faq-a {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: .97rem;
}
.artx-faq-a p { margin: 0; }

/* ── 15. DISCLAIMER (educational-content notice) ─────────────
   Text identical — live .ut-disclaimer se. */
.artx-disclaimer {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  border-left: 3px solid var(--warning);
  background: var(--surface);
  padding: 12px 18px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 30px;
}
.artx-disclaimer strong { color: var(--ink); }

/* ── 16. RELATED ARTICLES ───────────────────────────────────
   site.css .related / .rel-grid pattern reuse; links apni
   .artx- class ke saath (icon nahi, text identical). */
.artx-related { margin-top: 56px; border-top: 1px solid var(--line-soft); padding-top: 28px; }
.artx-related h2 { font-size: 1.25rem; margin: 0 0 18px; }
.artx-related h2::before { display: none; }
.artx-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.artx-rel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--ink) !important;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  display: block;
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.artx-rel-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
}
.artx-rel-card span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 6px;
}

/* ── 17. ARTICLES INDEX — cards grid ────────────────────────
   Modern clean cards (tool cards jaisa pattern): glass, lift,
   tag pill, "N min read →" footer. */
.artx-blog-head { text-align: center; margin-bottom: 48px; }
.artx-blog-head h1 { margin-bottom: 14px; }
.artx-gold { color: var(--accent); }
.artx-blog-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.artx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.artx-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.artx-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 20px 55px rgba(0,0,0,.35),
              0 0 35px color-mix(in srgb, var(--accent) 10%, transparent);
}
.artx-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
  width: fit-content;
}
.artx-card h2 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--ink) !important;
}
.artx-card h2::before { display: none; }
.artx-card p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
  margin: 0 0 16px;
  flex: 1;
}
.artx-more { color: var(--accent); font-weight: 700; font-size: .88rem; }

@media (max-width: 600px) {
  .artx-cta { flex-direction: column; align-items: flex-start; }
}
