/* Custom CSS for Knowledge Base */

/* Category cards: center titles */
.card-title {
    text-align: center;
}

/* Style for category icons in titles */
.fa, .fa-solid, .fa-regular, .fa-brands {
    margin-bottom: 0.4em;
}
h1.title .fa {
    display: block;
    margin: 0 auto 0.5em auto;
}

.listing-title {
    font-size: 1.2em;
}

/* --------------- Simple navigation bar --------------- */
.breadcrumb-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5em;
    padding: 0.75em 1em;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.nav-home-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.nav-home-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.nav-back-button {
    background: none;
    border: none;
    color: #0d6efd;
    cursor: pointer;
    font-weight: 500;
    font-size: 1em;
    padding: 0;
    font-family: inherit;
}

.nav-back-button:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* ------------- GitHub footer links (icon only) ------------- */
.nav-footer .nav-footer-center a {
    font-size: 0 !important;
}

.nav-footer .nav-footer-center a i,
.nav-footer .nav-footer-center a .bi {
    font-size: 1.5rem !important;
}

/* ------------- Language selector dropdown ------------- */
#language-selector-trigger {
    cursor: pointer;
    user-select: none;
}

#language-dropdown {
    display: none;
    position: fixed;
    top: 60px;
    left: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    width: 320px;
    max-height: 500px;
    overflow: hidden;
}

#language-dropdown.show {
    display: block;
}

#language-search {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

#language-search:focus {
    border-bottom-color: #0066cc;
}

#language-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.language-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.15s;
}

.language-item:hover {
    background-color: #f5f5f5;
}

.language-item.active {
    background-color: #e3f2fd;
    font-weight: 600;
}

.language-flag {
    margin-right: 12px;
    font-size: 20px;
}

.language-name {
    flex: 1;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
}
