/* SkarduX Blog Styles */

.blog-hero { padding: 160px 24px 60px; text-align: center; position: relative; }
.blog-hero .ambient-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, rgba(255,255,255,0) 70%); top: -100px; left: 50%; transform: translateX(-50%); z-index: -1; pointer-events: none; }
.blog-hero .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); padding: 8px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; margin-bottom: 24px; }
.blog-hero h1 { font-size: 3.8rem; font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px; }
.blog-hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

.blog-filters { max-width: 1100px; margin: 0 auto 40px; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.blog-filter { padding: 8px 20px; border-radius: 30px; border: 1px solid var(--border-color); background: white; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; color: var(--text-muted); }
.blog-filter:hover, .blog-filter.active { background: var(--primary); color: white; border-color: var(--primary); }

.blog-grid { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.blog-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 22px; overflow: hidden; transition: all 0.3s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: 0 16px 32px rgba(139,92,246,0.06); }
.blog-card-thumb { height: 180px; background: linear-gradient(135deg, #f5f0ff, #ede9fe); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.blog-card-thumb .thumb-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(139,92,246,0.1); display: flex; align-items: center; justify-content: center; }
.blog-card-thumb .thumb-icon svg { width: 28px; height: 28px; fill: var(--primary); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.78rem; color: var(--text-muted); }
.blog-card-category { background: var(--primary-light); color: var(--primary); padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.3px; }
.blog-card-body h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; letter-spacing: -0.3px; }
.blog-card-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }
.blog-card-read { color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.blog-card-read svg { width: 14px; height: 14px; fill: currentColor; }

/* Article Page */
.article-container { max-width: 780px; margin: 0 auto; padding: 140px 24px 80px; }
.article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }
.article-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-category-tag { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 16px; }
.article-container h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; fill: var(--text-muted); }

.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); z-index: 9999; transition: width 0.1s linear; }

.article-toc { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px 28px; margin-bottom: 32px; }
.article-toc h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
.article-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc li a { display: block; padding: 6px 0; font-size: 0.9rem; color: var(--text-main); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.article-toc li a::before { content: counter(toc) ". "; color: var(--primary); font-weight: 700; }
.article-toc li a:hover { color: var(--primary); }

.article-body h2 { font-size: 1.6rem; font-weight: 800; margin: 36px 0 16px; letter-spacing: -0.5px; }
.article-body h3 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 12px; }
.article-body p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body li { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.article-body strong { color: var(--text-main); }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 24px 0; background: var(--primary-light); border-radius: 0 12px 12px 0; font-style: italic; color: var(--text-main); }

.article-faq { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-color); }
.article-faq h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; cursor: pointer; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--border-hover); }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.95rem; }
.faq-question svg { width: 18px; height: 18px; fill: var(--text-muted); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.faq-item.open .faq-answer { max-height: 200px; padding-top: 12px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }

.article-cta { margin-top: 40px; background: linear-gradient(135deg, #1a1625, #2d1f4e); border-radius: 22px; padding: 40px; text-align: center; color: white; }
.article-cta h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,0.7); margin-bottom: 20px; font-size: 0.95rem; }
.article-cta a { display: inline-block; padding: 14px 32px; background: var(--primary); color: white; border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease; }
.article-cta a:hover { background: #6D28D9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139,92,246,0.4); }

.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-color); }
.related-articles h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; transition: all 0.3s ease; }
.related-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.related-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.related-card p { font-size: 0.8rem; color: var(--text-muted); }

.blog-filter-label {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding-top: 8px;
}

@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2.6rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-container h1 { font-size: 2rem; }
    .related-grid { grid-template-columns: 1fr; }
    .blog-filters { gap: 6px; }
    .blog-filter { padding: 5px 12px; font-size: 0.75rem; }
    .blog-filter-label { font-size: 0.7rem; padding-top: 6px; }
}
