/* Blog Content Styling */
.blog-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.3);
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-content a {
    color: #a855f7;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-content a:hover {
    color: #c084fc;
}

.blog-content strong {
    font-weight: 700;
    color: #fff;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #a855f7;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(168, 85, 247, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

.blog-content code {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.blog-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

#toc-container {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

#toc-container h3 {
    margin: 0 0 1rem 0 !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid rgba(168, 85, 247, 0.3) !important;
}

#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    z-index: 9999;
}

/* ── Inline SVG icon alignment & colour ───────────────────────── */
.blog-content svg.icon-check,
.blog-content svg.icon-cross {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    top: -1px;
    margin-right: 0.35em;
}

.blog-content svg.icon-check {
    fill: #4ade80;
    color: #4ade80;
}

.blog-content svg.icon-cross {
    fill: #f87171;
    color: #f87171;
}

/* List items that carry an icon get flex so icon + text align */
.blog-content li:has(> svg.icon-check),
.blog-content li:has(> svg.icon-cross) {
    display: flex;
    align-items: flex-start;
    gap: 0.35em;
    list-style: none;
    margin-left: -1.5rem;
}

/* Clickable / linked list items */
.blog-content li > a {
    color: #a855f7;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.blog-content li > a:hover {
    color: #c084fc;
}
