/* Blog post layout — supplements calculator-body.css and ui-v2.css */

.blog-page {
    background: #f8fafc;
    min-height: 100vh;
}

.blog-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

/* Breadcrumb */
.blog-breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}
.blog-breadcrumb a:hover { color: #1a3d6e; }

/* Post header */
.post-header {
    margin-bottom: 36px;
}
.post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a3d6e;
    background: #e8f0f8;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 16px;
}
.post-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}
.post-meta-date { font-weight: 500; }
.post-meta-read {
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-meta-read::before {
    content: "·";
    font-size: 18px;
    line-height: 1;
    color: #cbd5e1;
}

/* Hero image */
.post-hero {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 36px;
    background: linear-gradient(135deg, #0f2240 0%, #1a3d6e 100%);
    aspect-ratio: 16/7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.post-hero-inner {
    text-align: center;
    padding: 32px;
    position: relative;
    z-index: 1;
}
.post-hero-icon {
    font-size: 56px;
    margin-bottom: 12px;
    display: block;
}
.post-hero-label {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Body text */
.post-body {
    font-size: 17px;
    line-height: 1.75;
    color: #334155;
}
.post-body p { margin: 0 0 1.4em; }
.post-body h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 2.2em 0 0.7em;
    padding-top: 0.4em;
    border-top: 2px solid #e2e8f0;
}
.post-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.6em 0 0.5em;
}
.post-body ul, .post-body ol {
    padding-left: 1.4em;
    margin: 0 0 1.4em;
}
.post-body li { margin-bottom: 0.5em; }
.post-body a {
    color: #1a3d6e;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-body a:hover { color: #3366aa; }
.post-body strong { color: #1e293b; }

/* Data tables */
.post-table-wrapper {
    overflow-x: auto;
    margin: 1.75em 0;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.post-table thead {
    background: #1a3d6e;
    color: #fff;
}
.post-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
.post-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}
.post-table tbody tr:last-child { border-bottom: none; }
.post-table tbody tr:nth-child(even) { background: #f8fafc; }
.post-table tbody tr:hover { background: #f0f7ff; }
.post-table td {
    padding: 11px 16px;
    vertical-align: top;
    color: #334155;
    line-height: 1.5;
}
.post-table td strong { color: #1a3d6e; }

/* Pull quote */
.post-pullquote {
    border-left: 4px solid #00d4aa;
    background: #f0fdf9;
    padding: 20px 24px;
    margin: 2em 0;
    border-radius: 0 12px 12px 0;
    font-size: 1.05rem;
    font-style: italic;
    color: #0f4c3a;
    line-height: 1.6;
}

/* Callout box linking to calculator */
.calc-callout {
    background: linear-gradient(135deg, #0f2240 0%, #1a3d6e 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 2.4em 0;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 20px rgba(15,34,64,0.18);
}
.calc-callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15,34,64,0.24);
    text-decoration: none;
}
.calc-callout-icon {
    width: 52px;
    height: 52px;
    background: rgba(0,212,170,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.calc-callout-text { flex: 1; }
.calc-callout-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00d4aa;
    display: block;
    margin-bottom: 4px;
}
.calc-callout-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    display: block;
    margin-bottom: 4px;
}
.calc-callout-desc {
    font-size: 13px;
    color: rgba(248,250,252,0.65);
    display: block;
}
.calc-callout-arrow {
    color: rgba(248,250,252,0.5);
    font-size: 20px;
    flex-shrink: 0;
}

/* Key numbers / stat boxes */
.post-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 2em 0;
}
.post-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
}
.post-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a3d6e;
    letter-spacing: -0.02em;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.post-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Author / footer */
.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.post-footer-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0f2240, #1a3d6e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.post-footer-text { font-size: 13px; color: #64748b; line-height: 1.5; }
.post-footer-text strong { color: #1e293b; display: block; }

/* Related posts */
.related-posts {
    margin-top: 56px;
}
.related-posts h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.related-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.related-card:hover {
    box-shadow: 0 4px 16px rgba(15,34,64,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}
.related-card-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a3d6e;
    display: block;
    margin-bottom: 8px;
}
.related-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: block;
    margin-bottom: 6px;
}
.related-card-date { font-size: 12px; color: #94a3b8; }

/* Blog index styles */
.blog-index-hero {
    background: linear-gradient(135deg, #0f2240 0%, #1a3d6e 100%);
    padding: 56px 24px 48px;
    text-align: center;
    margin-bottom: 48px;
}
.blog-index-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}
.blog-index-hero p {
    font-size: 1.05rem;
    color: rgba(248,250,252,0.7);
    max-width: 520px;
    margin: 0 auto;
}

.blog-index-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 8px 28px rgba(15,34,64,0.12);
    transform: translateY(-3px);
    text-decoration: none;
}
.post-card-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.post-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.post-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 10px;
    display: block;
    letter-spacing: -0.01em;
}
.post-card-excerpt {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
    display: block;
}
.post-card-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 10px;
}

@media (max-width: 640px) {
    .blog-container { padding: 20px 16px 60px; }
    .post-body { font-size: 16px; }
    .calc-callout { flex-direction: column; text-align: center; }
    .calc-callout-arrow { display: none; }
    .post-stats { grid-template-columns: repeat(2, 1fr); }
}
