/**
 * SheResolves Directory Styles
 * Modern list-based design with beautiful filters
 */

/* CSS Variables - Using ICAMEK brand colors */
:root {
    --sr-primary: #1d2655;
    --sr-accent: #102d8f;
    --sr-light-blue: #e6f2ff;
    --sr-gray-100: #f8f9fa;
    --sr-gray-200: #e9ecef;
    --sr-gray-300: #dee2e6;
    --sr-gray-400: #ced4da;
    --sr-gray-500: #adb5bd;
    --sr-gray-600: #6c757d;
    --sr-gray-700: #495057;
    --sr-gray-800: #343a40;
    --sr-gray-900: #212529;
}

/* Remove default background */
.com-sheresolves-directory {
    background: transparent;
    padding: 0;
}

/* Container adjustments */
.com-sheresolves-directory .container-fluid {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--sr-gray-700);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Google-style Search Hero */
.search-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-input-wrapper:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.search-input-wrapper:focus-within {
    border-color: var(--sr-accent);
    box-shadow: 0 6px 25px rgba(16, 45, 143, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sr-gray-500);
    font-size: 1.125rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--sr-accent);
}

.hero-search-input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 4rem;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--sr-gray-800);
    outline: none;
    font-weight: 400;
}

.hero-search-input::placeholder {
    color: var(--sr-gray-500);
    font-weight: 400;
}

.clear-search {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--sr-gray-500);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
}

.clear-search:hover {
    background: var(--sr-gray-100);
    color: var(--sr-gray-700);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    z-index: 1000;
    border: 1px solid var(--sr-gray-200);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-btn {
    background: white;
    border: 1px solid var(--sr-gray-300);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--sr-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn:hover {
    background: var(--sr-gray-100);
    border-color: var(--sr-accent);
    color: var(--sr-accent);
}

.view-btn.active {
    background: var(--sr-accent);
    border-color: var(--sr-accent);
    color: white;
}

/* Filters Header */
.filters-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--sr-gray-200);
}

.filters-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sr-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-header i {
    color: var(--sr-accent);
}

/* Profile Count Section */
.results-info {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--sr-light-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(16, 45, 143, 0.1);
}

.results-count {
    font-size: 0.875rem;
    color: var(--sr-primary);
}

.results-count strong {
    color: var(--sr-accent);
    font-weight: 600;
    font-size: 1rem;
}

/* Profiles List Styles */
.profiles-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid var(--sr-gray-200);
}

/* Profile List Item - More Compact with Even/Odd */
.profile-list-item {
    border-bottom: 1px solid var(--sr-gray-200);
    transition: all 0.2s ease;
}

.profile-list-item:nth-child(even) {
    background-color: #fafbfc;
}

.profile-list-item:nth-child(odd) {
    background-color: #ffffff;
}

.profile-list-item:last-child {
    border-bottom: none;
}

.profile-list-item:hover {
    background-color: var(--sr-gray-100) !important;
}

.profile-list-item.featured {
    background-color: var(--sr-light-blue) !important;
    border-left: 4px solid var(--sr-accent);
}

.profile-list-item.featured:hover {
    background-color: #d6e7ff !important;
}

/* Profile Link - More Compact */
.profile-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

/* Profile Avatar - Smaller */
.profile-avatar {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sr-light-blue);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--sr-accent);
}

.profile-list-item.featured .profile-avatar {
    background: var(--sr-accent);
    color: white;
}

/* Profile Info - Compact Layout */
.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sr-primary);
    margin: 0 0 0.375rem 0;
    padding-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-badge {
    color: var(--sr-accent);
    font-size: 0.75rem;
}

/* Profile Details - Much Leaner */
.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.6875rem;
    color: var(--sr-gray-600);
    align-items: center;
    line-height: 1.2;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0;
}

.detail-item i {
    font-size: 0.5rem;
    color: var(--sr-accent);
    opacity: 0.8;
    flex-shrink: 0;
}

.detail-item small {
    background: var(--sr-gray-200);
    padding: 0.0625rem 0.25rem;
    border-radius: 9999px;
    font-size: 0.5625rem;
    margin-left: 0.125rem;
    color: var(--sr-gray-700);
}

/* Profile Action */
.profile-action {
    flex-shrink: 0;
    color: var(--sr-accent);
    font-size: 1rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.profile-link:hover .profile-action {
    opacity: 1;
    transform: translateX(4px);
}

/* Filter Sidebar Redesign - On Brand */
.filters-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--sr-gray-200);
}

.sidebar-sticky {
    position: sticky;
    top: 1rem;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 1.75rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sr-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filter-label i {
    color: var(--sr-accent);
    font-size: 0.875rem;
}

/* Search Input - Brand Styled */
.search-input-group {
    position: relative;
    display: flex;
}

.search-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--sr-gray-300);
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--sr-gray-100);
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--sr-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 45, 143, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.875rem;
    background: var(--sr-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--sr-primary);
}

/* Alphabet Filter - Brand Styled */
.alphabet-filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 0.375rem;
}

