/* ============================================================
   instantpnr.com — Blog stylesheet
   Loaded by blog.php and blog/*.php pages.
   Matches the design tokens from /assets/css/style.css.

   This is hand-written CSS (no Tailwind) so it works with the
   site's existing build. Class names match what the blog PHP
   files emit (bg-gradient-to-br, rounded-2xl, prose, etc.) so
   no markup changes are needed — the styles just start working
   once this file is referenced.
   ============================================================ */

/* ---- Article layout containers ---- */
.max-w-5xl { max-width: 1100px; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 780px;  margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 640px;  margin-left: auto; margin-right: auto; }
.max-w-xl  { max-width: 540px;  margin-left: auto; margin-right: auto; }

.px-4 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ---- Article header (gradient hero) ---- */
header.bg-gradient-to-br {
    background: var(--primary-grad);
    color: #fff;
}
/* The colour variants for different article categories */
.from-slate-900.to-slate-800,
.from-slate-900.to-purple-900,
.from-slate-900.to-amber-900,
.from-rose-900.to-slate-900,
.from-blue-900,
.from-slate-900 {
    /* All article headers share the same brand-coloured gradient
       for visual consistency. The slate/purple/amber colour hints
       in the class names are decorative — we use the brand gradient
       so the blog feels like part of the site, not bolted on. */
    background: linear-gradient(135deg, #0f172a 0%, #0369a1 50%, #0284c7 100%);
}
/* Schengen article gets the marine-blue treatment */
.from-blue-900.via-slate-900.to-slate-800 {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 60%, #0284c7 100%);
}

/* ---- Breadcrumb nav inside hero ---- */
nav.text-sm {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
}
nav.text-sm a { color: rgba(255,255,255,0.8); text-decoration: none; }
nav.text-sm a:hover { color: #fff; text-decoration: underline; }
nav.text-sm .text-white { color: #fff; }

/* ---- Category pill (FEATURED · Beginner, etc.) ---- */
.inline-block.bg-emerald-600,
.inline-block.bg-blue-600,
.inline-block.bg-purple-600,
.inline-block.bg-amber-600,
.inline-block.bg-rose-600 {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
}

/* ---- H1 inside article hero ---- */
article header h1,
section h1 {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

/* ---- Lead paragraph under H1 ---- */
article header p,
section h1 + p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}

/* ---- Author / date byline ---- */
article header .text-sm,
header .text-sm {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* ---- Table of contents card ---- */
.bg-slate-50.border {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
}
.bg-slate-50 h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    font-weight: 700;
}
.bg-slate-50 ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text);
}
.bg-slate-50 ol li {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}
.bg-slate-50 ol a {
    color: var(--primary);
    text-decoration: none;
}
.bg-slate-50 ol a:hover {
    text-decoration: underline;
}

/* ---- "TL;DR" callout boxes ---- */
.bg-emerald-50,
.bg-blue-50,
.bg-purple-50,
.bg-rose-50,
.bg-amber-50 {
    background: var(--primary-50);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}
.bg-emerald-50 { background: #ecfdf5; border-left-color: #10b981; }
.bg-blue-50    { background: #eff6ff; border-left-color: #3b82f6; }
.bg-purple-50  { background: #faf5ff; border-left-color: #a855f7; }
.bg-amber-50   { background: #fffbeb; border-left-color: #f59e0b; }
.bg-rose-50    { background: #fff1f2; border-left-color: #ef4444; }

.bg-emerald-50 p:first-child,
.bg-blue-50 p:first-child,
.bg-purple-50 p:first-child,
.bg-rose-50 p:first-child,
.bg-amber-50 p:first-child {
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.bg-emerald-50 .text-emerald-900 { color: #064e3b; }
.bg-blue-50 .text-blue-900       { color: #1e3a8a; }
.bg-purple-50 .text-purple-900   { color: #581c87; }
.bg-rose-50 .text-rose-900       { color: #881337; }

.text-slate-800 { color: var(--text); }
.leading-relaxed { line-height: 1.7; }

/* ---- Article body prose ---- */
.prose,
.prose-slate,
.prose-lg {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.75;
}
.prose h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
    scroll-margin-top: 80px; /* anchor-scroll offset for TOC links */
}
.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 0.5rem;
}
.prose p {
    margin: 1rem 0;
}
.prose p strong {
    color: var(--text);
    font-weight: 700;
}
.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.prose ul li,
.prose ol li {
    margin: 0.5rem 0;
}
.prose ul li::marker {
    color: var(--primary);
}
.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(2,132,199,0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}
.prose a:hover {
    text-decoration-color: var(--primary);
}

/* Reset `.not-prose` — used inside `.prose` blocks for elements
   like CTA boxes and tables that should NOT inherit prose styling. */
.not-prose { all: unset; display: block; }
.not-prose * { all: revert; }

/* ---- Tables ---- */
.overflow-x-auto { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.93rem;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
table thead {
    background: var(--bg-section);
}
table th {
    text-align: left;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: top;
}
table tr:last-child td {
    border-bottom: none;
}
table tr.bg-slate-50 {
    background: var(--bg-soft);
}
/* Cell-level emphasis colors used in comparison tables */
.text-emerald-700 { color: #047857; font-weight: 600; }
.text-rose-700    { color: #be123c; font-weight: 600; }
.text-amber-700   { color: #b45309; font-weight: 600; }

/* ---- Checklist box (Schengen checklist) ---- */
.bg-emerald-50.border.border-emerald-200 {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
}
.bg-emerald-50.border.border-emerald-200 ul {
    padding-left: 0;
    list-style: none;
}
.bg-emerald-50.border.border-emerald-200 ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    color: var(--text);
}
.bg-emerald-50.border.border-emerald-200 .text-emerald-600 {
    color: #059669;
    font-weight: 800;
    flex-shrink: 0;
}

/* ---- "Continue reading" related-articles section ---- */
.border-t.border-slate-200 {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
.grid {
    display: grid;
}
.grid.md\:grid-cols-2 {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.border.border-slate-200 {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    text-decoration: none;
    color: var(--text);
}
.border.border-slate-200:hover,
.hover\:border-emerald-400:hover,
.hover\:border-blue-400:hover,
.hover\:border-purple-400:hover,
.hover\:border-amber-400:hover,
.hover\:border-rose-400:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.border.border-slate-200 .text-xs {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.border.border-slate-200 .font-semibold {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

/* ---- Final article CTA ---- */
.bg-gradient-to-br.from-emerald-600,
.bg-gradient-to-br.from-emerald-700,
.bg-gradient-to-br.from-blue-700,
.bg-gradient-to-br.from-purple-700,
.bg-gradient-to-br.from-amber-600,
.bg-gradient-to-br.from-rose-700 {
    background: var(--primary-grad);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
}
.bg-gradient-to-br h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
}
.bg-gradient-to-br p {
    color: rgba(255,255,255,0.9);
    max-width: 540px;
    margin: 0 auto 1.5rem;
}
.bg-gradient-to-br .text-emerald-50,
.bg-gradient-to-br .text-blue-100,
.bg-gradient-to-br .text-purple-100,
.bg-gradient-to-br .text-amber-100,
.bg-gradient-to-br .text-rose-100 {
    color: rgba(255,255,255,0.9);
}
.bg-gradient-to-br .inline-block.bg-white {
    display: inline-block;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.bg-gradient-to-br .inline-block.bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ---- Blog INDEX page (blog.php) ---- */
section.bg-gradient-to-br.from-slate-900 {
    background: linear-gradient(135deg, #0f172a 0%, #0369a1 50%, #0284c7 100%);
    color: #fff;
}

/* Featured article card */
.bg-gradient-to-br.from-emerald-50.to-cyan-50 {
    background: linear-gradient(135deg, #ecfdf5 0%, #ecfeff 100%);
    border: 1px solid #d1fae5;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bg-gradient-to-br.from-emerald-50.to-cyan-50:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.bg-gradient-to-br.from-emerald-50.to-cyan-50 .text-3xl {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}
.bg-gradient-to-br.from-emerald-50.to-cyan-50 .text-7xl {
    font-size: 5rem;
    text-align: center;
}
.bg-gradient-to-br.from-emerald-50.to-cyan-50 .bg-emerald-600 {
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 0.9rem;
    letter-spacing: 0.04em;
}
/* Two-column featured article layout */
.grid.md\:grid-cols-2.gap-8 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .grid.md\:grid-cols-2.gap-8 {
        grid-template-columns: 1fr 1fr;
    }
}
.hidden { display: none; }
@media (min-width: 768px) {
    .md\:block { display: block; }
}

/* Standard article cards on /blog */
.gap-6.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .gap-6.grid {
        grid-template-columns: 1fr 1fr;
    }
}
.bg-white.border.border-slate-200 {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.bg-white.border.border-slate-200:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.bg-white.border.border-slate-200 .text-xl {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.bg-white.border.border-slate-200 .text-emerald-700 {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary-50);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.text-slate-600 { color: var(--text-muted); }
.text-slate-500 { color: var(--text-light); }
.text-slate-400 { color: #94a3b8; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: var(--text); }

/* Big bottom CTA on blog hub */
.bg-slate-900 {
    background: #0f172a;
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
}
.bg-slate-900 h3 {
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}
.bg-slate-900 .text-slate-300 {
    color: rgba(255,255,255,0.75);
    max-width: 580px;
    margin: 0 auto 1.5rem;
}
.bg-slate-900 .bg-emerald-500 {
    display: inline-block;
    background: var(--primary-light);
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.bg-slate-900 .bg-emerald-500:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ---- Utility classes used in markup ---- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.text-7xl  { font-size: 4.5rem; }
.rounded-r-lg { border-radius: 0 var(--radius) var(--radius) 0; }
.rounded-lg   { border-radius: var(--radius); }
.rounded-xl   { border-radius: var(--radius-lg); }
.rounded-2xl  { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 999px; }

.group-hover\:text-emerald-700:hover,
.group:hover .group-hover\:text-emerald-700 {
    color: var(--primary);
}

/* ---- Article body container ---- */
article { background: #fff; }

/* ---- Responsive heading sizes ---- */
@media (min-width: 768px) {
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:block { display: block; }
    .md\:p-12  { padding: 3rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---- Print: hide CTAs / nav, optimise body ---- */
@media print {
    .bg-gradient-to-br, .bg-slate-900, nav { display: none !important; }
    .prose { font-size: 11pt; }
    article header { background: none !important; color: var(--text) !important; padding: 0 !important; }
    article header h1 { color: var(--text) !important; font-size: 22pt; }
}
