/* ========================================
   Blog — Styles
   ======================================== */

.blog-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card__tag {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card__read {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-card__read:hover {
    text-decoration: underline;
}

/* ========== ARTICLE ========== */
.article {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.article h1 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article__meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article h2 {
    font-size: 1.4rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article p {
    color: var(--text);
    margin-bottom: 1rem;
}

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

.article li {
    margin-bottom: 0.4rem;
    color: var(--text);
}

.article strong {
    color: var(--text);
    font-weight: 700;
}

.article blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-cta {
    background: linear-gradient(135deg, var(--primary), #764ba2);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 2rem;
}

.article-cta h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* ========== DARK MODE ========== */
@media (prefers-color-scheme: dark) {

    .blog-card,
    .article {
        background: rgba(30, 41, 59, 0.95);
    }

    .article blockquote {
        background: rgba(37, 99, 235, 0.1);
    }

    .article__meta {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .article {
        padding: 1.5rem;
    }

    .article h1 {
        font-size: 1.5rem;
    }
}