.alpha-btn {
    padding: 0.5rem;
    background: var(--sr-gray-100);
    border: 1px solid var(--sr-gray-300);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sr-gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 36px;
}

.alpha-btn:hover {
    background: var(--sr-light-blue);
    border-color: var(--sr-accent);
    color: var(--sr-accent);
}

.alpha-btn.active {
    background: var(--sr-accent);
    color: white;
    border-color: var(--sr-accent);
}

/* Fancy Select Filters - Beautiful and Searchable */
.fancy-select-wrapper {
    position: relative;
}

.fancy-select {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--sr-gray-300);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--sr-gray-700);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fancy-select:focus {
    outline: none;
    border-color: var(--sr-accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 45, 143, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Bootstrap Select Styling for Fancy Selects */
.bootstrap-select .dropdown-toggle {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--sr-gray-300);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-height: 50px;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--sr-gray-700);
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select.show .dropdown-toggle {
    border-color: var(--sr-accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 45, 143, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.bootstrap-select .dropdown-menu {
    border: 2px solid var(--sr-accent);
    border-radius: 12px;
    margin-top: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
}

.bootstrap-select .dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    color: var(--sr-gray-700);
}

.bootstrap-select .dropdown-menu .dropdown-item:hover,
.bootstrap-select .dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, var(--sr-light-blue) 0%, #e6f2ff 100%);
    color: var(--sr-primary);
    font-weight: 500;
}

.bootstrap-select .dropdown-menu .dropdown-item.active,
.bootstrap-select .dropdown-menu .dropdown-item.selected {
    background: linear-gradient(135deg, var(--sr-accent) 0%, var(--sr-primary) 100%);
    color: white;
    font-weight: 600;
}

/* Bootstrap Select Filter Input */
.bootstrap-select .bs-searchbox input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--sr-gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    background: var(--sr-gray-100);
    transition: all 0.2s ease;
}

.bootstrap-select .bs-searchbox input:focus {
    outline: none;
    border-color: var(--sr-accent);
    background: white;
    box-shadow: 0 0 0 2px rgba(16, 45, 143, 0.1);
}

/* Selected items display in button */
.bootstrap-select .filter-option-inner-inner {
    color: var(--sr-gray-700);
}

.bootstrap-select .dropdown-toggle .filter-option {
    text-align: left;
    padding-right: 30px;
}

/* Custom styling for multiple selected items count */
.bootstrap-select .dropdown-toggle .filter-option-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No results text */
.bootstrap-select .no-results {
    padding: 1rem;
    text-align: center;
    color: var(--sr-gray-500);
    font-style: italic;
}

/* Clear Filters Button - Brand Styled */
.filter-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sr-gray-200);
}

#clear-filters {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--sr-gray-300);
    border-radius: 10px;
    color: var(--sr-gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#clear-filters:hover {
    background: var(--sr-gray-100);
    border-color: var(--sr-accent);
    color: var(--sr-accent);
}

#clear-filters i {
    margin-right: 0.5rem;
}

/* Loading State */
.loading-overlay {
    background: rgba(255, 255, 255, 0.95);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--sr-gray-300);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--sr-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.no-results p {
    color: var(--sr-gray-600);
    margin-bottom: 2rem;
}

#clear-filters-alt {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--sr-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

#clear-filters-alt:hover {
    background: var(--sr-primary);
}

.cta-actions {
    margin-top: 2rem;
}

.cta-actions .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.cta-actions .btn-primary {
    background: linear-gradient(135deg, var(--sr-accent) 0%, var(--sr-primary) 100%);
    color: white;
    border: none;
}

.cta-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--sr-primary) 0%, #0d1f6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 45, 143, 0.3);
    text-decoration: none;
    color: white;
}

/* Pagination - Beautiful Modern Design */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sr-gray-200);
}

.page-item .page-link {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    color: var(--sr-gray-600);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.page-item .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--sr-accent) 0%, var(--sr-primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.page-item .page-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 45, 143, 0.3);
}

.page-item .page-link:hover::before {
    opacity: 1;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--sr-accent) 0%, var(--sr-primary) 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 45, 143, 0.4);
}

.page-item.disabled .page-link {
    color: var(--sr-gray-400);
    cursor: not-allowed;
    opacity: 0.5;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    color: var(--sr-gray-400);
}

.page-item.disabled .page-link:hover::before {
    opacity: 0;
}

/* Pagination Info */
.pagination-info {
    font-size: 0.875rem;
    color: var(--sr-gray-600);
    font-weight: 500;
}

/* Shortlist Status (Floating) - Hidden for now */
.shortlist-status {
    display: none !important;
}

/* Remove old card styles */
.profile-card,
.card-header,
.card-body,
.card-footer,
.card-actions,
.view-profile-btn,
.card-overlay,
.photo-img,
.expertise-tags {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .filters-sidebar {
        margin-bottom: 2rem;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .profile-details {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .profile-link {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .profile-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-details {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .detail-item {
        font-size: 0.7rem;
    }
    
    .alphabet-filter {
        grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    }
    
    .alpha-btn {
        padding: 0.375rem;
        font-size: 0.7rem;
        min-width: 32px;
    }
}