/* MindSkribe Blog Styles — Aligned with landing page theme */

:root {
    /* Core palette (matching landing page) */
    --main-color: #1A9E8F;
    --main-dark: #147A6E;
    --secondary-color: #E8614D;
    --bg-light: #FAF8F0;
    --text-primary: #1D2B35;
    --text-secondary: #6B7F8D;

    /* Extended palette */
    --cream: #FAF8F0;
    --cream-dark: #F0EDDF;
    --teal: #1A9E8F;
    --teal-dark: #147A6E;
    --teal-light: #E6F5F3;
    --coral: #E8614D;
    --gold: #E5A84B;
    --charcoal: #1D2B35;
    --charcoal-light: #3A4F5C;
    --text-muted: #97A8B3;
    --white: #FFFFFF;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

.text-main {
    color: var(--main-color);
}

.bg-main {
    background-color: var(--main-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.glass-nav {
    background: rgba(250, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.btn-primary {
    background: var(--teal);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 158, 143, 0.3);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 158, 143, 0.4);
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 158, 143, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

.category-ai {
    background-color: #E0F2FE;
    color: #0369A1;
}

.category-growth {
    background-color: #D1FAE5;
    color: #065F46;
}

.category-product {
    background-color: #FEF3C7;
    color: #92400E;
}

.category-thought-leadership {
    background-color: #EDE9FE;
    color: #5B21B6;
}

.category-community {
    background-color: #FFE4E6;
    color: #9F1239;
}

/* Blog Post Article Styles */
.blog-article {
    max-width: 720px;
    margin: 0 auto;
}

.blog-article p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.blog-article h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-article h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-article ul,
.blog-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-article ul {
    list-style-type: disc;
}

.blog-article ol {
    list-style-type: decimal;
}

.blog-article li {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.blog-article blockquote {
    border-left: 4px solid var(--main-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--teal-light);
    border-radius: 0 12px 12px 0;
}

.blog-article blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: 0;
}

.blog-article img {
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.blog-article img.img-phone {
    max-width: 360px;
}

.blog-article img.img-landscape {
    max-width: 100%;
}

.blog-article a {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.blog-article a:hover {
    color: var(--main-dark);
}

.blog-article strong {
    font-weight: 600;
    color: var(--charcoal);
}

/* Code Blocks */
.blog-article code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.875em;
    background: var(--cream-dark);
    color: var(--charcoal);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

.blog-article pre {
    background: var(--charcoal);
    color: #E5E7EB;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    line-height: 1.6;
    font-size: 0.875rem;
}

.blog-article pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Key Takeaway Box */
.key-takeaway {
    background: linear-gradient(135deg, var(--teal-light) 0%, #E0F7FA 100%);
    border: 1px solid rgba(26, 158, 143, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.key-takeaway h4 {
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* TL;DR Box */
.tldr-box {
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
    border: 1px solid rgba(229, 168, 75, 0.3);
    border-left: 4px solid var(--gold);
    border-radius: 0 16px 16px 0;
    padding: 1.5rem 2rem;
    margin: 0 0 2.5rem;
}

.tldr-box h4 {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.tldr-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Figure & Figcaption */
.blog-article figure {
    margin: 2rem 0;
    text-align: center;
}

.blog-article figure img {
    margin: 0 auto;
}

.blog-article figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.5;
    font-family: var(--font-body);
    font-style: italic;
}

/* Table of Contents */
.toc {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.toc h4 {
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

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

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

.toc a {
    color: var(--main-color);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    font-family: var(--font-body);
}

.toc a:hover {
    color: var(--main-dark);
    text-decoration: underline;
}

.toc a.toc-active {
    color: var(--main-dark);
    font-weight: 600;
    border-left: 2px solid var(--main-color);
    padding-left: 0.5rem;
}

/* Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: var(--cream-dark);
}

.share-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.share-btn-twitter:hover {
    background: #1DA1F2;
}

.share-btn-linkedin:hover {
    background: #0077B5;
}

.share-btn-facebook:hover {
    background: #1877F2;
}

.share-btn-whatsapp:hover {
    background: #25D366;
}

.share-btn-email:hover {
    background: var(--charcoal-light);
}

.share-btn-copy:hover {
    background: var(--main-color);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), var(--gold));
    z-index: 100;
    transition: width 0.1s linear;
}

/* Related Posts */
.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 158, 143, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-dark);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Hero */
.blog-hero-gradient {
    background: radial-gradient(ellipse at 50% 0%, var(--teal-light) 0%, var(--bg-light) 70%);
}

/* Pagination */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    font-family: var(--font-body);
}

.page-link:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.page-link.active {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}
