/* ============================================
   Ovalead blog — Ovalead v3 (Light)
   Shared stylesheet for all article pages
   ============================================ */

:root {
    --turq: #0FB5B5;
    --turq-dark: #0E9999;
    --turq-soft: #E6F8F8;
    --turq-border: rgba(15, 181, 181, 0.22);
    --bg-0: #FFFFFF;
    --bg-1: #FAFAFA;
    --bg-2: #F4F4F5;
    --ink: #0F0F12;
    --ink-soft: #1F1F23;
    --grey-light: #3F3F46;
    --grey: #5C5C66;
    --color-border: rgba(0, 0, 0, 0.09);
    --color-border-strong: rgba(0, 0, 0, 0.16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --r-md: 6px;
    --r-lg: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--bg-0);
}

a { color: var(--turq-dark); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--turq); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }

/* ----- HEADER ----- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: border-color 0.24s;
}
.header.scrolled { border-bottom-color: var(--color-border); }
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--turq); }
.logo-mark {
    width: 30px;
    height: 30px;
    background: var(--turq);
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-word {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-nav a {
    color: var(--grey-light);
    font-size: 14px;
    font-weight: 500;
}
.header-nav a:hover { color: var(--ink); text-decoration: none; }
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--turq);
    color: #fff;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 181, 181, 0.20);
}
.header-cta:hover { background: var(--turq-dark); color: #fff; text-decoration: none; }

/* Article cover (hero image) */
.article-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1200/630;
    border-radius: 10px;
    margin: 28px 0 36px;
    display: block;
    box-shadow: 0 8px 24px rgba(15, 181, 181, 0.08), 0 1px 3px rgba(0,0,0,0.06);
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
}
.lang-switch a {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--grey);
    text-decoration: none;
    transition: all 0.18s ease;
    line-height: 1;
}
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a.active {
    background: var(--ink);
    color: #fff;
}

@media (max-width: 720px) {
    .header-nav { display: none; }
}

/* ----- ARTICLE LAYOUT ----- */
.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--grey);
    font-size: 14px;
    margin-bottom: 16px;
}
.article-meta .badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--turq-soft);
    color: var(--turq-dark);
    border: 1px solid var(--turq-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.article-meta time { color: var(--grey); }
.article-meta .reading-time::before { content: "·"; margin-right: 8px; }

.article h1 {
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.article-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--grey);
    margin-bottom: 40px;
}

.article-body { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }

.article-body h2 {
    font-size: 26px;
    margin-top: 56px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.article-body h3 {
    font-size: 20px;
    margin-top: 36px;
    margin-bottom: 12px;
}
.article-body h4 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.article-body p { margin-bottom: 16px; color: var(--grey-light); }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; color: var(--grey-light); }
.article-body li { margin-bottom: 8px; }

.article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--bg-1);
    border-left: 3px solid var(--turq);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    color: var(--ink-soft);
    font-style: italic;
}

.article-body code {
    background: var(--bg-2);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.9em;
    color: var(--ink);
}

/* TL;DR callout */
.tldr {
    margin: 32px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--turq-soft) 0%, #fff 100%);
    border: 1px solid var(--turq-border);
    border-radius: var(--r-lg);
}
.tldr-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--turq-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.tldr p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    background: var(--bg-0);
    border: 1px solid var(--color-border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.comparison-table th {
    background: var(--bg-1);
    font-weight: 700;
    color: var(--ink);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.comparison-table td { color: var(--ink-soft); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .yes { color: #16A34A; font-weight: 600; }
.comparison-table .no { color: #DC2626; }
.comparison-table .partial { color: #D97706; }

/* CTA box at end of article */
.article-cta {
    margin-top: 56px;
    padding: 32px;
    background: var(--bg-1);
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    text-align: center;
}
.article-cta h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.article-cta p {
    color: var(--grey);
    margin-bottom: 20px;
    font-size: 15px;
}
.article-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--turq);
    color: #fff;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(15, 181, 181, 0.20);
}
.article-cta .btn:hover {
    background: var(--turq-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Related articles at the bottom */
.related {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}
.related h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grey);
    margin-bottom: 16px;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.related-card {
    padding: 20px;
    background: var(--bg-0);
    border: 1px solid var(--color-border);
    border-radius: var(--r-md);
    transition: border-color 0.18s;
}
.related-card:hover {
    border-color: var(--color-border-strong);
    text-decoration: none;
}
.related-card .related-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--turq-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.related-card .related-title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .related-grid { grid-template-columns: 1fr; }
    .article { padding: 32px 20px 64px; }
    .article-body { font-size: 16px; }
    .article-body h2 { font-size: 22px; }
}

/* ----- INDEX (blog list) ----- */
.blog-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 24px;
    text-align: center;
}
.blog-hero h1 {
    font-size: clamp(36px, 5vw, 48px);
    margin-bottom: 12px;
}
.blog-hero p {
    color: var(--grey);
    font-size: 18px;
    line-height: 1.6;
}

.blog-list {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 24px 96px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--bg-0);
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.blog-card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--turq-soft);
    color: var(--turq-dark);
    border: 1px solid var(--turq-border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    align-self: flex-start;
}
.blog-card-title {
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.blog-card-excerpt {
    color: var(--grey-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.blog-card-meta {
    color: var(--grey);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 720px) {
    .blog-list { grid-template-columns: 1fr; }
}

/* ----- FOOTER ----- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--grey);
}
.footer a { color: var(--grey-light); margin: 0 12px; }
