/* ── Sidebar layout ───────────────────────────────────── */
#search-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

#section1 {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
}

#section2 {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* ── Sidebar filter groups ────────────────────────────── */
.search-filter-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
    display: block;
}

.search-filter-group {
    display: flex;
    flex-direction: column;
}

#section1 .dropdown {
    width: 100%;
}

#search-text-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    font-family: "Open Sans", sans-serif;
    padding: 8px 10px;
    border: 2px solid #000;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #000;
}

/* ── Search type tabs ─────────────────────────────────── */
#search-type-tabs {
    display: flex;
    margin-bottom: 20px;
}

.search-tab {
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    background: white;
    border: 2px solid #000;
    border-right: none;
    padding: 7px 18px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.search-tab:last-child {
    border-right: 2px solid #000;
}

.search-tab.is-active {
    background: var(--backgroundColor);
    color: var(--textColor);
}

/* ── Filter grid ──────────────────────────────────────── */
.search-filter-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
    display: block;
}

.search-filter-group {
    display: flex;
    flex-direction: column;
}

#search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 20;
}

#search-filters .dropdown {
    width: 100%;
}

/* ── Option rows ──────────────────────────────────────── */
.platform-option,
.content-option,
.type-option,
.follower-option,
.gender-option,
.location-option,
.age-option,
.format-option,
.searchfor-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.1s;
}

.platform-option:last-child,
.content-option:last-child,
.type-option:last-child,
.follower-option:last-child,
.gender-option:last-child,
.location-option:last-child,
.age-option:last-child,
.format-option:last-child,
.searchfor-option:last-child {
    border-bottom: none;
}

.platform-option:hover,
.content-option:hover,
.type-option:hover,
.follower-option:hover,
.gender-option:hover,
.location-option:hover,
.age-option:hover,
.format-option:hover,
.searchfor-option:hover {
    background: #f3f6fb;
}

/* ── Checkboxes ───────────────────────────────────────── */
.checkbox {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 2px solid var(--backgroundColor);
    background: white;
    cursor: pointer;
    transition: background 0.1s;
}

/* ── Result cards — Creator / Company ─────────────────── */
/* ── Creator / Company cards ──────────────────────────── */
.search-card {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 120px;
    border: 3px solid black;
    box-shadow: 4px 4px 0px 0px black;
    background: white;
    cursor: pointer;
    overflow: visible;
    transition: box-shadow 0.1s, transform 0.1s;
}

.search-card:hover {
    box-shadow: 6px 6px 0px 0px black;
    transform: translate(-1px, -1px);
}

.search-card:active {
    box-shadow: 0px 0px 0px 0px black;
    transform: translate(4px, 4px);
    transition: box-shadow 0s, transform 0s;
}

.search-card-avatar-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.search-card-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2.5px solid black;
    object-fit: cover;
    object-position: center top;
    display: block;
    flex-shrink: 0;
}

.search-card-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
}

.search-card-name-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.search-card-name-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: visible;
}

.search-card-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.search-card-followers {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-card-icons {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    overflow: visible;
}

.search-card-icons svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-card-desc {
    flex: 2;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #555;
    padding-bottom: 54px;
    overflow: hidden;
    border-left: 2px solid #e8e8e8;
}

.search-card-message-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px;
    background: white;
    color: var(--backgroundColor);
    border: 2px solid var(--backgroundColor);
    box-shadow: 3px 3px 0px 0px var(--backgroundColor);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.search-card-message-btn:hover {
    background: var(--backgroundColor);
    color: var(--textColor);
}

.icon-overflow-more {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}

.icon-overflow-popup {
    display: flex !important;
    flex-direction: row;
    gap: 6px;
    padding: 6px 10px !important;
    align-items: center;
}

.icon-overflow-popup svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Orbit cards ──────────────────────────────────────── */
.orbit-search-card {
    border: 3px solid black;
    box-shadow: 4px 4px 0px 0px black;
    background: white;
    padding: 14px 18px;
    cursor: pointer;
    height: 120px;
    overflow: hidden;
    transition: box-shadow 0.1s, transform 0.1s;
}

.orbit-search-card.expanded {
    height: auto;
    overflow: visible;
}

.orbit-search-card:hover {
    box-shadow: 6px 6px 0px 0px black;
    transform: translate(-1px, -1px);
}

.orbit-search-card:active {
    box-shadow: 0px 0px 0px 0px black;
    transform: translate(4px, 4px);
    transition: box-shadow 0s, transform 0s;
}

.orbit-search-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.orbit-search-card-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.orbit-search-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.orbit-search-card-company {
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 4px 0 0;
}


.orbit-search-card-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border: 2px solid var(--backgroundColor);
    color: var(--backgroundColor);
    white-space: nowrap;
    flex-shrink: 0;
}

