   /*인플루언서 리스트 정렬 및 검색 영역 구조 스타일 (인라인 스타일 제거)
   ========================================================================== */
.influencer-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px; /* 기존 30px에서 40px로 간격 확대 */
    flex-wrap: nowrap; /* 데스크톱에서는 1줄로 고정 */
    gap: 15px;
    padding: 0 10px;
}

.influencer-sort-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.influencer-sort-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--text-color-secondary);
    border: 1px solid var(--main-item-border-color);
}

.influencer-sort-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.influencer-sort-btn.active {
    font-weight: 800;
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.influencer-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.influencer-search-input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.influencer-search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    border-radius: 24px;
    border: 1px solid var(--main-item-border-color);
    background: var(--white);
    color: var(--text-color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.influencer-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.influencer-search-icon {
    position: absolute;
    right: 15px;
    color: var(--text-color-secondary);
    pointer-events: none;
    font-size: 0.95rem;
}

.influencer-search-submit-btn {
    padding: 0 20px;
    font-size: 0.88rem;
    font-weight: 800;
    border: none;
    border-radius: 24px;
    color: var(--white);
    background: var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.influencer-search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   인플루언서 리스트 페이징 영역 스타일 (인라인 스타일 제거)
   ========================================================================== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--main-item-border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color-primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-item.active .page-link {
    border-color: var(--point-color-blue);
    background-color: var(--point-color-blue);
    color: var(--white);
    font-weight: 800;
}

.page-link:hover:not(.active) {
    border-color: var(--point-color-blue);
    color: var(--point-color-blue);
}

.is-hidden {
    display: none;
}

.is-displayed-block {
    display: block;
}

.autocomplete-results-layer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border: 1.5px solid rgba(55, 65, 81, 0.45);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 6px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.autocomplete-results-layer.is-displayed-block {
    display: block;
}

/* 숨김 상태 및 내용 없는 경우 명시도로 테두리/그림자 잔상 완벽 제거 (!important 미사용) */
.autocomplete-results-layer.is-hidden,
.autocomplete-results-layer:empty {
    display: none;
    border: none;
    box-shadow: none;
}

/* 자동완성 아이템 스타일 */
.autocomplete-item {
    padding: 10px var(--spacing-sm);
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color-soft);
    transition: background-color 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:hover {
    background-color: #f1f5f9;
}

.autocomplete-item:hover .autocomplete-item-handle {
    color: var(--point-color-blue);
}

.autocomplete-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.autocomplete-item-handle {
    color: var(--point-color-navy);
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.autocomplete-item-platform {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3C/svg%3E");
}

.autocomplete-item-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-color-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* 플랫폼 브랜드 백그라운드 칼라 및 SVG 아이콘 정의 (JS 인라인 렌더링 축소) */
.autocomplete-item-platform.is-instagram {
    background-color: #e1306c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}
.autocomplete-item-platform.is-youtube {
    background-color: #ff0000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z'/%3E%3Cpolygon points='9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02' fill='white'/%3E%3C/svg%3E");
}
.autocomplete-item-platform.is-blog,
.autocomplete-item-platform.is-cafe {
    background-color: #03c75a;
}
.autocomplete-item-platform.is-facebook {
    background-color: #1877f2;
}
.autocomplete-item-platform.is-tiktok {
    background-color: #000000;
}

#infinite-scroll-sentinel {
    height: 20px;
    width: 100%;
    clear: both;
}

@media (max-width: 768px) {
    .influencer-controls-bar {
        flex-wrap: wrap; /* 모바일에서는 여러 줄로 줄바꿈 허용 */
        flex-direction: column; /* 세로 배치 */
        align-items: stretch; /* 전체 너비 차지 */
        gap: 20px;
    }
    
    .influencer-sort-tabs {
        justify-content: center; /* 탭 버튼 가운데 정렬 */
    }
    
    .influencer-search-form {
        max-width: 100%; /* 모바일에서 꽉 차게 */
    }
}

/* ===================================
   데이터가 없을 때 표시하는 빈 상태 (Empty State)
   =================================== */
.empty-state-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-base);
    text-align: center;
    border-radius: 12px;
    min-height: 280px;
    width: 100%;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    color: var(--text-color-secondary);
    margin-bottom: var(--spacing-sm);
    opacity: 0.7;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color-primary);
}

.empty-state-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-color-secondary);
}
