/* =====================================================================
   ZIQSY CMS — PAGE HEADER BAND
   ---------------------------------------------------------------------
   Styles for the reusable @include('partials.page-header') component:
   eyebrow + title (+ optional icon) + subtitle, a breadcrumb slot, and a
   right-aligned actions slot. Purely additive + presentational.

     • Tokens only (--zq-*), each with a literal fallback.
     • Full-width WITHIN the content column (the sidebar offset is applied
       to .container-fluid by sidebar.css, so we add NO left margin here).
     • Never touches .dash2, .sidebar/.app-sidebar, .navbar/.top-header.
   ===================================================================== */

.zq-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    width: 100%;
    margin: .25rem 0 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--zq-border, #e2e8f0);
}

/* Left block: breadcrumb → eyebrow → title → subtitle */
.zq-page-header__main {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;            /* allow text to truncate, not overflow */
    flex: 1 1 22rem;
}

/* Breadcrumb slot ------------------------------------------------------ */
.zq-page-header__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .15rem;
    padding: 0;
    list-style: none;
    font-size: var(--zq-fs-xs, .75rem);
    color: var(--zq-text-muted, #64748b);
}
.zq-page-header__breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.zq-page-header__breadcrumb li:not(:last-child)::after {
    content: "/";
    color: var(--zq-slate-300, #cbd5e1);
}
.zq-page-header__breadcrumb a {
    color: var(--zq-text-muted, #64748b);
    text-decoration: none;
    transition: color var(--zq-dur, 180ms) var(--zq-ease, ease);
}
.zq-page-header__breadcrumb a:hover { color: var(--zq-brand-600, #008fc7); }
.zq-page-header__breadcrumb li[aria-current="page"] { color: var(--zq-slate-700, #334155); font-weight: 600; }

/* Eyebrow -------------------------------------------------------------- */
.zq-page-header__eyebrow {
    font-family: var(--zq-font-sans, 'Inter', sans-serif);
    font-size: var(--zq-fs-xs, .75rem);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--zq-brand-600, #008fc7);
}

/* Title (+ optional icon) --------------------------------------------- */
.zq-page-header__title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    font-family: var(--zq-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--zq-slate-900, #0f172a);
}
.zq-page-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--zq-radius-sm, .5rem);
    font-size: 1.15rem;
    color: var(--zq-brand-600, #008fc7);
    background: var(--zq-brand-50, #e6f7fd);
}

/* Subtitle ------------------------------------------------------------- */
.zq-page-header__subtitle {
    margin: .1rem 0 0;
    max-width: 64ch;
    font-size: var(--zq-fs-md, .9375rem);
    line-height: var(--zq-lh, 1.55);
    color: var(--zq-text-muted, #64748b);
}

/* Right block: action buttons ----------------------------------------- */
.zq-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}
.zq-page-header__actions .btn { min-height: 2.5rem; }

/* Responsive: stack actions full-width under the title on small screens */
@media (max-width: 575.98px) {
    .zq-page-header { align-items: stretch; }
    .zq-page-header__actions { width: 100%; }
    .zq-page-header__actions > .btn { flex: 1 1 auto; }
}

/* Dark mode ------------------------------------------------------------ */
[data-bs-theme="dark"] .zq-page-header { border-bottom-color: var(--zq-border, #2c3a4d); }
[data-bs-theme="dark"] .zq-page-header__icon {
    background: color-mix(in srgb, var(--zq-brand-500, #00aeef) 18%, transparent);
    color: var(--zq-brand-300, #54cdf2);
}
