/*
 * blog-article.css — FileShot.io Blog Article Typography & Layout
 *
 * The global styles.css includes `* { margin: 0; padding: 0; }` which
 * strips all browser-default spacing from p, h2, ul, li, etc.
 * This file restores readable typographic rhythm for blog/comparison pages.
 * All rules are scoped to article.content-card so nothing bleeds elsewhere.
 *
 * Variables used:
 *   --t1  primary text (white/dark in dark/light mode)
 *   --t2  secondary text (muted)
 *   --a   accent orange (#fa3800)
 *   --r8, --r12, --r16  border-radius tokens
 */

/* ── Article container ─────────────────────────────────────────── */
article.content-card {
    padding: 2.5rem 3rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(250,56,0,.13);
    border-radius: var(--r16,1rem);
    /* Override inline max-width:800px — use container width with breathing room */
    max-width: 1100px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
}
@media (max-width: 900px) {
    article.content-card { padding: 1.75rem 2rem; }
}
@media (max-width: 600px) {
    article.content-card { padding: 1.25rem 1rem; }
}

/* ── Back-to-blog breadcrumb link ─────────────────────────────── */
article.content-card a[href="/blog/"] {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--a,#fa3800);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .3rem .7rem;
    border: 1px solid rgba(250,56,0,.18);
    border-radius: 999px;
    background: rgba(250,56,0,.07);
    transition: border-color .18s, background .18s;
    margin-bottom: 1.5rem;
}
article.content-card a[href="/blog/"]:hover {
    border-color: rgba(250,56,0,.35);
    background: rgba(250,56,0,.12);
}

/* ── Article title (h1) ───────────────────────────────────────── */
article.content-card h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--t1,#fff);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin-bottom: .55rem;
}

/* ── Date / author meta row ───────────────────────────────────── */
article.content-card > p:first-of-type {
    display: inline-block;
    color: var(--t2,#aaa);
    font-size: .85rem;
    padding: .35rem .85rem;
    border-radius: var(--r8,.5rem);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    margin-bottom: 1.75rem;
}

/* ── Article hero image ───────────────────────────────────────── */
article.content-card > img,
article.content-card .hero-img,
article.content-card div > img:first-child {
    border-radius: var(--r12,.75rem);
    border: 1px solid rgba(255,255,255,.07);
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
}

/* ── H2 — section headings ────────────────────────────────────── */
article.content-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--t1,#fff);
    line-height: 1.25;
    padding-left: .9rem;
    border-left: 3px solid var(--a,#fa3800);
    margin-top: 2.5rem;
    margin-bottom: .85rem;
}

/* ── H3 — sub-headings ────────────────────────────────────────── */
article.content-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--t1,#fff);
    line-height: 1.35;
    margin-top: 2rem;
    margin-bottom: .65rem;
}

/* ── H4 — minor headings ──────────────────────────────────────── */
article.content-card h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--a,#fa3800);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

/* ── Paragraphs ───────────────────────────────────────────────── */
article.content-card p {
    margin-bottom: 1.25em;
    line-height: 1.85;
    font-size: .97rem;
    color: var(--t2,#ccc);
}
article.content-card p:last-child {
    margin-bottom: 0;
}

/* ── Lists ────────────────────────────────────────────────────── */
article.content-card ul,
article.content-card ol {
    padding-left: 1.65em;
    margin-bottom: 1.25em;
}
article.content-card ul  { list-style: disc; }
article.content-card ol  { list-style: decimal; }
article.content-card li  {
    margin-bottom: .5em;
    line-height: 1.75;
    font-size: .97rem;
    color: var(--t2,#ccc);
}
article.content-card li:last-child { margin-bottom: 0; }
article.content-card li > ul,
article.content-card li > ol { margin-top: .4em; margin-bottom: .4em; }

/* ── Inline emphasis ──────────────────────────────────────────── */
article.content-card strong {
    font-weight: 700;
    color: var(--t1,#fff);
}
article.content-card em { font-style: italic; }

/* ── Blockquote ───────────────────────────────────────────────── */
article.content-card blockquote {
    margin: 1.75em 0;
    padding: 1.1em 1.35em;
    border-left: 3px solid var(--a,#fa3800);
    background: rgba(250,56,0,.06);
    border-radius: 0 var(--r8,.5rem) var(--r8,.5rem) 0;
    color: var(--t2,#ccc);
    font-style: italic;
    line-height: 1.7;
}

/* ── Code / pre ───────────────────────────────────────────────── */
article.content-card code {
    font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
    font-size: .87em;
    background: rgba(255,255,255,.07);
    color: var(--t1,#fff);
    padding: .15em .4em;
    border-radius: .3rem;
}
article.content-card pre {
    margin-bottom: 1.25em;
    padding: 1em 1.25em;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--r8,.5rem);
    overflow-x: auto;
}
article.content-card pre code {
    background: none;
    padding: 0;
    font-size: .9em;
    line-height: 1.6;
}

/* ── Tables ───────────────────────────────────────────────────── */
article.content-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin-bottom: 1.5em;
    border-radius: var(--r8,.5rem);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
}
article.content-card th {
    background: rgba(250,56,0,.1);
    color: var(--t1,#fff);
    font-weight: 700;
    padding: .65rem .9rem;
    text-align: left;
    border-bottom: 1px solid rgba(250,56,0,.2);
    font-size: .85rem;
    letter-spacing: .02em;
}
article.content-card td {
    padding: .6rem .9rem;
    color: var(--t2,#ccc);
    border-bottom: 1px solid rgba(255,255,255,.04);
    line-height: 1.5;
}
article.content-card tbody tr:nth-child(even) td {
    background: rgba(255,255,255,.02);
}
article.content-card tbody tr:hover td {
    background: rgba(250,56,0,.04);
}
article.content-card tbody tr:last-child td { border-bottom: none; }

/* ── Horizontal rule ──────────────────────────────────────────── */
article.content-card hr {
    border: none;
    border-top: 1px solid rgba(250,56,0,.1);
    margin: 2.25rem 0;
}

/* ── CTA box (call-to-action) ─────────────────────────────────── */
article.content-card .article-cta {
    background: linear-gradient(135deg, rgba(250,56,0,.12) 0%, rgba(250,106,42,.06) 100%);
    border: 1px solid rgba(250,56,0,.22);
    border-radius: var(--r16,1rem);
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
}

/* ── Callout / highlight box ──────────────────────────────────── */
article.content-card .callout,
article.content-card .highlight-box {
    background: rgba(250,56,0,.06);
    border: 1px solid rgba(250,56,0,.18);
    border-left: 3px solid var(--a,#fa3800);
    border-radius: 0 var(--r8,.5rem) var(--r8,.5rem) 0;
    padding: 1.1rem 1.35rem;
    margin: 1.5rem 0;
}

/* ── Article footer / back+next navigation ────────────────────── */
article.content-card .article-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(250,56,0,.1);
}

/* ── Light theme ──────────────────────────────────────────────── */
.light-theme article.content-card {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(250,56,0,.14);
    box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 0 0 1px rgba(255,255,255,.6) inset;
}
.light-theme article.content-card p,
.light-theme article.content-card li,
.light-theme article.content-card td { color: var(--t2,#555); }
.light-theme article.content-card blockquote { background: rgba(250,56,0,.05); }
.light-theme article.content-card code { background: rgba(0,0,0,.05); }
.light-theme article.content-card pre  { background: rgba(0,0,0,.04); }
.light-theme article.content-card > p:first-of-type {
    background: rgba(0,0,0,.03);
    border-color: rgba(0,0,0,.08);
}
