/* ─────────────────────────────────────────────
   Knowledge Base Container
   File: kb-frontend.css
   ───────────────────────────────────────────── */

body.post-type-archive-ll_knowledge_base {
    background: #f5f7fa !important; /* light gray */
}

#ll-kb-app {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 24px rgba(0,0,0,0.08);
}

/* ─────────────────────────────────────────────
   Header (optional)
   ───────────────────────────────────────────── */

.ll-kb-header {
    text-align: center;
    margin-bottom: 30px;
}

.ll-kb-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #222;
}

.ll-kb-subtitle {
    font-size: 16px;
    color: #666;
}

/* ─────────────────────────────────────────────
   Search Bar
   ───────────────────────────────────────────── */

.ll-kb-search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#ll-kb-search-input {
    width: 100%;
    max-width: 600px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* ─────────────────────────────────────────────
   Filters
   ───────────────────────────────────────────── */

.ll-kb-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.ll-kb-filters select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
}

/* ─────────────────────────────────────────────
   Results List
   ───────────────────────────────────────────── */

.kb-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kb-item {
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e6ea;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kb-item:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.kb-item h2 {
    margin: 0 0 8px 0;
}

.kb-item h2 a {
    color: #0057d8;
    text-decoration: none;
    font-size: 20px;
}

.kb-item h2 a:hover {
    text-decoration: underline;
}

.kb-item p {
    color: #444;
    margin: 0;
}

/* ─────────────────────────────────────────────
   Pagination
   ───────────────────────────────────────────── */

#ll-kb-pagination {
    margin-top: 25px;
    text-align: center;
}

#ll-kb-pagination button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: #0057d8;
    color: white;
    cursor: pointer;
    margin: 0 6px;
    font-size: 14px;
}

#ll-kb-pagination button[disabled] {
    background: #ccc;
    cursor: default;
}

#ll-kb-pagination span {
    margin: 0 10px;
    font-weight: 600;
}
