/* =========================================================
   Grentis Blog — design system
   Tokens taken from optigren-sales/src/index.css so the blog
   feels native next to the product pages.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --bg-primary: #F8FAFC;
    --bg-alt: #F0F9F7;
    --bg-card: #FFFFFF;
    --bg-dark: #0A1628;
    --bg-dark-secondary: #1E3A5F;

    --text-primary: #1E3A5F;
    --text-body: #1a2940;
    --text-muted: #64748b;
    --text-white: #FFFFFF;

    --accent: #00D4AA;
    --accent-hover: #00C09A;
    --accent-light: rgba(0, 212, 170, 0.1);
    --accent-blue: #00B4D8;
    --accent-amber: #F59E0B;

    --gradient-primary: linear-gradient(135deg, #1E3A5F 0%, #00D4AA 100%);
    --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #E8FAF5 50%, #F0F4FF 100%);
    --gradient-dark: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
    --gradient-text: linear-gradient(135deg, #1E3A5F 30%, #00D4AA 100%);
    --gradient-accent: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);

    --border: #E2E8F0;
    --border-light: rgba(30, 58, 95, 0.08);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.15);

    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-prose: 'Lora', Georgia, serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 100px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --max-width: 1200px;
    --prose-width: 720px;
    --nav-height: 72px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-body);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================================
   Navbar — glassy, same as sales sites
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.navbar-logo img {
    height: 32px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.navbar-link:hover {
    color: var(--text-primary);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

.navbar-link.active::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}

.navbar-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

@media (max-width: 840px) {
    .navbar-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        transform: translateY(-120%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid var(--border);
    }

    .navbar-links.open {
        transform: translateY(0);
    }

    .navbar-burger {
        display: flex;
    }

    .navbar-cta {
        display: none;
    }
}

/* =========================================================
   Blog index — hero + cards
   ========================================================= */

.blog-hero {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 4rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.blog-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.blog-hero h1 .accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 4rem 0 6rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 170, 0.3);
    color: inherit;
}

.post-card-thumb {
    aspect-ratio: 16 / 9;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.post-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 212, 170, 0.4) 0%, transparent 50%);
}

