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

/* ---- Search Bar ---- */
.blog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search-wrap:focus-within {
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.blog-search-icon {
    position: absolute;
    left: 14px;
    color: rgba(255,255,255,0.3);
    pointer-events: none;
    flex-shrink: 0;
}
.blog-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 14px 10px 40px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    min-width: 0;
}
.blog-search-input::placeholder { color: rgba(255,255,255,0.3); }
.blog-search-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.blog-search-btn:hover { opacity: 0.85; }

/* ---- Category Filter Pills ---- */
.blog-cat-pill {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #fff !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.12);
}
.blog-cat-pill:hover,
.blog-cat-pill:focus,
.blog-cat-pill:active {
    color: #fff !important;
    background: transparent !important;
    border-color: rgba(255,255,255,0.12) !important;
}
.blog-cat-pill--active,
.blog-cat-pill--active:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    border-color: #8b5cf6 !important;
}

/* ---- Blog Post Cards ---- */
.blog-post-card > a:first-child { display: block; overflow: hidden; }
.blog-post-card > a:first-child img { transition: transform 0.6s ease; }
.blog-post-card > a:first-child:hover img { transform: scale(1.06); }
.blog-post-card h3 a,
.blog-post-card h3 a:hover { color: #1e293b !important; text-decoration: none !important; }
.blog-post-card a[style*="8b5cf6"],
.blog-post-card a[style*="8b5cf6"]:hover { color: #8b5cf6 !important; text-decoration: none !important; }
.blog-post-card a[style*="f1f5f9"],
.blog-post-card a[style*="f1f5f9"]:hover { background: #f1f5f9 !important; color: #64748b !important; text-decoration: none !important; }

/* ---- Featured Cards ---- */
.featured-hero-card:hover img { transform: scale(1.05); }
.featured-side-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important; }
.featured-side-card:hover img { transform: scale(1.05); }

/* ---- Pagination ---- */
.page-link { border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); background: transparent; padding: 8px 16px; }
.page-link:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.15); }
.page-item.active .page-link { background: linear-gradient(135deg, #8b5cf6, #7c3aed); border-color: #8b5cf6; color: #fff; }

/* ---- Blog Article Content (detail page) ---- */
.blog-article-content h1, .blog-article-content h2, .blog-article-content h3,
.blog-article-content h4, .blog-article-content h5, .blog-article-content h6 {
    color: #fff;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.blog-article-content h2 { font-size: 28px; }
.blog-article-content h3 { font-size: 22px; }
.blog-article-content p { margin-bottom: 1.2em; }
.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}
.blog-article-content a,
.blog-article-content a:hover { color: #c4b5fd !important; text-decoration: underline !important; }
.blog-article-content ul, .blog-article-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.blog-article-content li { margin-bottom: 0.5em; }
.blog-article-content blockquote {
    border-left: 4px solid #8b5cf6;
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(139,92,246,0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255,255,255,0.6);
}
.blog-article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}
.blog-article-content code {
    background: rgba(139,92,246,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #c4b5fd;
}
.blog-article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.blog-article-content th, .blog-article-content td {
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
    text-align: left;
}
.blog-article-content th {
    background: rgba(255,255,255,0.04);
    font-weight: 600;
    color: #fff;
}

/* ---- Detail Page: Category Badge ---- */
a.blog-detail-cat,
a.blog-detail-cat:hover,
a.blog-detail-cat:focus,
a.blog-detail-cat:active,
a.blog-detail-cat:visited { color: #c4b5fd !important; background: rgba(139,92,246,0.12) !important; text-decoration: none !important; }

/* ---- Detail Page: Tag Pills ---- */
a.blog-detail-tag,
a.blog-detail-tag:hover,
a.blog-detail-tag:focus,
a.blog-detail-tag:active,
a.blog-detail-tag:visited {
    background: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none !important;
}

/* ---- View All Articles Button ---- */
a.blog-view-all-btn,
a.blog-view-all-btn:hover,
a.blog-view-all-btn:focus,
a.blog-view-all-btn:active,
a.blog-view-all-btn:visited {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    border: 1px solid rgba(139,92,246,0.4) !important;
    background: transparent !important;
    color: #c4b5fd !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: 0.3px;
}
