/**
 * Team Showcase Styles
 * Clean, vanilla CSS without any framework dependencies
 */

/* ==================== Team Showcase Grid ==================== */
.team-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .team-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== Team Member Card ==================== */
.team-member-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ==================== Team Member Photo ==================== */
.team-member-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.team-member-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.team-member-no-image p {
    margin: 0;
}

/* ==================== Team Member Content ==================== */
.team-member-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-member-name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.team-member-role {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member-bio {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    flex: 1;
}

.team-member-bio p {
    margin: 0 0 10px 0;
}

.team-member-bio p:last-child {
    margin-bottom: 0;
}

.team-member-link {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center;
}

.team-member-link:hover {
    background: #135e96;
    color: #ffffff;
}

/* ==================== No Results Message ==================== */
.team-showcase-no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

/* ==================== Single Team Member Template ==================== */
.single-team-member-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-team-member-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .single-team-member-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.single-team-member-photo {
    position: relative;
}

.single-team-member-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.single-team-member-photo img:hover {
    transform: scale(1.02);
}

.single-team-member-info h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.single-team-member-info .role {
    display: inline-block;
    margin: 0 0 20px 0;
    padding: 8px 16px;
    background: #2271b1;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.single-team-member-info .short-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 20px 0;
}

/* ==================== Tab Navigation ==================== */
.team-member-tabs {
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-buttons {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #2271b1;
    background: #f5f5f5;
}

.tab-button.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    background: #f9f9f9;
}

/* ==================== Tab Content ==================== */
.tab-content {
    display: none;
    padding: 30px 0;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.tab-content h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.tab-content p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* ==================== Read More Toggle ==================== */
.bio-content {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.bio-content.collapsed {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.bio-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #ffffff);
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #2271b1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #135e96;
}

/* ==================== Image Modal ==================== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

/* ==================== AJAX Loading State ==================== */
.team-showcase-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.team-showcase-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

.team-showcase-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* ==================== Filter Controls ==================== */
.team-showcase-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.team-showcase-filters label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.team-showcase-filters select {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
}

.team-showcase-filters select:focus {
    outline: none;
    border-color: #2271b1;
}

/* ==================== Team Member Navigation ==================== */
.team-member-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-links a {
    display: inline-block;
    padding: 12px 24px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #2271b1;
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-previous {
    margin-right: auto;
}

.nav-next {
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
    }
    
    .nav-links a {
        text-align: center;
    }
}