.post-card-thumb.variant-intraday {
    background: linear-gradient(135deg, #0A1628 0%, #4C1D95 100%);
}

.post-card-thumb.variant-forecast {
    background: linear-gradient(135deg, #0A1628 0%, #00B4D8 100%);
}

.post-card-thumb.variant-revenue {
    background: linear-gradient(135deg, #1E3A5F 0%, #F59E0B 100%);
}

.post-card-thumb.variant-pillar {
    background: linear-gradient(135deg, #0A1628 0%, #00D4AA 100%);
}

.post-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.post-card-meta .tag {
    color: var(--accent);
    font-weight: 600;
}

.post-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.post-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.post-card-footer .read-more {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-card-footer .read-time {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* =========================================================
   Post page — prose layout
   ========================================================= */

.post-hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 3rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Subtle dotted grid overlay over hero - adds depth without noise */
.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(30, 58, 95, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.55;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}

.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(30, 58, 95, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.post-hero-inner {
    max-width: var(--prose-width);
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .sep {
    margin: 0 0.5rem;
    color: var(--border);
}

.post-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta .tag {
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.post-body {
    max-width: var(--prose-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    font-family: var(--font-prose);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-body);
}

.post-body > .lede {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.post-body h2 {
    font-family: var(--font-primary);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 3rem 0 1rem;
    line-height: 1.25;
}

.post-body h3 {
    font-family: var(--font-primary);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.25rem 0 0.75rem;
    line-height: 1.3;
}

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.5rem 1.25rem;
    padding-left: 0.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-body a {
    color: var(--accent);
    border-bottom: 1px solid rgba(0, 212, 170, 0.3);
    transition: all var(--transition-fast);
}

.post-body a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent);
}

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
    background: var(--accent-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-primary);
}

.callout {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-primary);
    font-size: 1rem;
}

/* Only the LABEL strong (first child) gets the block/uppercase treatment.
   Inline <strong> elements inside the callout body keep normal bold styling. */
.callout > strong:first-child {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* TL;DR / Kısa cevap box — placed under the lede, bluer tint to distinguish from mid-post callouts */
.callout.callout-tldr {
    border-left-color: var(--accent-blue);
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.08) 0%, rgba(0, 180, 216, 0.03) 100%);
    margin-top: -0.5rem;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 1.25rem 1.5rem;
}

.callout.callout-tldr > strong:first-child {
    color: var(--accent-blue);
}

/* Inline product CTA — drops into prose next to relevant product mentions */
.inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    margin: 1.5rem 0;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.inline-cta span {
    flex: 1;
}

.inline-cta strong {
    color: var(--accent);
    font-weight: 600;
}

.inline-cta a {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    border-bottom: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.post-body .inline-cta a {
    border-bottom: none;
}

.post-body .inline-cta a:hover {
    background: transparent;
    color: var(--accent-hover);
}

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

    .inline-cta a {
        align-self: flex-end;
    }
}

/* Q&A accordion (native <details>) at end of posts */
.post-body details.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--bg-card);
    transition: border-color var(--transition-fast);
}

.post-body details.faq-item[open] {
    border-color: rgba(0, 212, 170, 0.4);
}

.post-body details.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.post-body details.faq-item summary::-webkit-details-marker {
    display: none;
}

.post-body details.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.post-body details.faq-item[open] summary::after {
    content: "−";
}

.post-body details.faq-item p {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    line-height: 1.65;
    color: var(--text-body);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    font-family: var(--font-primary);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================================================
   CTA banner (end of post)
   ========================================================= */

.cta-banner {
    background: var(--gradient-dark);
    color: var(--text-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner h3,
.post-body .cta-banner h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

.cta-banner p,
.post-body .cta-banner p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-banner .btn,
.cta-banner .btn-primary,
.post-body .cta-banner .btn,
.post-body .cta-banner .btn-primary {
    position: relative;
    z-index: 1;
    color: var(--text-white);
    background: var(--accent);
    border-bottom: none;
}

.cta-banner .btn-primary:hover,
.post-body .cta-banner .btn-primary:hover {
    color: var(--text-white);
    background: var(--accent-hover);
    border-bottom: none;
    transform: translateY(-2px);
}

.cta-banner::before {
    z-index: 0;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: 3rem 0 2rem;
    font-size: 0.9rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand strong {
    color: var(--text-white);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    max-width: 380px;
    line-height: 1.6;
}

.footer h4 {
    color: var(--text-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

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

/* =========================================================
   Reveal animation (optional — picked up by JS)
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger card reveals so they don't all pop at once */
.posts-grid .post-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.posts-grid .post-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.posts-grid .post-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.posts-grid .post-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.posts-grid .post-card.reveal:nth-child(6) { transition-delay: 0.40s; }

/* Respect prefers-reduced-motion AND act as a no-JS fallback */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   Global utility classes — replacing inline styles
   ========================================================= */

/* Gradient text — works anywhere, not just .blog-hero h1 */
.accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* "/Blog" breadcrumb suffix next to the logo wordmark */
.navbar-logo .brand-suffix {
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================================
   Post card thumbnails — replace the gradient+letter with
   real SVG social card imagery, which we already have.
   ========================================================= */

.post-card-thumb {
    /* keep aspect + rounded corners; image fills via <img> now */
    position: relative;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.03);
}

/* Legacy glyph — used as a small overlay label in case the SVG doesn't load */
.post-thumb-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0; /* shown only when img fails (handled via onerror JS) */
}

/* =========================================================
   Post page — improved meta row (author + date + read time)
   ========================================================= */

.post-meta {
    align-items: center;
    row-gap: 0.5rem;
}

.post-meta .author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.post-meta .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
}

.post-meta .sep-dot::before {
    content: "·";
    color: var(--border);
    padding: 0 0.1rem;
}

/* =========================================================
   Prose refinements — stronger link contrast + blockquote
   ========================================================= */

.post-body a:hover {
    background: rgba(0, 212, 170, 0.08);
    border-bottom-color: var(--accent);
    color: var(--text-primary);
}

.post-body blockquote {
    position: relative;
    font-family: var(--font-prose);
    font-size: 1.1rem;
}

.post-body blockquote::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0.6rem;
    font-family: var(--font-prose);
    font-size: 3rem;
    line-height: 1;
    color: rgba(0, 212, 170, 0.35);
    font-weight: 600;
    pointer-events: none;
}

/* =========================================================
   Mobile refinements
   ========================================================= */

@media (max-width: 640px) {
    .blog-hero {
        padding-top: calc(var(--nav-height) + 3rem);
        padding-bottom: 2.5rem;
    }

    .blog-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 2.5rem 0 4rem;
    }

    .post-hero {
        padding-top: calc(var(--nav-height) + 2.5rem);
        padding-bottom: 2rem;
    }

    .post-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.25rem);
    }

    .post-body {
        padding: 2rem 1.25rem 3.5rem;
        font-size: 1.04rem;
        line-height: 1.75;
    }

    .post-body > .lede {
        font-size: 1.15rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
        margin-top: 2.25rem;
    }

    .post-body h3 {
        font-size: 1.2rem;
        margin-top: 1.75rem;
    }

    .stat-row {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .value {
        font-size: 1.6rem;
    }

    .cta-banner {
        padding: 2rem 1.5rem;
    }

    .cta-banner h3 {
        font-size: 1.25rem;
    }

    .post-meta {
        font-size: 0.85rem;
        gap: 0.75rem 1rem;
    }

    .post-card h2 {
        font-size: 1.2rem;
    }

    .post-card-body {
        padding: 1.25rem;
    }
}

/* Between 641 and 840 — tablet tweaks */
@media (min-width: 641px) and (max-width: 840px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-body {
        padding: 2.5rem 1.5rem 4.5rem;
    }
}

/* =========================================================
   Blog index — "Yakında" (upcoming) note
   ========================================================= */

.upcoming {
    padding: 3rem 0 5rem;
    text-align: center;
}

.upcoming-inner {
    max-width: 640px;
    margin: 0 auto;
}

.upcoming h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.75rem 0;
    letter-spacing: -0.01em;
}

.upcoming p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.upcoming .cta-link {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 212, 170, 0.3);
    transition: all var(--transition-fast);
}

.upcoming .cta-link:hover {
    border-bottom-color: var(--accent);
    background: rgba(0, 212, 170, 0.06);
}

/* Eyebrow dot — previously an inline span */
.eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.25rem;
    vertical-align: middle;
}

/* =========================================================
   Multi-tier CTA variants — extends .inline-cta + .cta-banner
   with light/low-intent and mid-intent variants
   ========================================================= */

/* Low-intent: small chip-style suggestion at post top */
.post-body .cta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.95rem;
    margin: 0 0 1rem;
    text-decoration: none;
    border-bottom: none !important;
    transition: all var(--transition-fast);
}

