/* iKanBan Blog — shared styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
    --bg:        #060b18;
    --bg-2:      #0d1526;
    --surface:   rgba(255,255,255,.04);
    --border:    rgba(255,255,255,.08);
    --border-hi: rgba(255,255,255,.16);
    --brand:     #6366f1;
    --violet:    #8b5cf6;
    --blue:      #3b82f6;
    --teal:      #06b6d4;
    --green:     #10b981;
    --text:      #f1f5f9;
    --muted:     #64748b;
    --prose:     #cbd5e1;
    --transition: .25s cubic-bezier(.4,0,.2,1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV ── */
nav {
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: .9rem 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(6,11,24,.8);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--brand);
}
.logo span { color: var(--text); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.nav-links a {
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
    background: var(--brand);
    color: #fff !important;
    padding: .45rem 1.1rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    transition: opacity var(--transition);
}
.btn-nav:hover { opacity: .85; }

/* ── BREADCRUMB ── */
.breadcrumb {
    padding: 1.5rem 0 0;
    font-size: .82rem;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 .4rem; }

/* ── BLOG INDEX ── */
.blog-hero {
    padding: 5rem 0 3rem;
    text-align: center;
}
.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: .8rem;
}
.blog-hero p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0 5rem;
}
.post-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    transition: border-color var(--transition), transform var(--transition);
}
.post-card:hover {
    border-color: rgba(99,102,241,.4);
    transform: translateY(-3px);
}
.post-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.24);
    color: #a5b4fc;
    border-radius: 999px;
    padding: .22rem .75rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    width: fit-content;
}
.post-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}
.post-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}
.post-meta {
    font-size: .78rem;
    color: var(--muted);
}
.post-card .read-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand);
    transition: opacity var(--transition);
}
.post-card .read-link:hover { opacity: .75; }

/* ── ARTICLE ── */
.article-header {
    padding: 4.5rem 0 2.5rem;
}
.article-header .post-tag { margin-bottom: 1.2rem; }
.article-header h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.article-meta .sep { color: var(--border-hi); }
.article-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* ── PROSE ── */
.prose {
    padding-bottom: 4rem;
}
.prose p {
    font-size: 1.05rem;
    color: var(--prose);
    line-height: 1.8;
    margin-bottom: 1.4rem;
}
.prose .lead {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 400;
    line-height: 1.75;
}
.prose h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 2.5rem 0 .8rem;
    padding-top: .5rem;
}
.prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.8rem 0 .6rem;
}
.prose ul, .prose ol {
    padding-left: 1.4rem;
    margin-bottom: 1.4rem;
}
.prose li {
    font-size: 1.05rem;
    color: var(--prose);
    line-height: 1.75;
    margin-bottom: .4rem;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: #818cf8; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand); }
.prose blockquote {
    border-left: 3px solid var(--brand);
    padding: .8rem 1.2rem;
    background: rgba(99,102,241,.06);
    border-radius: 0 8px 8px 0;
    margin: 1.6rem 0;
    color: #a5b4fc;
    font-style: italic;
    font-size: 1.05rem;
}
.callout {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin: 1.6rem 0;
    font-size: .95rem;
    color: #c7d2fe;
    line-height: 1.7;
}
.callout strong { color: #a5b4fc; }

/* Comparison table inside prose */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0 2rem;
    font-size: .93rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-hi);
}
.prose table thead tr { background: rgba(99,102,241,.12); }
.prose table th {
    padding: .75rem 1rem;
    text-align: left;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #a5b4fc;
    border-bottom: 1px solid var(--border-hi);
}
.prose table td {
    padding: .7rem 1rem;
    color: var(--prose);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}
.prose table tr:last-child td { border-bottom: none; }
.prose table tr:hover td { background: var(--surface); }
.prose .yes { color: #34d399; }
.prose .no  { color: var(--muted); }
.prose .hl  { color: var(--brand); font-weight: 600; }

/* ── POST CTA ── */
.post-cta {
    background: linear-gradient(135deg, rgba(99,102,241,.12) 0%, rgba(139,92,246,.08) 100%);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 0 0 5rem;
}
.post-cta h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .6rem;
}
.post-cta p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.6rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1.6rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
    border: none;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline  { background: transparent; color: var(--text); border: 1px solid var(--border-hi); }

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}
footer a { color: var(--muted); transition: color var(--transition); }
footer a:hover { color: var(--brand); }
footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .posts-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 1.7rem; }
    .prose h2 { font-size: 1.25rem; }
    .nav-links { display: none; }
    .post-cta { padding: 2rem 1.25rem; }
}
