/**
 * Team Members Archive Page Styles
 */

/* Archive Hero Section */
.team-archive-hero {
    background-color: #f8fafc;
    padding: 7rem 0 3rem;
    position: relative;
    text-align: center;
}

.team-archive-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0), #fff);
}

.archive-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.archive-hero-content .section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #5c8dff;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.archive-hero-content .section-tag::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #5c8dff;
    margin: 8px auto 0;
}

.archive-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.2;
}

.archive-subtitle {
    font-size: 1.25rem;
    color: #718096;
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.6;
}

/* Team Archive Content */
.team-archive-content {
    padding: 4rem 0;
}

/* Team Filter */
.team-filter {
    margin-bottom: 3rem;
    text-align: center;
}

.filter-toggle {
    display: inline-flex;
    background-color: #f1f5f9;
    border-radius: 50px;
    padding: 6px;
}

.filter-button {
    background: none;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button.active {
    background-color: #fff;
    color: #5c8dff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filter-button:hover:not(.active) {
    color: #4a5568;
}

/* Team Members Grid */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Team Member Card */
.team-member-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member-card:hover .member-image img {
    transform: scale(1.05);
}

.member-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #2d3748;
    line-height: 1.3;
}

.member-role {
    color: #5c8dff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-excerpt {
    color: #718096;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.member-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.member-email, .member-website, .member-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-email:hover, .member-website:hover, .member-social:hover {
    background-color: #5c8dff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(92, 141, 255, 0.2);
}

.member-link {
    display: inline-flex;
    align-items: center;
    color: #5c8dff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.member-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.member-link:hover {
    color: #3366cc;
}

.member-link:hover i {
    transform: translateX(5px);
}

/* Faculty Member Card (Larger) */
.team-member-card[data-type="faculty"] {
    grid-column: span 3;
    flex-direction: row;
}

.team-member-card[data-type="faculty"] .member-image {
    width: 40%;
    height: auto;
    min-height: 300px;
}

.team-member-card[data-type="faculty"] .member-content {
    width: 60%;
    padding: 2rem;
}

.team-member-card[data-type="faculty"] .member-name {
    font-size: 1.75rem;
}

.team-member-card[data-type="faculty"] .member-role {
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 0.25rem;
    color: #718096;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #5c8dff;
    color: #fff;
}

.pagination .page-numbers:not(.current):hover {
    background-color: #f1f5f9;
    color: #4a5568;
}

.pagination .prev,
.pagination .next {
    font-size: 0.75rem;
}

/* No Team Members */
.no-team-members {
    text-align: center;
    padding: 3rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    color: #718096;
}

/* Image Placeholder */
.member-image .img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #666;
    font-size: 16px;
    text-align: center;
    height: 100%;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .archive-title {
        font-size: 2.5rem;
    }
    
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-member-card[data-type="faculty"] {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .team-archive-hero {
        padding: 6rem 0 2rem;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-subtitle {
        font-size: 1.125rem;
    }
    
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-member-card[data-type="faculty"] {
        grid-column: span 2;
        flex-direction: column;
    }
    
    .team-member-card[data-type="faculty"] .member-image,
    .team-member-card[data-type="faculty"] .member-content {
        width: 100%;
    }
    
    .filter-toggle {
        width: 100%;
        display: flex;
    }
    
    .filter-button {
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .team-archive-hero {
        padding: 3rem 0 1.5rem;
    }
    
    .archive-title {
        font-size: 1.75rem;
    }
    
    .archive-subtitle {
        font-size: 1rem;
    }
    
    .team-members-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member-card[data-type="faculty"] {
        grid-column: span 1;
    }
    
    .filter-toggle {
        flex-direction: column;
        background: none;
        padding: 0;
        gap: 0.5rem;
    }
    
    .filter-button {
        width: 100%;
        border-radius: 0.25rem;
    }
    
    .member-image {
        height: 200px;
    }
} 