/* Sparkle Members Search Styles */
.sparkle-members-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sparkle-filter-container {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sparkle-filter-header {
    text-align: center;
    margin-bottom: 30px;
}

.sparkle-filter-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: "Sofia Sans", Sans-serif;
}

/* Search Controls */
.sparkle-search-form {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    align-items: center;
}

.sparkle-search-row {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.sparkle-search-field {
    flex: 1;
    min-width: 200px;
}

.sparkle-search-select {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Sofia Sans", Sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.sparkle-search-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
}

.sparkle-search-input:focus,
.sparkle-search-select:focus {
    outline: none;
    border-color: #E9509B;
    box-shadow: 0 0 0 3px rgba(233, 80, 155, 0.1);
}

.sparkle-search-input::placeholder {
    color: #999;
}

.sparkle-search-button {
    font-family: "Sofia Sans", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    background-image: linear-gradient(180deg, #E9509B 0%, #F58F7D 100%);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #E9509B;
    border-radius: 7px 7px 7px 7px;
    padding: 12px 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 120px;
}

.sparkle-search-button:hover {
    background-color: transparent;
    color: #E9509B;
    background-image: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
}

/* Results Area */
.sparkle-filter-results {
    /* min-height: 400px; */
    position: relative;
}

.sparkle-filter-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.sparkle-filter-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #E9509B;
    border-radius: 50%;
    animation: sparkle-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes sparkle-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sparkle-filter-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    animation: sparkle-fadeIn 0.5s ease;
}

@keyframes sparkle-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Member Cards */
.sparkle-filter-member-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sparkle-filter-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #E9509B;
}

.sparkle-filter-member-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.sparkle-filter-member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.sparkle-filter-member-info {
    text-align: center;
}

.sparkle-filter-member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    font-family: "Sofia Sans", Sans-serif;
}

.sparkle-filter-member-designation {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.sparkle-filter-member-location {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sparkle-filter-member-industry-badge {
    display: inline-block;
    background: linear-gradient(180deg, #E9509B 0%, #F58F7D 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* No Results */
.sparkle-filter-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.sparkle-filter-no-results p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sparkle-members-filter-container {
        padding: 15px;
    }
    
    .sparkle-filter-title {
        font-size: 1.5rem;
    }
    
    .sparkle-search-controls {
        padding: 20px;
    }
    
    .sparkle-search-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .sparkle-search-field {
        min-width: 100%;
    }
    
    .sparkle-search-button {
        width: 100%;
        text-align: center;
    }
    
    .sparkle-filter-members-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .sparkle-filter-members-grid {
        grid-template-columns: 1fr;
    }
}
