/* ============================================
   BLOG STYLES — extends styles.css
============================================ */

.blog-header {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.blog-grid-section {
    padding-top: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: block;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.25);
    transform: translateY(-4px);
}

.blog-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(232, 121, 249, 0.04));
    border-color: rgba(167, 139, 250, 0.25);
    padding: 3rem;
}

.blog-card-featured h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.blog-card h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.blog-card p {
    color: #a0a0a8;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.blog-card-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(167, 139, 250, 0.15);
    color: #c8b8ff;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666670;
}

/* ARTICLE PAGE */
.article {
    padding: 8rem 0 4rem;
}

.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.article-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(167, 139, 250, 0.15);
    color: #c8b8ff;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888894;
}

.article-meta span:not(:last-child)::after {
    content: '·';
    margin-left: 1rem;
    color: #444450;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d0d0d8;
}

.article-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 3rem 0 1.25rem;
    color: #fff;
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #fff;
}

.article-content p {
    margin-bottom: 1.5rem;
}

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

.article-content ul li, .article-content ol li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content a {
    color: #c084fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #e879f9;
}

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

.article-content blockquote {
    border-left: 3px solid #a78bfa;
    padding: 0.75rem 0 0.75rem 1.5rem;
    margin: 2rem 0;
    color: #c8c8d0;
    font-style: italic;
    background: rgba(167, 139, 250, 0.04);
    border-radius: 0 8px 8px 0;
}

.article-content code {
    background: rgba(167, 139, 250, 0.12);
    color: #e8d8ff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.article-content table th,
.article-content table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content table th {
    background: rgba(167, 139, 250, 0.06);
    color: #fff;
    font-weight: 600;
}

.article-content table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.article-cta-box {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(232, 121, 249, 0.05));
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 16px;
    text-align: center;
}

.article-cta-box h3 {
    margin: 0 0 0.75rem;
    color: #fff;
}

.article-cta-box p {
    color: #c8c8d0;
    margin-bottom: 1.5rem;
}

.article-tldr {
    margin: 0 0 2rem;
    padding: 1.5rem 1.75rem;
    background: rgba(167, 139, 250, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 12px;
}

.article-tldr-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c8b8ff;
    margin-bottom: 0.5rem;
}

.article-tldr p {
    margin: 0;
    color: #d8d8e0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .blog-card-featured {
        padding: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }
}
