/* diabec-blog.css — Shared blog article styles
   Loaded after diabec-base.css + diabec-navbar.css on blog pages. */

/* ========== BREADCRUMB ========== */
.breadcrumb {
    margin-top: 72px;
    padding: 1rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--accent-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.breadcrumb span {
    margin: 0 0.4rem;
    color: var(--border-light);
}

/* ========== ARTICLE HEADER ========== */
.article-header {
    text-align: center;
    padding: 3rem 2rem 0;
    max-width: 780px;
    margin: 0 auto;
}
.article-category {
    display: inline-block;
    background: rgba(200,169,110,0.15);
    border: 1px solid rgba(200,169,110,0.3);
    color: var(--amber-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    font-family: 'Inter', sans-serif;
}
.article-header h1 {
    font-size: 2.6rem;
    color: var(--deep-green);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.article-meta .author { font-weight: 600; color: var(--accent-green); }
.article-meta .separator { color: var(--border-light); }
.article-meta .read-time { font-style: italic; }

/* ========== FEATURED IMAGE ========== */
.featured-image {
    max-width: 780px;
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
}
.featured-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ========== ARTICLE CONTENT ========== */
.article-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    animation: fadeInUp 0.5s ease both;
}
.article-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-size: 1.8rem;
    color: var(--deep-green);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}
.article-content h3 {
    font-size: 1.3rem;
    color: var(--accent-green);
    margin: 2rem 0 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.article-content strong { color: var(--deep-green); }
.article-content em { color: var(--text-medium); }
.article-content blockquote {
    border-left: 4px solid var(--amber-gold);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    background: rgba(200,169,110,0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-medium);
}

/* Enhanced blockquote border */
.highlight-box, blockquote {
    border-left: 4px solid var(--amber-gold) !important;
}

/* Superscript citations */
sup a { color: var(--amber-gold); font-weight: 600; text-decoration: none; font-size: 0.75em; }
sup a:hover { color: var(--accent-green); text-decoration: underline; }

/* ========== KEY TAKEAWAYS BOX ========== */
.key-takeaways {
    background: linear-gradient(135deg, rgba(44,62,31,0.04), rgba(200,169,110,0.08));
    border: 1px solid rgba(200,169,110,0.25);
    border-radius: var(--radius-md);
    padding: 2rem 2.5rem;
    margin: 2rem 0 2.5rem;
}
.key-takeaways h2 {
    font-size: 1.3rem;
    color: var(--deep-green);
    margin: 0 0 1rem;
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.key-takeaways ul { list-style: none; margin: 0; padding: 0; }
.key-takeaways li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 0.98rem;
    line-height: 1.7;
}
.key-takeaways li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

/* Enhanced dark variant */
.key-takeaways-enhanced {
    background: linear-gradient(135deg, #2c3e1f 0%, #3d5a2a 40%, #2c3e1f 100%) !important;
    border: 1px solid rgba(200,169,110,0.2);
    box-shadow: 0 4px 24px rgba(44,62,31,0.25);
}

/* ========== SOURCES ========== */
.sources {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
}
.sources h2 {
    font-size: 1.2rem;
    color: var(--deep-green);
    margin: 0 0 1rem;
    padding-top: 0;
}
.sources ol { margin: 0; padding-left: 1.5rem; }
.sources li {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}
.sources li a { color: var(--accent-green); word-break: break-all; }

/* Enhanced source link hover */
.sources-section a, .sources a, .sources li a { position: relative; text-decoration: none !important; }
.sources-section a::after, .sources a::after, .sources li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-gold);
    transition: width 0.3s ease;
}
.sources-section a:hover::after, .sources a:hover::after, .sources li a:hover::after {
    width: 100%;
}

/* ========== CTA BANNER ========== */
.article-cta {
    background: linear-gradient(135deg, var(--deep-green), #1a2912);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    margin: 2.5rem 0;
}
.article-cta h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: 'Playfair Display', serif;
}
.article-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.article-cta a {
    display: inline-block;
    background: linear-gradient(135deg, var(--amber-gold), #b8954e);
    color: var(--deep-green);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200,169,110,0.4);
    color: var(--deep-green);
}

/* ========== READING PROGRESS BAR ========== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-gold), #e8c97a);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(200,169,110,0.5);
}

/* ========== PRO TIP CALLOUT ========== */
.pro-tip {
    background: linear-gradient(135deg, rgba(200,169,110,0.1), rgba(90,110,74,0.08));
    border: 1px solid rgba(200,169,110,0.3);
    border-left: 4px solid var(--amber-gold);
    border-radius: 0 12px 12px 0;
    padding: 1.4rem 1.6rem 1.4rem 1.8rem;
    margin: 2rem 0;
    position: relative;
}
.pro-tip-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--amber-gold);
    margin-bottom: 0.5rem;
    display: block;
}
.pro-tip p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 0 !important;
}

