/* =========================================
   صفحه تیم نماد
   ========================================= */

.team-section {
    padding: 80px 0;
    background: var(--page-bg, linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%));
    min-height: 100vh;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--page-text, var(--primary-blue));
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.team-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--light-blue);
    border-radius: 3px;
}

.team-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-blue);
    margin-bottom: 50px;
    font-weight: normal;
}

/* گرید تیم */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* کارت اعضا */
.team-card {
    background: var(--page-card-bg, #fff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding: 30px 20px;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* آواتار */
.team-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 60, 140, 0.3);
}

.team-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-text, #1a2a4f);
    margin-bottom: 8px;
    text-align: center;
}

.team-position {
    font-size: 0.9rem;
    color: var(--light-blue);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* مدال برای نمایش رزومه (در صورت نیاز) */
.team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.team-modal.active {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
}

.modal-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.modal-position {
    font-size: 1rem;
    color: var(--light-blue);
    margin-bottom: 20px;
}

.modal-resume {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .team-section {
        padding: 40px 0;
    }
    
    .team-title {
        font-size: 1.8rem;
    }
    
    .team-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .team-card {
        padding: 20px 15px;
    }
    
    .team-avatar {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .team-position {
        font-size: 0.8rem;
    }
}
body.lang-en .team-member-info,
body.lang-en .team-member-info h3,
body.lang-en .team-member-info p,
body.lang-en .team-member-role {
    text-align: left;
}
