
/* GATZ Knowledge Base + Guide Pages
   Load after /dashboard/css/style.css.
*/

.guide-main {
    flex: 1 0 auto;
    padding: 2.5rem 0 3rem;
}

.kb-shell,
.guide-page-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.kb-hero,
.guide-article .hero,
.guide-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 12, 24, 0.78);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    border-radius: 1.4rem;
    backdrop-filter: blur(10px);
}

.kb-hero {
    padding: clamp(1.4rem, 4vw, 2.5rem);
    text-align: center;
}

.kb-eyebrow {
    margin: 0 0 0.4rem;
    color: #37a3ca;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kb-hero h1,
.guide-article h1 {
    margin: 0;
    color: #37a3ca;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.kb-hero p,
.guide-article .hero p {
    max-width: 780px;
    margin: 0.75rem auto 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.kb-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 1rem 1.5rem;
    align-items: end;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 1.1rem;
}

.kb-search-wrap,
.kb-filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.kb-search-wrap label,
.kb-filter-wrap span,
.guide-article label {
    color: #fff;
    font-weight: 800;
}

.kb-search-wrap input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    outline: none;
}

.kb-search-wrap input:focus {
    border-color: #37a3ca;
    box-shadow: 0 0 0 0.2rem rgba(55, 163, 202, 0.25);
}

.kb-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kb-filter-btn,
.kb-clear-search {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    padding: 0.55rem 0.9rem;
}

.kb-filter-btn:hover,
.kb-filter-btn.is-active,
.kb-clear-search:hover {
    border-color: #37a3ca;
    background: rgba(55, 163, 202, 0.28);
}

.kb-control-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.78);
}

.kb-clear-search[hidden] {
    display: none;
}

.kb-section {
    margin-top: 1.5rem;
}

.kb-section-head {
    margin-bottom: 0.85rem;
}

.kb-section-head h2,
.guide-article h2,
.guide-title-color,
.lp-tittle-color {
    color: #37a3ca;
}

.kb-section-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.kb-section-head p {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.78);
}

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

.kb-grid:empty {
    display: none;
}

.kb-guide-card,
.guide-subcard,
.dm-subpanel {
    border: 1px solid rgba(55, 163, 202, 0.45);
    background: rgba(0, 0, 0, 0.24);
    border-radius: 1rem;
}

.kb-guide-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.kb-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.kb-guide-type,
.kb-game-badge,
.kb-tag,
.chip,
.badge-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.35rem 0.6rem;
}

.kb-guide-type,
.kb-game-badge {
    color: #37a3ca;
}

.kb-guide-card h3 {
    margin: 0;
    color: #37a3ca;
    font-size: 1.2rem;
}

.kb-guide-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.45;
}

.kb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
}

.kb-snippet {
    border-left: 3px solid rgba(55, 163, 202, 0.6);
    padding-left: 0.75rem;
    font-size: 0.92rem;
}

mark {
    border-radius: 0.25rem;
    background: rgba(194, 170, 0, 0.75);
    color: #000;
    padding: 0 0.15rem;
}

.kb-no-results {
    margin-top: 1.5rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 1rem;
}

.kb-no-results h2 {
    margin: 0 0 0.5rem;
    color: #37a3ca;
}

.kb-no-results p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.guide-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.guide-breadcrumbs a,
.guide-link,
.custom-yellow,
.guide-article a {
    color: #37a3ca;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.guide-breadcrumbs a:hover,
.guide-article a:hover {
    color: #fff;
}

.guide-article {
    color: #fff;
    font-size: 1.03rem;
    line-height: 1.55;
}

.guide-article > .custom-w,
.guide-article .custom-w {
    width: 100%;
}

.guide-article .hero {
    padding: 1.4rem;
    text-align: center;
}

.guide-article .guide-card,
.guide-article .lp-showcase {
    margin-top: 1rem;
    padding: 1rem;
}

.guide-article section.guide-card,
.guide-article section.lp-showcase {
    scroll-margin-top: 1.5rem;
}

.guide-article .guide-subcard,
.guide-article .dm-subpanel {
    padding: 1rem;
    margin-bottom: 1rem;
}

.guide-article h2,
.guide-article h3,
.guide-article h4,
.guide-article h5,
.guide-article h6 {
    margin-top: 0;
    line-height: 1.2;
}

.guide-article h5,
.guide-article .h5 {
    font-size: 1.15rem;
}

.guide-article p,
.guide-article ul,
.guide-article ol {
    color: rgba(255, 255, 255, 0.88);
}

.guide-article li + li {
    margin-top: 0.25rem;
}

.guide-toc,
.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: center;
}

.guide-toc strong,
.toc strong {
    flex-basis: 100%;
}

.guide-toc a,
.toc a {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0.35rem 0.65rem;
    text-decoration: none;
}

.guide-toc a:hover,
.toc a:hover {
    border-color: #37a3ca;
    background: rgba(55, 163, 202, 0.2);
}

.guide-image,
.custom-img,
.custom-img-sub,
.img-fluid {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.custom-img-sub {
    max-height: 360px;
    object-fit: contain;
}

.figure-sm { max-width: 420px; }
.figure-md { max-width: 720px; }

.guide-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.24);
    border-radius: 1rem;
}

/* Minimal utility support for converted old guide content */
.text-light { color: #fff !important; }
.text-danger { color: #ff6b6b !important; }
.text-warning { color: #c2aa00 !important; }
.text-success { color: #37d67a !important; }
.text-primary { color: #37a3ca !important; }
.text-center { text-align: center !important; }
.text-break { overflow-wrap: break-word; word-break: break-word; }
.fw-bold { font-weight: 800 !important; }
.fw-semibold { font-weight: 700 !important; }
.opacity-75 { opacity: 0.75; }
.small { font-size: 0.9rem; }
.monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.align-self-center { align-self: center !important; }
.w-100 { width: 100% !important; }
.w-50 { width: 50% !important; }
.h-100 { height: 100% !important; }
.p-3 { padding: 1rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-n1 { margin-left: -0.25rem !important; }
.rounded,
.rounded-3,
.rounded-4,
.rounded-5 { border-radius: 1rem !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-top { border-top-left-radius: 1rem !important; border-top-right-radius: 1rem !important; }
.border { border: 1px solid rgba(255, 255, 255, 0.14) !important; }
.border-0 { border: 0 !important; }
.border-primary { border-color: rgba(55, 163, 202, 0.55) !important; }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.g-3 { gap: 1rem; }
.col-12 { grid-column: span 12; }
.col-md-6 { grid-column: span 6; }
.list-group,
.list-group-flush { list-style: none; padding-left: 0; margin-left: 0; }
.list-group-item { padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ref-note,
.ref-line {
    border-left: 3px solid rgba(55, 163, 202, 0.6);
    padding-left: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
}
.ref-label { color: #37a3ca; font-weight: 800; }

@media (max-width: 900px) {
    .kb-controls {
        grid-template-columns: 1fr;
    }

    .kb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .guide-main {
        padding-top: 1.25rem;
    }

    .kb-shell,
    .guide-page-shell {
        width: min(100% - 1rem, 1180px);
    }

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

    .kb-control-footer,
    .guide-bottom-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .col-md-6 { grid-column: span 12; }
}


/* Keep section headings below previous card rows */
.kb-section {
    margin-top: 3rem;
    clear: both;
}

.kb-section:first-of-type {
    margin-top: 1.5rem;
}

.kb-grid {
    margin-bottom: 3rem;
}

.kb-section-head h2 {
    margin-top: 0;
    line-height: 1.15;
}

.kb-section-head p {
    margin-bottom: 1.25rem;
}