.post-body .cta-chip:hover {
    background: rgba(0, 212, 170, 0.18);
    color: var(--accent-hover);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Mid-intent: tighter variant of .inline-cta with amber tint */
.post-body .inline-cta.cta-mid {
    border-left-color: var(--accent-amber);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.post-body .inline-cta.cta-mid strong,
.post-body .inline-cta.cta-mid a {
    color: var(--accent-amber);
}

.post-body .inline-cta.cta-mid a:hover {
    color: #d97706;
}

/* Vaka notu — amber-tinted case-study callout (softened replacement for callout-fomo) */
.callout.callout-vaka,
.callout.callout-fomo {
    border-left-color: var(--accent-amber);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.callout.callout-vaka > strong:first-child,
.callout.callout-fomo > strong:first-child {
    color: var(--accent-amber);
}

/* =========================================================
   Data visualizations — inline SVG chart cards
   ========================================================= */

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.25rem;
    margin: 2.25rem 0;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-primary);
}

.chart-card-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.chart-card-title {
    font-family: var(--font-primary);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.chart-card-svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--font-primary);
}

.chart-card-caption {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    line-height: 1.5;
}

/* Decorative section separator — subtle, gradient-tinted divider for long posts */
.section-sep {
    display: block;
    margin: 2.75rem auto 2.25rem;
    width: 100%;
    max-width: 220px;
    height: 24px;
    opacity: 0.9;
    pointer-events: none;
}

/* Accent notch — decorative corner flourish used next to section headings in pillar */
.accent-notch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 0.5rem;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: rotate(45deg);
    vertical-align: middle;
}

/* =========================================================
   Freshness rozeti + "— Grentis Ekibi" byline
   ========================================================= */

.freshness-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}

.freshness-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.post-meta .byline-team {
    color: var(--text-muted);
    font-style: italic;
}

/* =========================================================
   Sticky Table of Contents (pillar post)
   ========================================================= */

.post-with-toc {
    max-width: calc(var(--prose-width) + 280px + 3rem);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 3rem;
}

.post-with-toc > .post-body {
    padding: 0;
    margin: 0;
    max-width: var(--prose-width);
    min-width: 0;
}

.post-toc {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    align-self: start;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    max-height: calc(100vh - var(--nav-height) - 3rem);
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.post-toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.post-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-toc li {
    margin: 0;
    padding: 0;
    line-height: 1.35;
}

.post-toc a {
    display: block;
    padding: 0.4rem 0.6rem;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.post-toc a:hover {
    color: var(--text-primary);
    background: var(--bg-alt);
}

.post-toc a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-light);
    font-weight: 600;
}

/* Mobile ToC: collapsible details */
.post-toc-mobile {
    display: none;
    margin: 1.5rem 0 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.post-toc-mobile summary {
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-toc-mobile summary::-webkit-details-marker {
    display: none;
}

.post-toc-mobile summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}

.post-toc-mobile[open] summary::after {
    content: "−";
}

.post-toc-mobile ul {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.post-toc-mobile li {
    margin: 0.25rem 0;
}

.post-toc-mobile a {
    display: block;
    padding: 0.4rem 0;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .post-with-toc {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .post-toc {
        display: none;
    }

    .post-toc-mobile {
        display: block;
    }
}
