/* =============================================
   Search Influencers - Modern Redesign
   Follows the vc-* design system from view-campaign-modern.css
   ============================================= */

/* Page wrapper */
.si-page {
    background: #f0f2f5;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ---- Hero Header ---- */
.si-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 36px 0 32px;
    margin-bottom: 32px;
}

.si-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.si-hero-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: #fff !important;
}

.si-hero-title::before {
    display: none;
}

.si-hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ---- Content Container ---- */
.si-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Filter Panel ---- */
.si-filter-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.si-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.si-filter-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.si-filter-title i {
    color: #0f3460;
    font-size: 14px;
}

.si-filter-toggle {
    display: none;
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.si-filter-toggle:hover {
    background: #f0f2f5;
    border-color: #0f3460;
    color: #0f3460;
}

.si-filter-toggle i {
    margin-right: 5px;
}

.si-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 0;
}

.si-filter-group {
    display: flex;
    flex-direction: column;
}

.si-filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.si-filter-group select,
.si-filter-group input[type="text"] {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: #333;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    height: auto;
}

.si-filter-group select:focus,
.si-filter-group input[type="text"]:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
    outline: none;
    background: #fff;
}

/* Advanced filters row */
.si-filter-advanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.si-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.si-btn-search {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.si-btn-search:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
}

.si-btn-search i {
    font-size: 14px;
}

.si-btn-reset {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.si-btn-reset:hover {
    background: #f0f2f5;
    border-color: #adb5bd;
}

/* ---- Results Section ---- */
.si-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.si-results-count {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.si-results-count strong {
    color: #1a1a2e;
}

/* ---- View Toggle Buttons ---- */
.si-view-toggles {
    display: flex;
    align-items: center;
    gap: 4px;
}

.si-view-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    transition: all 0.2s;
}

.si-view-btn:hover {
    border-color: #0f3460;
    color: #0f3460;
}

.si-view-btn.si-view-active {
    background: #0f3460;
    border-color: #0f3460;
    color: #fff;
}

/* ---- Influencer Cards Grid ---- */
.si-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.si-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.si-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.si-card-img {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #eef0f3;
}

.si-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.si-card:hover .si-card-img img {
    transform: scale(1.05);
}

.si-card-body {
    padding: 8px 10px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.si-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.si-card-platform-text {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.4;
}

.si-card-platform-text i {
    font-size: 10px;
    color: #c13584;
}

.si-card-followers {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.4;
}

.si-card-followers i {
    font-size: 10px;
    color: #0f3460;
}

.si-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #0f3460;
    margin: 0;
    padding: 0;
    border-top: none;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.4;
}

.si-card-price-label {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    text-transform: none;
    letter-spacing: 0;
}

.si-card-select {
    padding: 4px 10px 8px;
}

.si-card-select label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #f0f2f5;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

/* ---- List View ---- */
.si-cards-grid.si-list-view {
    grid-template-columns: 1fr;
    gap: 8px;
}

.si-list-view .si-card {
    flex-direction: row;
    align-items: center;
    max-width: none;
}

.si-list-view .si-card-img {
    width: 80px;
    min-width: 80px;
    padding-top: 0;
    height: 80px;
}

.si-list-view .si-card-body {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 8px 14px;
    flex: 1;
}

.si-list-view .si-card-name {
    min-width: 120px;
    max-width: 160px;
    margin: 0;
}

.si-list-view .si-card-platform-text {
    min-width: 80px;
    margin: 0;
}

.si-list-view .si-card-followers {
    min-width: 120px;
    margin: 0;
}

.si-list-view .si-card-price {
    min-width: 100px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.si-list-view .si-card-select {
    padding: 8px 12px;
    min-width: 140px;
}

.si-list-view .si-card-select label {
    padding: 6px 12px;
}

.si-card-select label:hover {
    background: #e8edf3;
    border-color: #0f3460;
    color: #0f3460;
}

.si-card-select input[type="checkbox"] {
    accent-color: #0f3460;
    width: 13px;
    height: 13px;
    cursor: pointer;
}

.si-card-select input[type="checkbox"]:checked + span {
    color: #0f3460;
}

.si-card-select label.si-selected {
    background: rgba(15, 52, 96, 0.08);
    border-color: #0f3460;
    color: #0f3460;
}

/* ---- Bottom Cart Strip ---- */
.si-cart-strip {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    z-index: 100;
}

.si-cart-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.si-cart-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.si-cart-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.si-cart-item i {
    color: #0f3460;
    font-size: 16px;
}

.si-cart-item strong {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 16px;
}

.si-btn-continue {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.si-btn-continue:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
    color: #fff;
    text-decoration: none;
}

/* ---- Pagination ---- */
.si-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
}

.si-pagination .page-item {
    list-style: none;
}

.si-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.si-pagination .page-link:hover {
    background: #f0f2f5;
    border-color: #0f3460;
    color: #0f3460;
}

.si-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    border-color: #0f3460;
    color: #fff;
}

