/**
 * AgentFSD Blog Styles
 * Industrial-Grade Design System for SEO/AEO Optimized Blog
 */

/* ============================================
   BLOG HERO SECTION
   ============================================ */

.blog-hero {
    padding-top: 140px;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 60%);
    filter: blur(100px);
    z-index: 0;
    animation: pulse 10s infinite alternate;
}

.blog-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.blog-hero-content h1 {
    font-size: 4rem;
    background: linear-gradient(to bottom right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 800;
}

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

.blog-hero-content .hero-sub strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   FILTER SECTION
   ============================================ */

.filter-section {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.filter-pill.active {
    color: white;
    background: linear-gradient(135deg, var(--pill-color, var(--accent-primary)), color-mix(in srgb, var(--pill-color, var(--accent-primary)) 80%, #000));
    border-color: transparent;
    box-shadow: 0 0 15px color-mix(in srgb, var(--pill-color, var(--accent-primary)) 50%, transparent);
}

.filter-pill i {
    font-size: 1rem;
}

.author-pills .filter-pill.human.active {
    --pill-color: #8b5cf6;
}

.author-pills .filter-pill.ai.active {
    --pill-color: #06b6d4;
}

.filter-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FEATURED SECTION
   ============================================ */

.featured-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header h2 i {
    color: var(--accent-warning);
}

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

.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.featured-card.featured-main {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.featured-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-main .featured-image {
    height: 100%;
    min-height: 300px;
}

.featured-placeholder {
    background: linear-gradient(135deg, var(--bg-surface), #1e293b);
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 16px 16px, 60px 60px, 60px 60px;
    opacity: 0.6;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent 50%);
}

.featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-main .featured-content {
    padding: 2rem;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
    background: color-mix(in srgb, var(--badge-color) 15%, transparent);
    color: var(--badge-color);
    border: 1px solid color-mix(in srgb, var(--badge-color) 30%, transparent);
}

.content-type-badge.small {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
}

.author-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.author-badge.human {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.author-badge.ai {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
}

.author-badge.hybrid {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.author-indicator {
    font-size: 0.9rem;
}

.featured-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.featured-main h3 {
    font-size: 1.75rem;
}

.featured-card h3 a {
    color: var(--text-primary);
}

.featured-card h3 a:hover {
    color: var(--accent-glow);
}

.featured-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.post-meta-bottom {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.post-meta-bottom i {
    margin-right: 0.25rem;
}

/* ============================================
   POSTS GRID
   ============================================ */

.posts-section {
    padding: 4rem 0;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.posts-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.posts-header h2 i {
    color: var(--accent-cyan);
}

.post-count {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.post-card-header {
    position: relative;
    height: 160px;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.post-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-surface), #1e293b);
    position: relative;
}

.post-thumbnail-placeholder i {
    font-size: 3rem;
    color: var(--text-tertiary);
    opacity: 0.3;
    z-index: 1;
}

.post-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.post-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card-body h3 a {
    color: var(--text-primary);
}

.post-card-body h3 a:hover {
    color: var(--accent-glow);
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-tertiary);
    transition: all 0.2s;
}

a.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.read-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-glow);
}

.read-link i {
    transition: transform 0.2s;
}

.post-card:hover .read-link i {
    transform: translateX(4px);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s;
}

.pagination-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.pagination-num:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.pagination-num.active {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: var(--text-tertiary);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 6rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 2.5rem;
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* ============================================
   BLOG CTA SECTION
   ============================================ */

.blog-cta {
    padding: 4rem 0;
}

.blog-cta .cta-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.blog-cta .cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.blog-cta .cta-content p {
    color: var(--text-secondary);
    margin: 0;
}

.cta-form {
    display: flex;
    gap: 1rem;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */

.post-page {
    padding-top: 70px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-tertiary);
}

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

.breadcrumbs span {
    color: var(--text-tertiary);
}

/* Post Header */
.post-header {
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.1), transparent 50%);
    z-index: 0;
}

.post-header-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.post-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(to bottom right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.post-author-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar-placeholder i {
    font-size: 1.5rem;
    color: var(--text-tertiary);
}

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

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

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

.post-stats {
    display: flex;
    gap: 1.5rem;
}

.reading-time,
.word-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.post-header .post-tags {
    margin-bottom: 0;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 3rem;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Post Content Layout */
.post-content-wrapper {
    padding: 2rem 0 4rem;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
}

.post-content {
    max-width: 100%;
    min-width: 0;
}

/* TLDR Box */
.tldr-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-left: 4px solid var(--accent-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tldr-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 0.75rem;
}

.tldr-box p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.key-takeaways {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.key-takeaways li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Prose (Article Content) */
.prose {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.prose h1 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
}

.prose h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--accent-glow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--accent-cyan);
}

.prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

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

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

.prose code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: var(--accent-pink);
}

.prose pre {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    transition: transform 0.2s;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Author Box */
.author-box {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.author-box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-box-info h4 {
    font-size: 1.1rem;
    margin: 0;
}

.author-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Share Section */
.share-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.share-btn.twitter:hover {
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.3);
}

.share-btn.linkedin:hover {
    color: #0077b5;
    border-color: rgba(0, 119, 181, 0.3);
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sidebar-widget h4 i {
    color: var(--accent-cyan);
}

/* Table of Contents */
.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.toc li.h3 {
    padding-left: 1rem;
}

.toc a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
}

.toc a:hover {
    color: var(--accent-glow);
}

/* Series Widget */
.series-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.series-position {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    outline: none;
}

.sidebar-form input:focus {
    border-color: var(--accent-primary);
}

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

/* Related Section */
.related-section {
    padding: 4rem 0;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.related-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.related-section h2 i {
    color: var(--accent-cyan);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.related-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-card h4 a {
    color: var(--text-primary);
}

.related-card h4 a:hover {
    color: var(--accent-glow);
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Post Navigation */
.post-navigation {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s;
}

.back-to-blog:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        display: none;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }

    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-divider {
        width: 100%;
        height: 1px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card.featured-main {
        grid-column: 1;
        grid-template-columns: 1fr;
    }

    .featured-main .featured-image {
        min-height: 200px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-form {
        width: 100%;
        flex-direction: column;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-author-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}