/* ========================================
   BLOG — Neomorphism Theme
   ======================================== */

/* Hero */
.blog-hero {
    padding: 120px 0 50px;
    text-align: center;
}
.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.blog-hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Filters */
.blog-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.blog-filter-btn {
    padding: 10px 22px;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 8px;
    background: var(--neo-surface);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.15s;
}
.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 175, 240, 0.35);
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.blog-card {
    background: var(--neo-surface);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: var(--neo-radius);
    box-shadow: none;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.blog-card-img {
    height: 180px;
    background: linear-gradient(135deg, #1a1d23, #242830);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-card-placeholder {
    font-size: 3rem;
    opacity: 0.5;
}
.blog-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
}
.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: rgba(138, 145, 156, 0.7);
}

/* Eva Spotlight Banner (blog index) */
.eva-spotlight-section {
    padding: 0 0 60px;
}
.eva-spotlight-banner {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--neo-surface);
    border-radius: var(--neo-radius);
    box-shadow: none;
    padding: 30px;
    border: 1px solid rgba(0, 175, 240, 0.15);
}
.eva-spotlight-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0, 175, 240, 0.2), 0 0 60px rgba(255, 215, 0, 0.1);
    border: 3px solid rgba(0, 175, 240, 0.3);
    flex-shrink: 0;
}
.eva-spotlight-info {
    flex: 1;
}
.eva-spotlight-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.eva-spotlight-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.eva-spotlight-info p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Article Page */
.article-page {
    padding: 100px 0 60px;
}
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.article-back {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
    transition: opacity 0.2s;
}
.article-back:hover {
    opacity: 0.7;
}
.article-header {
    margin-bottom: 30px;
}
.article-cat {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 12px 0 16px;
    line-height: 1.25;
}
.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.article-content {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.article-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 32px 0 14px;
}
.article-content p {
    margin-bottom: 18px;
}
.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.article-tag {
    font-size: 0.78rem;
    padding: 5px 14px;
    background: var(--neo-surface);
    border-radius: var(--neo-radius-pill);
    color: var(--primary);
    box-shadow: var(--neo-shadow-sm);
    font-weight: 600;
}
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.share-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--neo-surface);
    box-shadow: var(--neo-shadow-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s;
}
.share-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 175, 240, 0.3);
}

/* Eva Sidebar Card (article page) */
.eva-spotlight-card {
    background: var(--neo-surface);
    border-radius: var(--neo-radius);
    box-shadow: none;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(0, 175, 240, 0.15);
    margin-bottom: 30px;
    position: sticky;
    top: 90px;
}
.eva-card-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 12px auto 14px;
    display: block;
    box-shadow: 0 0 20px rgba(0, 175, 240, 0.2);
    border: 2px solid rgba(0, 175, 240, 0.25);
}
.eva-spotlight-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.eva-spotlight-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 14px;
}
.eva-spotlight-card .btn {
    width: 100%;
}

/* Related articles */
.sidebar-related {
    background: var(--neo-surface);
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow);
    padding: 22px;
}
.sidebar-related h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.related-item {
    display: block;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: opacity 0.2s;
}
.related-item:last-child {
    border-bottom: none;
}
.related-item:hover {
    opacity: 0.75;
}
.related-cat {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.related-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .blog-hero {
        padding: 90px 0 30px;
    }
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-card-img {
        height: 140px;
    }

    .eva-spotlight-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .eva-spotlight-img {
        width: 100px;
        height: 100px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .article-page .container {
        padding: 0 16px;
        box-sizing: border-box;
        width: 100%;
    }
    .article-main,
    .article-content {
        min-width: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .article-header h1 {
        font-size: 1.5rem;
    }
    .article-sidebar {
        order: -1;
    }
    .eva-spotlight-card {
        position: static;
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px;
    }
    .eva-card-img {
        width: 70px;
        height: 70px;
        margin: 0;
        flex-shrink: 0;
    }
    .eva-spotlight-card .btn {
        width: auto;
    }
    .eva-spotlight-card p {
        display: none;
    }
    .sidebar-related {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.5rem;
    }
    .blog-filters {
        gap: 6px;
    }
    .blog-filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}