/* ---- No Results ---- */
.si-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.si-no-results i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
}

.si-no-results h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.si-no-results p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.si-no-results a {
    color: #0f3460;
    text-decoration: none;
    font-weight: 600;
}

.si-no-results a:hover {
    text-decoration: underline;
}

/* ---- Multiselect Override ---- */
.si-filter-group .btn-group {
    width: 100%;
}

.si-filter-group .btn-group .multiselect {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: #333;
    background: #fafbfc;
    width: 100%;
    text-align: left;
    height: auto;
}

.si-filter-group .btn-group .multiselect:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
    outline: none;
}

.si-filter-group .multiselect-container {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #dee2e6;
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 1024px) {
    .si-filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .si-filter-advanced {
        grid-template-columns: repeat(3, 1fr);
    }

    .si-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .si-hero {
        padding: 24px 0 20px;
        margin-bottom: 16px;
    }

    .si-hero-title {
        font-size: 20px;
    }

    .si-filter-panel {
        padding: 12px 14px;
    }

    .si-filter-toggle {
        display: inline-flex;
        align-items: center;
    }

    .si-filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .si-filter-advanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .si-filter-collapsible {
        display: none;
    }

    .si-filter-collapsible.si-filter-open {
        display: block;
    }

    .si-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .si-filter-actions {
        justify-content: center;
    }

    .si-cart-inner {
        justify-content: center;
        text-align: center;
    }

    .si-cart-info {
        justify-content: center;
    }

    .si-list-view .si-card-body {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .si-list-view .si-card-name {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .si-hero-inner {
        padding: 0 12px;
    }

    .si-container {
        padding: 0 12px;
    }

    .si-hero-title {
        font-size: 18px;
    }

    .si-filter-grid {
        grid-template-columns: 1fr;
    }

    .si-filter-advanced {
        grid-template-columns: 1fr;
    }

    .si-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .si-cards-grid.si-list-view {
        grid-template-columns: 1fr;
    }

    .si-card-body {
        padding: 6px 8px;
    }

    .si-card-name {
        font-size: 11px;
    }

    .si-card-platform-text {
        font-size: 9px;
    }

    .si-card-followers {
        font-size: 9px;
    }

    .si-card-price {
        font-size: 11px;
    }

    .si-card-select {
        padding: 0 6px 6px;
    }

    .si-card-select label {
        padding: 4px;
        font-size: 9px;
    }

    .si-cart-info {
        gap: 12px;
    }

    .si-btn-search,
    .si-btn-continue {
        width: 100%;
        justify-content: center;
    }

    .si-filter-actions {
        flex-direction: column;
    }

    .si-btn-reset {
        width: 100%;
        text-align: center;
    }

    .si-list-view .si-card-img {
        width: 60px;
        min-width: 60px;
        height: 60px;
    }

    .si-list-view .si-card-body {
        gap: 4px 8px;
        padding: 6px 8px;
    }
}