/* ========== SHARE SECTION ========== */
.share-section {
    max-width: 780px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.share-box {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.share-box h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: var(--deep-green);
    margin: 0;
}
.share-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.share-btn-copy { background: var(--cream); color: var(--text-dark); border: 1px solid var(--border-light); }
.share-btn-email { background: #5a6e4a; color: white !important; }
.share-btn-facebook { background: #1877f2; color: white !important; }
.share-btn-twitter { background: #0f1419; color: white !important; }

/* ========== RELATED ARTICLES ========== */
.related-articles,
.related-articles-section {
    padding: 3rem 2rem;
    background: var(--white);
    margin-top: 2rem;
}
.related-articles .section-header,
.related-articles-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.related-articles .section-label,
.related-articles-section .section-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-gold);
    margin-bottom: 0.5rem;
}
.related-articles h2,
.related-articles-section h2 {
    font-size: 1.8rem;
    color: var(--deep-green);
    margin-bottom: 0.5rem;
}
.related-articles .divider,
.related-articles-section .divider {
    width: 60px;
    height: 3px;
    background: var(--amber-gold);
    border: none;
    margin: 0 auto;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}
.related-card {
    background: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none !important;
    display: block;
}
.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.related-card img { width: 100%; height: 140px; object-fit: cover; }
.related-card .related-body { padding: 1rem; }
.related-card .related-body h4 {
    font-size: 0.88rem;
    color: var(--deep-green);
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin: 0;
}

/* ========== ARTICLE BODY GRADIENT ========== */
.article-body-bg {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 15%, var(--white) 85%, var(--cream) 100%);
    padding-top: 1px;
    padding-bottom: 1px;
}

/* ========== MOBILE STICKY CTA ========== */
.sticky-cta { display: none; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== BLOG RESPONSIVE ========== */
@media (max-width: 768px) {
    .article-header { padding: 2rem 1rem 0; }
    .article-header h1 { font-size: 1.8rem; }
    .featured-image { padding: 0 1rem; }
    .article-content { padding: 0 1rem 2rem; }
    .article-content h2 { font-size: 1.5rem; }
    .key-takeaways { padding: 1.5rem; }
    .sources { padding: 1.5rem; }
    .article-cta { padding: 2rem 1.5rem; }
    .related-grid { grid-template-columns: 1fr; max-width: 400px; }
    .share-box { flex-direction: column; text-align: center; }
    .share-buttons { justify-content: center; }

    .footer { padding: 2rem 1rem; }
    .footer-disclaimer { padding: 1.5rem 1rem; }

    .sticky-cta {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2E7D32, #1B5E20);
        padding: 0.5rem 1rem;
        z-index: 999;
        justify-content: center;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    }
    .sticky-cta a {
        color: #fff;
        font-weight: 700;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-family: 'Inter', sans-serif;
        width: 100%;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }

    body { padding-bottom: 64px; }
}

@media (max-width: 400px) {
    .article-header h1 { font-size: 1.5rem; }
    .article-content p { font-size: 1rem; }
}
