/* =====================================================================
   QUICKNEWSHUB — Styles for dynamically generated elements
   ---------------------------------------------------------------------
   The original template had no markup for tag pills, author boxes,
   sub-category chips or the search button, so these classes had no CSS.
   Kept in a separate file so style.css stays exactly as authored.
   Loaded after style.css in header.php.
   ================================================================== */

/* ---- Header search submit button ---------------------------------- */
.hdr-search { position: relative; }

.hdr-search-btn {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    align-items: center;
}
.hdr-search-btn:hover { color: #4f46e5; }

/* ---- Sub-category chips on a category archive --------------------- */
.page-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1rem;
}
.page-subnav .pill { text-decoration: none; }
.page-subnav .pill:hover { filter: brightness(.94); }

/* ---- Article tag list --------------------------------------------- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: 1.6rem 0 .4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e6e8ec;
}
.article-tags-label {
    font-size: .82rem;
    font-weight: 700;
    color: #6b7280;
    margin-right: .2rem;
}
.tag-pill {
    display: inline-block;
    padding: .22rem .68rem;
    border: 1px solid #dfe3ea;
    border-radius: 30px;
    background: #f7f8fa;
    color: #374151;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tag-pill:hover {
    background: #eef2ff;
    border-color: #c7d0fb;
    color: #4f46e5;
    text-decoration: none;
}

/* ---- Featured image caption --------------------------------------- */
.article-img-caption {
    margin: .5rem 0 1.4rem;
    font-size: .82rem;
    line-height: 1.5;
    color: #6b7280;
    font-style: italic;
    padding-left: .7rem;
    border-left: 3px solid #e6e8ec;
}

/* ---- Author box ---------------------------------------------------- */
.author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1.8rem 0;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    background: #fafbfc;
}
.author-box-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e6e8ec;
    flex: 0 0 auto;
}
.author-box-name {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: .15rem;
}
.author-box-name a { color: #14171f; text-decoration: none; }
.author-box-name a:hover { color: #4f46e5; }
.author-box-bio {
    margin: 0;
    font-size: .88rem;
    line-height: 1.6;
    color: #5f6675;
}

/* ---- Pagination wrapper (Bootstrap styles the inner list) --------- */
.qnh-pagination {
    margin: 2rem 0 .5rem;
    display: flex;
    justify-content: center;
}
.qnh-pagination .pagination { margin-bottom: 0; flex-wrap: wrap; gap: .25rem; }
.qnh-pagination .page-link {
    border-radius: 6px;
    border-color: #e6e8ec;
    color: #374151;
    font-weight: 600;
    min-width: 38px;
    text-align: center;
}
.qnh-pagination .page-item.active .page-link {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
.qnh-pagination .page-link:hover { background: #eef2ff; color: #4f46e5; }
.qnh-pagination .page-item.disabled .page-link { color: #b6bcc7; background: #f7f8fa; }

/* ---- 404 page ------------------------------------------------------ */
.error-page-area { padding: 4rem 0 3.5rem; }
.error-content .title {
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: #4f46e5;
    margin: .3rem 0 .8rem;
}
.error-content h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #14171f;
    margin-bottom: .2rem;
}
.error-content p {
    color: #5f6675;
    max-width: 520px;
    margin: 0 auto 1.4rem;
}
.error-content .btn-one {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 1.5rem;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.error-content .btn-one:hover { background: #4338ca; color: #fff; }

/* ---- Flash messages sit clear of the nav -------------------------- */
.site-nav + .container > .alert { margin-top: 1rem; }

/* ---- Source attribution on rewritten articles ---------------------- */
.article-source {
    margin: 1.4rem 0 0;
    padding: .6rem .9rem;
    border-left: 3px solid #e6e8ec;
    background: #fafbfc;
    border-radius: 0 4px 4px 0;
    font-size: .84rem;
    color: #6b7280;
}
.article-source a { color: #4f46e5; }