.orbit-search-card-description {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.orbit-search-card.expanded .orbit-search-card-description {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    margin-bottom: 14px;
}

.orbit-search-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.orbit-search-card-detail {
    border-top: 2px solid #000;
    padding: 12px 14px;
}

.osc-expand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.osc-expand-row:last-child { border-bottom: none; }

.osc-expand-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    min-width: 90px;
    flex-shrink: 0;
}

.osc-expand-value {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.osc-expand-value svg {
    width: 20px;
    height: 20px;
}

.orbit-search-card-tag-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.orbit-search-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.orbit-search-card-tags svg {
    width: 22px;
    height: 22px;
}

.orbit-tag {
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid #ccc;
    color: #444;
}

.orbit-apply-btn {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px;
    background: white;
    color: var(--backgroundColor);
    border: 2px solid var(--backgroundColor);
    cursor: pointer;
    box-shadow: 3px 3px 0px 0px var(--backgroundColor);
    transition: background 0.1s, color 0.1s;
}

.orbit-apply-btn:hover {
    background: var(--backgroundColor);
    color: var(--textColor);
}

.orbit-apply-btn:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* ── Search-for dropdown option active state (search page sidebar only) ──────────── */
#section1 .searchfor-option::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 2px solid var(--backgroundColor);
    background: white;
    display: inline-block;
    box-sizing: border-box;
    transition: background 0.1s;
}

#section1 .searchfor-option.is-active::before {
    background: #000;
}

.searchfor-option.is-active {
    background: inherit;
    color: inherit;
    font-weight: inherit;
}

/* ── Empty state ──────────────────────────────────────── */
.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
    border: 3px dashed #ccc;
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 768px) {
    #search-body {
        flex-direction: column;
        align-items: stretch; /* base rule is align-items:flex-start, which shrinks #section2 to its content width once stacked */
    }

    #section1 {
        width: 100%;
        gap: 8px;
    }

    #section2 {
        margin-top: 0;
    }

    /* Filter option rows */
    .platform-option,
    .content-option,
    .type-option,
    .follower-option,
    .gender-option,
    .location-option,
    .age-option,
    .format-option,
    .searchfor-option {
        padding: 14px 12px;
        font-size: 15px;
        min-height: 44px;
    }

    /* Result cards — mobile: hide description column, bigger touch target, small side margin
       so they don't run edge-to-edge against the screen */
    .search-card {
        height: 116px;
        margin: 0 5px;
    }

    .search-card-avatar {
        width: 80px;
        height: 80px;
    }

    .search-card-desc {
        display: none;
    }

    .search-card-name {
        font-size: 17px;
    }

    .search-card-followers {
        font-size: 12px;
    }

    .search-card-icons svg {
        width: 22px;
        height: 22px;
    }

    /* Orbit cards */
    .orbit-search-card {
        padding: 12px 14px;
        height: 110px;
    }

    .orbit-search-card-header {
        flex-direction: row;
    }

    .orbit-search-card-title {
        font-size: 15px;
    }

    .orbit-apply-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ── Loading / empty states ──────────────────────────── */
.search-state-msg {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    padding: 24px 0;
    margin: 0;
    text-align: center;
}

.search-empty-card {
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    background: #fff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-empty-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    margin: 0;
}

.search-empty-sub {
    font-size: 11px;
    letter-spacing: 1px;
    color: #888;
    margin: 0;
    text-transform: uppercase;
}

.search-load-more {
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    background: #fff;
    cursor: pointer;
    margin-top: 4px;
    transition: transform 0.1s, box-shadow 0.1s;
}

.search-load-more:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
}

.orbit-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.orbit-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
}

.orbit-page-btn:hover:not(:disabled) {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
}

.orbit-page-btn.active {
    background: #000;
    color: #fff;
}

.orbit-page-btn:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: 3px 3px 0 #000;
}

.orbit-page-ellipsis {
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    line-height: 36px;
}

