/* Blog listing page */

.blog-hero {
    min-height: 48vh;
    position: relative;
}

.blog-hero .hero-bg {
    background:
        radial-gradient(120% 140% at 88% 12%, rgba(124, 76, 255, 0.34) 0%, rgba(124, 76, 255, 0) 60%),
        linear-gradient(180deg, rgba(12, 10, 32, 0.88), rgba(12, 10, 32, 0.38));
}

.blog-hero-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-content h1 {
    margin-bottom: 0.7rem;
}

.blog-hero-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.blog-toolbar {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: rgba(18, 15, 42, 0.86);
    padding: 0.55rem 0.75rem;
}

.blog-search svg {
    width: 16px;
    height: 16px;
    opacity: 0.65;
}

.blog-search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.blog-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.blog-category-chip {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.72rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-category-chip.active {
    color: #fff;
    border-color: rgba(124, 76, 255, 0.74);
    background: rgba(124, 76, 255, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.blog-card {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background:
        radial-gradient(130% 200% at 100% 0%, rgba(124, 76, 255, 0.25) 0%, rgba(124, 76, 255, 0) 55%),
        rgba(20, 16, 44, 0.9);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 252px;
    padding: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 76, 255, 0.68);
    box-shadow: 0 16px 32px rgba(9, 11, 30, 0.32);
}

.blog-card-category {
    align-self: flex-start;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(124, 76, 255, 0.22);
    padding: 0.2rem 0.58rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.72rem;
}

.blog-card-title {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.38;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    margin: 0.58rem 0 0;
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: rgba(246, 244, 255, 0.76);
}

.blog-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 1.1rem;
    color: var(--text-secondary);
}

@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .blog-hero {
        min-height: 42vh;
    }

    .blog-hero-subtitle {
        font-size: 0.95rem;
    }

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

.blog-hero .hero-bg {
    background:
        radial-gradient(120% 140% at 88% 12%, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 237, 255, 0.46));
}

.blog-search {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 24px rgba(111, 92, 170, 0.08);
}

.blog-category-chip {
    background: rgba(255, 255, 255, 0.82);
}

.blog-category-chip.active {
    background: rgba(139, 92, 246, 0.18);
    color: var(--accent-primary);
}

.blog-card {
    background:
        radial-gradient(130% 200% at 100% 0%, rgba(139, 92, 246, 0.14) 0%, rgba(139, 92, 246, 0) 55%),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(111, 92, 170, 0.1);
}

.blog-card:hover {
    box-shadow: 0 18px 38px rgba(111, 92, 170, 0.14);
}

.blog-card-category {
    border-color: rgba(143, 113, 228, 0.16);
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
}

.blog-card-meta {
    border-top-color: rgba(143, 113, 228, 0.12);
    color: #71658f;
}

.blog-empty {
    border-color: rgba(143, 113, 228, 0.18);
    background: rgba(255, 255, 255, 0.78);
}
