/* Portfolio by Daddy — white category rows, black text, arrows (theme-safe) */

.pbd-wrapper.pbd-root {
    width: 100%;
}

.pbd-layout {
    --pbd-sidebar-width: 28%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.pbd-sidebar {
    flex: 0 0 var(--pbd-sidebar-width);
    max-width: 100%;
}

.pbd-main {
    flex: 1 1 0;
    min-width: 0;
}

.pbd-sidebar-inner {
    position: sticky;
    top: 1.5rem;
    padding: 1.1rem;
    border-radius: 10px;
    background: #ffffff !important;
    color: #111111;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pbd-sidebar-title {
    margin: 0 0 0.85rem;
    padding: 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111111 !important;
    letter-spacing: 0.02em;
}

.pbd-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pbd-cat-list-main {
    margin: 0;
}

/* Each parent = white row, light border */
.pbd-parent-wrap {
    margin: 0 0 0.5rem;
    padding: 0;
    background: #ffffff !important;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pbd-parent-wrap:last-child {
    margin-bottom: 0;
}

.pbd-extra-list .pbd-parent-wrap {
    margin-bottom: 0.5rem;
}

.pbd-extra-list .pbd-parent-wrap:last-child {
    margin-bottom: 0;
}

/* All category buttons: white / black (override dark theme buttons) */
.pbd-wrapper.pbd-root .pbd-sidebar-inner button.pbd-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.85rem;
    margin: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.35;
    background-color: #ffffff !important;
    color: #111111 !important;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.pbd-cat-label {
    flex: 1;
    min-width: 0;
    padding-right: 0.65rem;
}

/* Chevron on the right — black */
.pbd-cat-arrow {
    flex-shrink: 0;
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #111111;
    border-bottom: 2px solid #111111;
    transform: rotate(-45deg);
    margin-top: -0.12rem;
    transition: transform 0.25s ease;
    opacity: 1;
}

.pbd-parent-wrap.pbd-is-open > .pbd-cat-parent .pbd-cat-arrow {
    transform: rotate(45deg);
    margin-top: 0.08rem;
}

.pbd-wrapper.pbd-root .pbd-sidebar-inner button.pbd-cat-item:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
}

.pbd-wrapper.pbd-root .pbd-sidebar-inner button.pbd-cat-item:hover .pbd-cat-arrow {
    border-color: #000000;
}

.pbd-wrapper.pbd-root .pbd-sidebar-inner button.pbd-cat-item.active {
    font-weight: 600;
    background-color: #ececec !important;
    color: #000000 !important;
}

.pbd-wrapper.pbd-root .pbd-sidebar-inner button.pbd-cat-item.active .pbd-cat-arrow {
    border-color: #000000;
}

.pbd-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    border-top: 1px solid #eeeeee;
}

.pbd-subitem .pbd-cat-item {
    border-radius: 0;
}

.pbd-subitem.pbd-depth-1 .pbd-cat-child {
    padding-left: 1.5rem;
}

.pbd-subitem.pbd-depth-2 .pbd-cat-child {
    padding-left: 2rem;
}

.pbd-subitem.pbd-depth-3 .pbd-cat-child {
    padding-left: 2.5rem;
}

.pbd-subitem.pbd-depth-4 .pbd-cat-child,
.pbd-subitem.pbd-depth-5 .pbd-cat-child {
    padding-left: 3rem;
}

.pbd-extra-list {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e5e5e5;
}

.pbd-extra-item {
    margin: 0;
    padding: 0;
}

.pbd-main-inner .pbd-grid-inner {
    margin-left: -15px;
    margin-right: -15px;
}

.pbd-loading {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #333333;
}

.pbd-empty {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #333333;
}

@media (max-width: 1024px) {
    .pbd-layout {
        flex-direction: column;
        align-items: center;
    }

    .pbd-sidebar {
        flex: 0 1 auto;
        width: 100%;
        max-width: min(100%, 22rem);
        margin-left: auto;
        margin-right: auto;
    }

    .pbd-main {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
    }

    .pbd-sidebar-inner {
        position: relative;
        top: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Phones: full-width column, category card centered inside it */
@media (max-width: 576px) {
    .pbd-sidebar {
        max-width: 100%;
        width: 100%;
    }

    .pbd-sidebar-inner {
        max-width: 20.5rem;
        margin-left: auto;
        margin-right: auto;
    }
}
