/* ========================================
   Blog Styles
   ======================================== */

.blog-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: calc(70px + 3rem) 0 3rem;
    text-align: center;
}

.blog-hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0 6rem;
    background: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover .blog-title {
    color: var(--primary);
}

.blog-image {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    overflow: hidden;
}

.blog-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image.placeholder i {
    position: absolute;
    font-size: 64px;
    color: var(--primary);
    opacity: 0.3;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Blog Author */
.blog-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.author-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Blog CTA */
.blog-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.blog-cta h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   Blog Article Page Styles
   ======================================== */

.blog-article,
.blog-post {
    background: var(--bg-primary);
    min-height: 100vh;
}

.article-header,
.post-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: calc(90px + 3rem) 0 3rem;
    margin-bottom: 3rem;
}

.post-header .container {
    max-width: 900px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.post-intro {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
    margin-top: 2rem;
    max-width: 800px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.category {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-time,
.date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 900px;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 800px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Article Content */
.article-content,
.post-content {
    padding: 2rem 0 4rem;
}

.content-wrapper,
.post-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 3rem;
}

.medical-disclaimer {
    background: #fef3c7;
    border-left: 4px solid #fbbf24;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.medical-disclaimer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #78350f;
    margin: 0;
}

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

.article-content .lead,
.post-content .lead {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.article-content h2,
.post-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content h3,
.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.article-content h4,
.post-content h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.article-content li,
.post-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.article-content strong,
.post-content strong {
    font-weight: 700;
    color: var(--text-primary);
}

.article-content blockquote,
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content em,
.post-content em {
    font-style: italic;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-title {
        font-size: 1.25rem;
    }

    .blog-cta h3 {
        font-size: 1.5rem;
    }

    .blog-cta p {
        font-size: 1rem;
    }

    /* Article Page Mobile Styles */
    .article-header,
    .post-header {
        padding: calc(70px + 2rem) 0 2rem;
    }

    .article-title,
    .post-header h1 {
        font-size: 1.75rem;
    }

    .article-subtitle,
    .post-intro {
        font-size: 1.05rem;
    }

    .article-meta,
    .post-meta {
        font-size: 0.85rem;
    }

    .article-content p,
    .article-content li,
    .post-content p,
    .post-content li {
        font-size: 1rem;
    }

    .article-content .lead,
    .post-content .lead,
    .post-intro {
        font-size: 1.15rem;
    }

    .article-content h2,
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .article-content h3,
    .post-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .article-content h4,
    .post-content h4 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
    }
}
