/* ==========================================================================
   MODULE: SEARCH ENGINE STYLES (search.css)
   - Matches 54px header height with img/back.png
   - NO HOVER OR FOCUS BORDER
   - Two option tabs: All and Admin Channels
   - 4-Column circular profile grid
   ========================================================================== */

#ksPanel_search {
    background-color: var(--bg-surface);
}

.ks-search-input-box {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.ks-search-input {
    width: 100%;
    height: 38px;
    border-radius: var(--radius-pill);
    background-color: var(--divider-line);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 36px 0 16px;
    font-size: 0.92rem;
    color: var(--text-title);
    transition: background-color 0.2s ease;
}

.ks-search-input:focus,
.ks-search-input:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.ks-search-clear-btn {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ks-search-clear-btn.visible {
    display: flex;
}

.ks-search-tabs-row {
    position: sticky;
    top: 54px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 25;
}

.ks-search-tab-btn {
    flex: 1;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    transition: color 0.2s ease;
}

.ks-search-tab-btn.active {
    color: var(--text-title);
}

.ks-search-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2.5px;
    background-color: var(--primary-blue);
    border-radius: 2px 2px 0 0;
}

.ks-search-content-workspace {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 18px 16px 60px 16px;
    display: flex;
    flex-direction: column;
}

.ks-search-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 10px;
    width: 100%;
}

.ks-search-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
}

.ks-search-profile-avatar-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-surface-hover);
    flex-shrink: 0;
}

.ks-search-profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ks-search-profile-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-title);
    width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.ks-search-posts-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 24px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}