/**
 * Hurricane Team Page Search Styles
 * Matches existing design and functionality
 */

/* Team Page Container */
.team-page-container {
    position: relative;
}

.team-page-section {
    position: relative;
}

/* Navigation and Search Container */
.team-page-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

/* Tab Navigation */
.team-page-tab-nav {
    flex: 1;
    min-width: 300px;
}

.team-page-tab-nav .alm-filters-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.team-page-tab-nav .alm-filter--link {
    position: relative;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease;
    border: none;
    background: none;
    display: flex;
    align-items: center;
}

.team-page-tab-nav .alm-filter--link:hover {
    color: #5A10D4;
}

.team-page-tab-nav .alm-filter--link.active {
    color: #5A10D4;
    font-weight: 600;
}

.team-page-tab-nav .alm-filter--link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #5A10D4;
}

/* Search Container */
.team-page-search-container {
    flex: 0 0 auto;
    min-width: 300px;
    margin-top: 25px;
}

.team-page-search-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-page-search-label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

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

.team-page-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.team-page-search-input:focus {
    outline: none;
    border-color: #5A10D4;
}

.team-page-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.team-page-clear-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
    text-decoration: underline;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.team-page-clear-btn:hover {
    color: #5A10D4;
}

/* Results Container */
.team-page-results {
    min-height: 200px;
    position: relative;
}

.team-page-results .row {
    row-gap: 2rem;
    margin-bottom: 2rem;
}

.team-page-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.team-page-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Team Member Cards - Using Old Section Classes */
.teams-card {
    padding: 18px;
    transition: all 200ms ease-in-out;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    height: 100%;
    border: 2px solid transparent;
}

.teams-card:hover {
    box-shadow: 0px 4px 35px 0px rgba(0, 0, 0, 0.1490196078);
    background: #ffffff;
    transform: scale(1.04);
    border: 2px solid #ffffff;
}

.teams-img {
    position: relative;
    overflow: hidden;
    height: 380px;
}

.teams-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: all 200ms ease-in-out;
}

.teams-card:hover .teams-img img {
    transform: scale(1.2);
    transition: all 200ms ease-in-out;
}

.teams-img .linkedin-link {
    position: absolute;
    bottom: 16px;
    right: 18px;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 16px;
    border-radius: 2px;
    box-shadow: none;
    transition: all 200ms ease-in-out;
}

.teams-card:hover .teams-img .linkedin-link {
    background-color: #ffffff;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.3019607843);
}

.teams-content {
    padding: 24px 0 2px;
}

.teams-content .member-name {
    font-weight: 400;
    color: #01042C;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.teams-content .member-post {
    font-size: 16px;
    color: #01042C;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media screen and (max-width: 575px) {
    .teams-card {
        padding: 15px;
    }
    
    .teams-img {
        height: auto;
    }
    
    .teams-img img {
        height: auto;
    }
    
    .team-page-results .row {
        row-gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-page-nav-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .team-page-tab-nav {
        min-width: auto;
    }
    
    .team-page-tab-nav .alm-filters-container {
        flex-direction: row;
        gap: 40px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .team-page-tab-nav .alm-filter--link {
        font-size: 16px;
        padding: 8px 0;
        white-space: nowrap;
    }
    
    .team-page-search-container {
        min-width: auto;
        width: 100%;
        margin-top: 0;
    }
    
    .team-page-search-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }
    
    .team-page-search-input-wrapper {
        width: 100%;
    }
    
    .team-page-search-input {
        width: 100%;
        min-width: 100%;
    }
    
    .team-member-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .team-page-tab-nav .alm-filters-container {
        flex-direction: row;
        gap: 30px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .team-page-tab-nav .alm-filter--link {
        font-size: 14px;
        padding: 6px 0;
        white-space: nowrap;
    }
    
    .team-page-search-label {
        font-size: 14px;
    }
    
    .team-page-search-input {
        font-size: 14px;
        width: 100%;
    }
    
    .team-page-clear-btn {
        font-size: 12px;
    }
}

/* Match existing theme styles */
.team-page-section .style00-backBg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.team-page-section .mainHeadingText {
    color: #333;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Ensure compatibility with existing styles */
.team-page-container .teams-tab-wrap {
    background: transparent;
}

.team-page-container .homeNews-content-wrap {
    position: relative;
    z-index: 2;
} 