/* Blog styles — matches the main site design system */

body {
    font-family: 'Inter', sans-serif;
}

.heading-font {
    font-family: 'Playfair Display', serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #667eea;
    transition: width 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* --- Post cards --- */

.post-card {
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tag-pill {
    transition: all 0.2s ease;
}

.tag-pill.is-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* --- Rendered markdown article body --- */

.article-body {
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.85;
}

.article-body > *:first-child {
    margin-top: 0;
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 2.75rem 0 1rem;
    line-height: 1.25;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.25rem 0 0.75rem;
    line-height: 1.3;
}

.article-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.75rem 0 0.5rem;
}

.article-body p {
    margin: 1.35rem 0;
}

.article-body a {
    color: #5b5bd6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: #764ba2;
}

.article-body ul,
.article-body ol {
    margin: 1.35rem 0;
    padding-left: 1.6rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
    margin: 0.6rem 0;
}

.article-body li > ul,
.article-body li > ol {
    margin: 0.5rem 0;
}

.article-body blockquote {
    border-left: 4px solid #667eea;
    background: #f5f5ff;
    padding: 1rem 1.5rem;
    margin: 1.75rem 0;
    color: #4b5563;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}

.article-body blockquote p {
    margin: 0.5rem 0;
}

.article-body code {
    background: #f1f1f7;
    color: #6d28d9;
    padding: 0.15em 0.4em;
    border-radius: 0.3rem;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-body pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.25rem 1.5rem;
    border-radius: 0.65rem;
    overflow-x: auto;
    margin: 1.75rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-body hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 1rem;
}

.article-body th,
.article-body td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}

.article-body th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.article-body strong {
    color: #111827;
    font-weight: 650;
}

@media (max-width: 768px) {
    .article-body {
        font-size: 1.05rem;
    }

    .article-body h2 {
        font-size: 1.6rem;
    }

    .article-body h3 {
        font-size: 1.3rem;
    }
}
