/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.4);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.25) transparent;
}


/* Hover shadow for interactive cards */
.has-hover-shadow:hover {
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
	transition: box-shadow 0.2s ease;
}

/* Font smoothing */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Balanced text wrapping for headings */
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

/* Grayscale image style — full grayscale, reveals on hover */
.is-style-grayscale img {
	filter: grayscale(100%);
	opacity: 0.6;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.is-style-grayscale:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

/* Focus styles */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
ul.wp-block-categories-list{
    list-style: none;
    margin-left: 0;
} 
ul.wp-block-categories-list li {
    padding: 10px;
}
ul.wp-block-categories-list li.current-cat {
    background-color: var(--wp--preset--color--primary);
    border-radius: 7px;
}

ul.wp-block-categories-list li.current-cat a {
    color: var(--wp--preset--color--base);
}
a:where(:not(.wp-element-button)){
    text-decoration: none !important;
}

/* ========================================
   Integration Sidebar – Scrollable Category List
   ======================================== */

/* Make the category list scrollable with a fixed max-height */
.bb-integration-sidebar {
    max-height: 730px;       /* shows ~10 items before scrolling */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;      /* room for the scrollbar */
    scroll-behavior: smooth;
}

/* ── Scrollbar track (the groove) ── */
.bb-integration-sidebar::-webkit-scrollbar {
    width: 4px;
}

.bb-integration-sidebar::-webkit-scrollbar-track {
    background: var(--wp--preset--color--primary);
    border-radius: 100px;
}

/* ── Scrollbar thumb (the draggable handle) ── */
.bb-integration-sidebar::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--primary);     /* BuddyBoss orange */
    border-radius: 100px;
    min-height: 40px;
}

.bb-integration-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--wp--preset--color--primary);     /* slightly darker on hover */
}

/* Firefox scrollbar */
.bb-integration-sidebar {
    scrollbar-width: thin;
}


/* ========================================
   Integrations – Pagination
   ======================================== */

/* ── Wrapper nav ── */
.wp-block-query-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* ── Numbers group: lay items out in a row ── */
.wp-block-query-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Base style shared by ALL page number items ── */
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

/* ── Inactive page numbers ── */
.wp-block-query-pagination-numbers a.page-numbers {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--text-secondary);
}

.wp-block-query-pagination-numbers a.page-numbers:hover {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}

/* ── Active / current page ── */
.wp-block-query-pagination-numbers .page-numbers.current {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    font-weight: 600;
    pointer-events: none;
}

/* ── Dots separator ( … ) — no circle ── */
.wp-block-query-pagination-numbers .page-numbers.dots {
    background-color: transparent;
    color: var(--wp--preset--color--text-secondary);;
    width: auto;
    min-width: 50px;
    cursor: default;
    pointer-events: none;
}
